CVE-2024-6162
High · 7.5CVSS
7.5
EPSS
1.7%
Published
Jun 20, 2024
CISA due date
—
Cloudanix analysis
A server software bug can scramble web addresses when many requests arrive at the same time, making pages or services temporarily unreachable for users.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Network Service
- Class
- Race Condition
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Race condition in Undertow AJP listener where a shared buffer is reused for decoding URL-encoded request paths across concurrent requests, resulting in corrupted path information and incorrect resource access attempts.
Why it matters to the business
Legitimate application resources become inaccessible, producing errors that disrupt service availability and user access without requiring authentication.
How an attack unfolds
An attacker issues multiple simultaneous requests containing URL-encoded paths to the AJP listener, triggering concurrent decoding that reuses the same buffer and causes path information to be swapped or lost across requests.
How to fix it
Upgrade to a patched Undertow release that isolates path decoding buffers per request; until available, restrict or disable the AJP listener and enforce request throttling.
How to confirm the fix worked
Replay concurrent URL-encoded path requests in a test environment against the updated Undertow version and confirm that path information remains isolated with no erroneous 404 responses.
Typical attack path
- Identify AJP listener endpoints accepting URL-encoded paths
- Send high volumes of concurrent requests with varied URL-encoded paths
- Observe resulting 404 responses or application errors on otherwise valid resources
How to detect it
Review AJP and application logs for clusters of 404 errors on valid paths that coincide with periods of high concurrent request volume; correlate with Undertow request handling timestamps.
What your security team should do
- Apply the next available Undertow security update as soon as released
- Disable or firewall-restrict the AJP listener if not required for operation
- Add monitoring rules for sudden spikes in 404 errors on known-valid paths
The record
A vulnerability was found in Undertow, where URL-encoded request paths can be mishandled during concurrent requests on the AJP listener. This issue arises because the same buffer is used to decode the paths for multiple requests simultaneously, leading to incorrect path information being processed. As a result, the server may attempt to access the wrong path, causing errors such as "404 Not Found" or other application failures. This flaw can potentially lead to a denial of service, as legitimate resources become inaccessible due to the path mix-up.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Maven | io.undertow:undertow-core | 0 | 2.2.33.Final |
| Maven | io.undertow:undertow-core | 0 | 2.3.14.Final |
| Maven | io.undertow:undertow-core | 2.3.0.Alpha1 | 2.3.14.Final |
| Debian:13 | undertow | 0 | No fix |
| Ubuntu:16.04:LTS | undertow | 0 | No fix |
| Ubuntu:18.04:LTS | undertow | 0 | No fix |
| Ubuntu:20.04:LTS | undertow | 0 | No fix |
| Ubuntu:22.04:LTS | undertow | 0 | No fix |
| Ubuntu:24.04:LTS | undertow | 0 | No fix |
| Ubuntu:24.10 | undertow | 0 | No fix |
| Ubuntu:25.04 | undertow | 0 | No fix |
| Ubuntu:25.10 | undertow | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | undertow | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | undertow | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | undertow | 0 | No fix |
| maven | io.undertow/undertow-core | 2.3.0.Alpha1 | 2.3.14.Final |
Related vulnerabilities
- GHSA-33hj-rcmx-86mv Undertow Servlets Vulnerable to Remote DoS via OutOfMemoryError when Passed Large… Also affects io.undertow:undertow-core
- CVE-2024-4027 A flaw was found in Undertow. Also affects io.undertow:undertow-core
- CVE-2025-12543 A flaw was found in the Undertow HTTP server core, which is used in WildFly, JBoss EAP… Also affects io.undertow:undertow-core
- CVE-2024-3884 A flaw was found in Undertow that can cause remote denial of service attacks. Also affects io.undertow:undertow-core
- CVE-2024-4109 undertow: information leakage via HTTP/2 request header reuse Also affects io.undertow:undertow-core
- CVE-2023-4639 A flaw was found in Undertow, which incorrectly parses cookies with certain… Also affects io.undertow:undertow-core
- CVE-2023-1973 A flaw was found in Undertow package. Also affects io.undertow:undertow-core
- CVE-2024-7885 A vulnerability was found in Undertow where the ProxyProtocolReadListener reuses the same… Also affects io.undertow:undertow-core