CVE-2023-40225: High severity HAProxy HAProxy vulnerability
HAProxy through 2.0.32, 2.1.x and 2.2.x through 2.2.30, 2.3.x and 2.4.x through 2.4.23, 2.5.x and 2.6.x before 2.6.15, 2.7.x before 2.7.10, and 2.8.x before 2.8.2 forwards empty Content-Length headers, violating RFC 9110 section 8.6. In uncommon cases, an HTTP/1 server behind HAProxy may interpret the payload as an extra request.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/haproxyto a version that resolves this vulnerability.Fixed in 2.0.31-0ubuntu0.2 - Upgrade
Upgrade
ubuntu/haproxyto a version that resolves this vulnerability.Fixed in 2.4.22-0ubuntu0.22.04.2 - Upgrade
Upgrade
ubuntu/haproxyto a version that resolves this vulnerability.Fixed in 2.6.9-1ubuntu1.1 - Upgrade
Upgrade
ubuntu/haproxyto a version that resolves this vulnerability.Fixed in 2.6.15-1ubuntu1 - Upgrade
Upgrade
ubuntu/haproxyto a version that resolves this vulnerability.Fixed in 2.6.15-1Fixed in 2.6.15Fixed in 2.7.10Fixed in 2.8.2 - Upgrade
Upgrade
debian/haproxyto a version that resolves this vulnerability.Fixed in 1.8.19-1+deb10u3Fixed in 1.8.19-1+deb10u5Fixed in 2.2.9-2+deb11u6Fixed in 2.6.12-1+deb12u1Fixed in 2.9.9-1 - Upgrade
Upgrade
redhat/haproxyto a version that resolves this vulnerability.Fixed in 2.6.15 - Upgrade
Upgrade
redhat/haproxyto a version that resolves this vulnerability.Fixed in 2.7.10 - Upgrade
Upgrade
redhat/haproxyto a version that resolves this vulnerability.Fixed in 2.8.2 - Upgrade
Upgrade
haproxyto a version that resolves this vulnerability.Fixed in 2.8.2 - Configuration
In the affected HAProxy frontend(s), reject requests with an empty Content-Length header by configuring: http-request deny if { hdr_len(content-length) 0 }.
HAProxy frontend http-request deny if { hdr_len(content-length) 0 } = enabled
Event History
Frequently Asked Questions
What is the severity of CVE-2023-40225?
The severity of CVE-2023-40225 is high, with a severity value of 7.2.
How does CVE-2023-40225 affect HAProxy?
CVE-2023-40225 affects HAProxy versions through 2.0.32, 2.1.x, 2.2.x, 2.3.x, 2.4.x, 2.5.x, 2.6.x, 2.7.x, 2.8.x, and 2.9.x.
What is the remedy for CVE-2023-40225?
The remedy for CVE-2023-40225 is to upgrade to HAProxy version 2.6.15 or higher.
Where can I find more information about CVE-2023-40225?
You can find more information about CVE-2023-40225 at the following references: [link1](https://cwe.mitre.org/data/definitions/436.html), [link2](https://github.com/haproxy/haproxy/commit/6492f1f29d738457ea9f382aca54537f35f9d856), [link3](https://github.com/haproxy/haproxy/issues/2237).
What is the CWE ID of CVE-2023-40225?
The CWE ID of CVE-2023-40225 is CWE-444.