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-80353 Overview
CVE-2026-80353 is a time-of-check time-of-use (TOCTOU) race condition in Apache Tomcat. The flaw occurs when Tomcat creates Unix domain sockets for the APR/Native connector. An unauthorised local user can access the Unix domain socket during the window between permission check and socket use.
The issue affects Apache Tomcat versions 9.0.47 through 9.0.122. The earlier fix for CVE-2026-65183 only addressed the NIO connector. It did not remediate the same defect in the APR/Native connector. The Apache Tomcat project recommends upgrading to version 9.0.123, which fixes the issue.
Critical Impact
A local unauthorised user can access the Unix domain socket exposed by the APR/Native connector, potentially intercepting or injecting traffic processed by the Tomcat server.
Affected Products
- Apache Tomcat 9.0.47 through 9.0.122 (APR/Native connector)
- Deployments configured with Unix domain sockets on the APR/Native connector
- Fixed in Apache Tomcat 9.0.123
Discovery Timeline
- 2026-10-20 - CVE-2026-80353 published to the National Vulnerability Database
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-80353
Vulnerability Analysis
The vulnerability is a TOCTOU race condition [CWE-367] in the socket creation path of the APR/Native connector. Apache Tomcat creates a Unix domain socket to accept connections from a front-end process such as a web server. Between the permission check applied to the socket path and the actual bind or use of the socket, an attacker with local access can insert or substitute a filesystem entry.
Because the APR/Native connector relies on native code paths, the previous fix for CVE-2026-65183 (which addressed the NIO connector) did not cover this code path. The result is a window where an unauthorised local user can obtain access to the socket and interact with the Tomcat connector endpoint.
Root Cause
The root cause is non-atomic handling of Unix domain socket creation. Permission or existence checks are performed on the socket path before the socket is bound. An attacker who can write to the parent directory can swap the target with a symlink or alternative file between those operations. The APR/Native connector did not inherit the hardened sequence applied to the NIO connector in the earlier patch.
Attack Vector
An attacker requires local access to the host running Apache Tomcat. The attacker must have write permissions to the directory where the Unix domain socket is created. By racing socket creation, the attacker can gain read or write access to the socket. This grants the ability to communicate with the Tomcat connector as if from a trusted front-end process.
No verified public exploit code is available. See the Apache Mailing List Discussion for upstream details.
Detection Methods for CVE-2026-80353
Indicators of Compromise
- Unexpected files, symlinks, or sockets appearing in the directory used by Tomcat's APR/Native Unix domain socket.
- Non-Tomcat processes holding open handles to the Tomcat .sock file.
- Local user accounts accessing the socket path outside normal operational windows.
Detection Strategies
- Audit inotify or Linux audit (auditd) events for create, rename, and symlink operations in the socket parent directory during Tomcat startup.
- Compare the running Apache Tomcat version against the fixed release 9.0.123 using software inventory data.
- Alert on any process other than the Tomcat JVM binding to or connecting to the configured APR/Native connector socket path.
Monitoring Recommendations
- Enable file integrity monitoring on the directory containing the Unix domain socket.
- Forward auditd and process telemetry to a centralized data lake for correlation across hosts.
- Monitor Tomcat startup logs for errors or warnings about socket permissions and ownership mismatches.
How to Mitigate CVE-2026-80353
Immediate Actions Required
- Upgrade Apache Tomcat to version 9.0.123 or later on all hosts using the APR/Native connector.
- Inventory all Tomcat instances to identify configurations that create Unix domain sockets via APR/Native.
- Restrict local user accounts on affected hosts and review group membership for the Tomcat runtime user.
Patch Information
The Apache Tomcat project released version 9.0.123, which fixes the TOCTOU race condition in the APR/Native connector. The fix extends the hardening previously applied for CVE-2026-65183 in the NIO connector. Administrators should refer to the Apache Mailing List Discussion for the upstream advisory.
Workarounds
- Place the Unix domain socket in a directory writable only by the Tomcat runtime user, with mode 0700 on the parent directory.
- Switch connector configuration to the NIO connector (already patched for the related CVE-2026-65183) until the APR/Native connector can be upgraded.
- Restrict shell and local login access on servers hosting Tomcat to reduce the pool of users who could race socket creation.
# Configuration example: restrict the socket parent directory
sudo install -d -o tomcat -g tomcat -m 0700 /var/run/tomcat
# Then configure server.xml connector to place the socket inside /var/run/tomcat
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

