First published: Thu Aug 10 2023(Updated: )
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.
Credit: cve@mitre.org cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Haproxy Haproxy | <=2.0.32 | |
Haproxy Haproxy | >=2.2.0<=2.2.30 | |
Haproxy Haproxy | >=2.4.0<=2.4.23 | |
Haproxy Haproxy | >=2.5.0<2.6.15 | |
Haproxy Haproxy | >=2.7.0<2.7.10 | |
Haproxy Haproxy | >=2.8.0<2.8.2 | |
ubuntu/haproxy | <2.0.31-0ubuntu0.2 | 2.0.31-0ubuntu0.2 |
ubuntu/haproxy | <2.4.22-0ubuntu0.22.04.2 | 2.4.22-0ubuntu0.22.04.2 |
ubuntu/haproxy | <2.6.9-1ubuntu1.1 | 2.6.9-1ubuntu1.1 |
ubuntu/haproxy | <2.6.15-1ubuntu1 | 2.6.15-1ubuntu1 |
ubuntu/haproxy | <2.6.15-1<2.6.15<2.7.10<2.8.2 | 2.6.15-1 2.6.15 2.7.10 2.8.2 |
redhat/haproxy | <2.6.15 | 2.6.15 |
redhat/haproxy | <2.7.10 | 2.7.10 |
redhat/haproxy | <2.8.2 | 2.8.2 |
debian/haproxy | 1.8.19-1+deb10u3 1.8.19-1+deb10u5 2.2.9-2+deb11u6 2.6.12-1+deb12u1 2.9.9-1 |
frontend can reject requests with empty content-length header with the following rule http-request deny if { hdr_len(content-length) 0 }
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of CVE-2023-40225 is high, with a severity value of 7.2.
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.
The remedy for CVE-2023-40225 is to upgrade to HAProxy version 2.6.15 or higher.
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).
The CWE ID of CVE-2023-40225 is CWE-444.