Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-114370 Overview
CVE-2026-114370 is a path traversal flaw [CWE-22] in the PathResourceManager component of the Undertow web server. Undertow serves static files from the file system through this component. The symbolic link safety check compares target paths using a string prefix match instead of a full directory name match. An attacker can access files in a sibling directory when that directory name shares a prefix with an authorized safe directory. The flaw affects confidentiality only and requires network access with high attack complexity.
Critical Impact
Attackers can read unauthorized files from sibling directories whose names share a prefix with an allowed safe directory, exposing static content outside the intended serving scope.
Affected Products
- Undertow web server (PathResourceManager component)
- Red Hat products bundling vulnerable Undertow versions (see Red Hat CVE-2026-114370)
- Java applications embedding Undertow for static file serving
Discovery Timeline
- 2026-10-21 - CVE-2026-114370 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114370
Vulnerability Analysis
The PathResourceManager class in Undertow enforces a safe directory boundary when resolving requests that traverse symbolic links. The validation logic calls a string prefix comparison (such as startsWith) on the resolved target path against the configured safe base path. The check does not verify that the match terminates on a directory separator. As a result, a safe base path of /var/www/safe also validates targets rooted in /var/www/safe-backup or /var/www/safeold. An attacker who can influence symbolic links or craft requests that resolve through them can read static files outside the intended root. Impact is limited to information disclosure of files readable by the Undertow process.
Root Cause
The root cause is improper path canonicalization in the symbolic link validation routine. The code treats path comparison as a lexical string operation rather than a hierarchical path operation. A correct implementation must normalize both paths and confirm the target is either equal to the safe root or contained beneath it with a separator boundary.
Attack Vector
Exploitation requires that the application serve static resources through PathResourceManager and that a sibling directory exists whose name begins with the same characters as the configured safe directory. The attacker sends an HTTP request whose resolved path traverses a symlink pointing into the sibling directory. High attack complexity reflects the required filesystem layout and symlink conditions. No authentication or user interaction is required.
See Red Hat Bug Report #2528757 for upstream technical analysis.
Detection Methods for CVE-2026-114370
Indicators of Compromise
- HTTP requests to Undertow endpoints that resolve through symbolic links to directories outside the documented static content root.
- Access log entries referencing file paths adjacent to but not inside the configured safe directory.
- Unexpected read access on files in sibling directories by the Undertow service account.
Detection Strategies
- Review Undertow access logs for requests that return 200 OK on resources outside the declared static resource root.
- Audit the filesystem for symbolic links inside served directories that point to sibling paths sharing a name prefix.
- Correlate web request telemetry with filesystem read events on the host to identify out-of-scope file access.
Monitoring Recommendations
- Enable verbose access logging on Undertow and forward logs to a central analytics platform for prefix-anomaly queries.
- Monitor process-level file reads from the Java runtime hosting Undertow and alert on access to paths outside the application working directory.
- Track creation and modification of symbolic links within web content directories.
How to Mitigate CVE-2026-114370
Immediate Actions Required
- Upgrade Undertow to a fixed release as published in the Red Hat CVE-2026-114370 advisory.
- Audit all configured safe base paths and rename any sibling directories that share a leading prefix with a served root.
- Disable symbolic link following in PathResourceManager where the feature is not required.
Patch Information
Refer to the Red Hat CVE-2026-114370 advisory and Red Hat Bug Report #2528757 for fixed versions and affected Red Hat product streams. The upstream fix updates the symbolic link validation to perform a full directory-boundary comparison instead of a string prefix check.
Workarounds
- Configure PathResourceManager with setAllowResourceChangeListeners(false) equivalent hardening and disable symlink following by setting the safe paths list to empty where feasible.
- Place served content in a directory whose name has no sibling with a matching prefix, for example use /var/www/public_root with no neighboring /var/www/public_root_backup.
- Apply filesystem access controls that prevent the Undertow process from reading files outside the intended content root.
# Configuration example: restrict Undertow service to a dedicated content root
# using systemd ReadOnlyPaths / InaccessiblePaths to contain the process
[Service]
ReadWritePaths=/var/www/public_root
InaccessiblePaths=/var/www/public_root_backup /var/www/public_root_old
ReadOnlyPaths=/var/www/public_root
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

