CVE-2023-40225
published 2023-08-10CVE-2023-40225: 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…
PriorityP340high7.2CVSS 3.1
AVNACLPRNUINSCCLILAN
EPSS
1.81%
76.3th percentile
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
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | haproxy | < haproxy 2.6.12-1+deb12u1 (bookworm) | haproxy 2.6.12-1+deb12u1 (bookworm) |
| haproxy | haproxy | <= 2.0.32 | — |
| haproxy | haproxy | >= 0 < 2.2.9-2+deb11u6 | 2.2.9-2+deb11u6 |
| haproxy | haproxy | >= 0 < 2.6.12-1+deb12u1 | 2.6.12-1+deb12u1 |
| haproxy | haproxy | >= 0 < 2.6.15-1 | 2.6.15-1 |
| haproxy | haproxy | >= 0 < 2.6.15-1 | 2.6.15-1 |
| haproxy | haproxy | 2.2.0 – 2.2.30 | — |
| haproxy | haproxy | 2.4.0 – 2.4.23 | — |
| haproxy | haproxy | >= 2.5.0 < 2.6.15 | 2.6.15 |
| haproxy | haproxy | >= 2.7.0 < 2.7.10 | 2.7.10 |
| haproxy | haproxy | >= 2.8.0 < 2.8.2 | 2.8.2 |
| msrc | cbl2_haproxy_2.4.24-1_on_cbl_mariner_2.0 | — | — |
CVSS provenance
nvdv3.17.2HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
osv7.2HIGH
vendor_debian7.2HIGH
vendor_msrc7.2HIGH
vendor_redhat7.2HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
HAProxy vulnerability
vendor_ubuntu·2023-08-17
CVE-2023-40225 HAProxy vulnerability
Title: HAProxy vulnerability
Summary: HAProxy could allow unintended access to network services.
USN-6294-1 fixed vulnerabilities in HAProxy. This update provides the
corresponding updates for Ubuntu 20.04 LTS.
Original advisory details:
Ben Kallus discovered that HAProxy incorrectly handled empty Content-Length
headers. A remote attacker could possibly use this issue to manipulate the
payload and bypass certain restrictions.
Instructions: In general, a standard system update will make all the necessary changes.
Ubuntu
HAProxy vulnerability
vendor_ubuntu·2023-08-16
CVE-2023-40225 HAProxy vulnerability
Title: HAProxy vulnerability
Summary: HAProxy could allow unintended access to network services.
Ben Kallus discovered that HAProxy incorrectly handled empty Content-Length
headers. A remote attacker could possibly use this issue to manipulate the
payload and bypass certain restrictions.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
haproxy: Proxy forwards malformed empty Content-Length headers
vendor_redhat·2023-08-10·CVSS 7.2
CVE-2023-40225 [HIGH] CWE-20 haproxy: Proxy forwards malformed empty Content-Length headers
haproxy: Proxy forwards malformed empty Content-Length headers
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.
A flaw was found in HAProxy. Empty Content-Length headers are forwarded, which could cause an HTTP/1 server behind it to interpret the payload as an extra request. This may render the HTTP/1 server vulnerable to attacks in some uncommon cases.
Mitigation: This flaw can be mitigated by applying a rule to explicitly reject any requests with an empty Content-Lenght header. The following line can be add
Microsoft
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 viol
vendor_msrc·2023-08-08·CVSS 7.2
CVE-2023-40225 [HIGH] CWE-444 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 viol
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX
Debian
CVE-2023-40225: haproxy - HAProxy through 2.0.32, 2.1.x and 2.2.x through 2.2.30, 2.3.x and 2.4.x through ...
vendor_debian·2023·CVSS 7.2
CVE-2023-40225 [HIGH] CVE-2023-40225: haproxy - HAProxy through 2.0.32, 2.1.x and 2.2.x through 2.2.30, 2.3.x and 2.4.x through ...
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.
Scope: local
bookworm: resolved (fixed in 2.6.12-1+deb12u1)
bullseye: resolved (fixed in 2.2.9-2+deb11u6)
forky: resolved (fixed in 2.6.15-1)
sid: resolved (fixed in 2.6.15-1)
trixie: resolved (fixed in 2.6.15-1)
GHSA
GHSA-xgq7-jp95-v2qv: HAProxy through 2
ghsa_unreviewed·2023-08-10
CVE-2023-40225 [HIGH] CWE-444 GHSA-xgq7-jp95-v2qv: HAProxy through 2
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.
OSV
CVE-2023-40225: HAProxy through 2
osv·2023-08-10·CVSS 7.2
CVE-2023-40225 [HIGH] CVE-2023-40225: HAProxy through 2
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://cwe.mitre.org/data/definitions/436.htmlhttps://github.com/haproxy/haproxy/commit/6492f1f29d738457ea9f382aca54537f35f9d856https://github.com/haproxy/haproxy/issues/2237https://www.haproxy.org/download/2.6/src/CHANGELOGhttps://www.haproxy.org/download/2.7/src/CHANGELOGhttps://www.haproxy.org/download/2.8/src/CHANGELOGhttps://cwe.mitre.org/data/definitions/436.htmlhttps://github.com/haproxy/haproxy/commit/6492f1f29d738457ea9f382aca54537f35f9d856https://github.com/haproxy/haproxy/issues/2237https://www.haproxy.org/download/2.6/src/CHANGELOGhttps://www.haproxy.org/download/2.7/src/CHANGELOGhttps://www.haproxy.org/download/2.8/src/CHANGELOG
2023-08-10
Published