Skip to content
OpenAdvisories
High · 7.5 CVE-2022-2053 EUVD-2022-6522GHSA-95rf-557x-44g5

Undertow vulnerable to Dos via Large AJP request

Published Aug 5, 2022 · Updated Aug 3, 2024 · Assigned by redhat

Description

When a POST request comes through AJP and the request exceeds the max-post-size limit (maxEntitySize), Undertow's AjpServerRequestConduit implementation closes a connection without sending any response to the client/proxy. This behavior results in that a front-end proxy marking the backend worker (application server) as an error state and not forward requests to the worker for a while. In mod_cluster, this continues until the next STATUS request (10 seconds intervals) from the application server updates the server state. So, in the worst case, it can result in "All workers are in error state" and mod_cluster responds "503 Service Unavailable" for a while (up to 10 seconds). In mod_proxy_balancer, it does not forward requests to the worker until the "retry" timeout passes. However, luckily, mod_proxy_balancer has "forcerecovery" setting (On by default; this parameter can force the immediate recovery of all workers without considering the retry parameter of the workers if all workers of a balancer are in error state.). So, unlike mod_cluster, mod_proxy_balancer does not result in responding "503 Service Unavailable". An attacker could use this behavior to send a malicious request and trigger server errors, resulting in DoS (denial of service). This flaw was fixed in Undertow 2.2.19.Final, Undertow 2.3.0.Alpha2.

Affected products

VendorProductAffectedFixed
— Undertow Fixed in Undertow 2.2.19.Final, Undertow 2.3.0.Alpha2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 undertow 2.2.18-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 undertow No fix yet —
Ubuntu 26.04 LTS undertow No fix yet —
Ubuntu 25.10 undertow No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS undertow No fix yet —
Ubuntu Pro 22.04 LTS undertow No fix yet —
Ubuntu Pro 20.04 LTS undertow No fix yet —
Ubuntu Pro 18.04 LTS undertow No fix yet —
Ubuntu Pro 16.04 LTS undertow No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-activemq-artemis +15 1.5.5.016-1.redhat_00001.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-artemis-native +1 1:1.5.5.016-1.redhat_00001.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jackson-core +4 2.10.4-3.redhat_00006.1.el7eap RHSA-2025:9583
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jackson-databind +2 2.10.4-5.redhat_00006.1.el7eap RHSA-2025:9583
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jackson-datatype-jdk8 +2 2.10.4-2.redhat_00006.1.el7eap RHSA-2025:9583
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jboss-server-migration +21 1.7.2-16.Final_redhat_00017.1.el7eap RHSA-2025:9583
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jboss-xnio-base 3.5.11-1.Final_redhat_00001.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jsoup 1.14.2-1.redhat_00002.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-netty +1 4.1.63-5.Final_redhat_00003.1.el7eap RHSA-2025:9583
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-undertow 1.4.18-14.SP13_redhat_00001.1.ep7.el7 RHSA-2025:9583, RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wildfly +1 7.1.10-2.GA_redhat_00002.1.ep7.el7 RHSA-2025:9583, RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wildfly-elytron +1 1.10.17-1.Final_redhat_00001.1.el7eap RHSA-2025:9583
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wildfly-javadocs +2 7.3.14-3.GA_redhat_00002.1.el7eap RHSA-2025:9583
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-woodstox-core 5.0.3-2.redhat_00002.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-xml-security 2.0.10-2.redhat_00002.1.ep7.el7 RHSA-2025:4226
Red Hat JBoss EAP 7 eap7-snakeyaml 1.31.0-1.redhat_00001.1.el7eap RHSA-2022:6823, RHSA-2022:6822, RHSA-2022:6821
Red Hat JBoss EAP 7 eap7-undertow 2.2.19-1.SP2_redhat_00001.1.el7eap RHSA-2022:6823, RHSA-2022:6822, RHSA-2022:6821

Affected packages

EcosystemPackageAffectedFixedRecord
Maven io.undertow:undertow-core < 2.2.19.Final 2.2.19.Final GHSA-95rf-557x-44g5
Maven io.undertow:undertow-core >= 2.3.0.Alpha1, < 2.3.0.Alpha2 2.3.0.Alpha2 GHSA-95rf-557x-44g5

Advisories 8

References