CVE-2024-6162Undertow: url-encoded request path information can be broken on ajp-listener
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.
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | undertow | Fix pending | UBUNTU-CVE-2024-6162 | |
| Ubuntu 26.04 | undertow | Under investigation | UBUNTU-CVE-2024-6162 | |
| Ubuntu 25.10 | undertow | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-6162 | |
| Ubuntu 24.04 | undertow | Fix pending | UBUNTU-CVE-2024-6162 | |
| Ubuntu 22.04 | undertow | Fix pending | UBUNTU-CVE-2024-6162 | |
| Ubuntu 20.04 | undertow | Fix pending | UBUNTU-CVE-2024-6162 | |
| Ubuntu 18.04 | undertow | Fix pending | UBUNTU-CVE-2024-6162 | |
| Ubuntu 16.04 | undertow | Fix pending | UBUNTU-CVE-2024-6162 | |
| Debian 14 | undertow | Fixed | 2.3.18-1 | DEBIAN-CVE-2024-6162 |
| Maven library | io.undertow:undertow-core | Fixed | 2.2.33.Final | GHSA-9442-gm4v-r222 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- undertow: affected: before 2.2.33.Final, 2.3.0.Alpha1 to before 2.3.14; fixed in
2.2.33.Final,2.3.14 - Red Hat EAP 8.0.1
- Red Hat build of Apache Camel 4.4.1 for Spring Boot 3.2
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat build of Apache Camel for Spring Boot 3
- Red Hat build of Apache Camel - HawtIO 4
- Red Hat Build of Keycloak
- Red Hat Data Grid 8
- Red Hat Fuse 7
- Red Hat Integration Camel K 1
- Red Hat JBoss Data Grid 7
- Red Hat JBoss Enterprise Application Platform 7
Workaround: To mitigate this issue, you can either switch to a different listener like the http-listener, or adjust the AJP listener configuration. By setting decode-url="false" on the AJP listener and configuring a separate URL decoding filter, you can prevent the path decoding errors. This adjustment ensures that each request is processed correctly without interference from concurrent requests.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2024:1194 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:4386 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:4884 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2024:1194
- https://access.redhat.com/errata/RHSA-2024:4386
- https://access.redhat.com/errata/RHSA-2024:4884
- https://access.redhat.com/security/cve/CVE-2024-6162
- https://bugzilla.redhat.com/show_bug.cgi?id=2293069
- https://issues.redhat.com/browse/JBEAP-26268
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.