CVE-2023-40225
A public proof of concept exists; no exploitation attested.
- Published2023-08-10
- Fixed in2.8.2 · 2.7.10 · 2.6.15 · 2.4.24 · 2.2.31 · 2.0.33
- WeaknessCWE-444
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2023-08-1021:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.8 | ≥ 2.8.0, < 2.8.2 | 2.8.2 | NVD · OSV |
| 2.7 | ≥ 2.7.0, < 2.7.10 | 2.7.10 | NVD · OSV |
| 2.x | ≥ 2.5.0, < 2.6.15 | 2.6.15 | NVD · OSV |
| 2.4 | ≥ 2.4.0, < 2.4.24 | 2.4.24 | OSV |
| 2.2 | ≥ 2.2.0, < 2.2.31 | 2.2.31 | OSV |
| 2.0 | < 2.0.33 | 2.0.33 | OSV |
| 2.0 | ≤ 2.0.32 | no fix published | NVD |
| 2.2 | ≥ 2.2.0, ≤ 2.2.30 | no fix published | NVD |
| 2.4 | ≥ 2.4.0, ≤ 2.4.23 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- haproxyUbuntu:22.04:LTSall versions · fixed in 2.4.22-0ubuntu0.22.04.2
- haproxyUbuntu:20.04:LTSall versions · fixed in 2.0.31-0ubuntu0.2
- haproxyTuxCare:AlmaLinux:9.2all versions · fixed in 2.4.17-6.el9.tuxcare.els3
- haproxySUSE:Linux Enterprise Micro 5.4all versions · fixed in 2.4.22+git0.f8e3218e2-150400.3.16.1
- haproxySUSE:Linux Enterprise Micro 5.3all versions · fixed in 2.4.22+git0.f8e3218e2-150400.3.16.1
- haproxySUSE:Linux Enterprise High Availability Extension 15 SP5all versions · fixed in 2.4.22+git0.f8e3218e2-150400.3.16.1
- haproxySUSE:Linux Enterprise High Availability Extension 15 SP4all versions · fixed in 2.4.22+git0.f8e3218e2-150400.3.16.1
- haproxySUSE:Linux Enterprise High Availability Extension 15 SP3all versions · fixed in 2.0.31-150200.11.23.1
26 more package ranges on OSV.dev
Vendor advisories
haproxy: Proxy forwards malformed empty Content-Length headers
haproxy.src as a component of Red Hat Ceph Storage 5 · haproxy22 as a component of Red Hat Ceph Storage 5 · haproxy as a component of Red Hat Enterprise Linux 6 · +8 more
Red Hat Security Advisory: haproxy security update
Red Hat Security Advisory: haproxy security update
Red Hat Security Advisory: OpenShift Container Platform 4.11.57 packages and security update
Red Hat Security Advisory: OpenShift Container Platform 4.12.47 security update
Red Hat Security Advisory: OpenShift Container Platform 4.13.25 packages and security update
1 more advisory
Fix
- Update HAProxy to 2.8.2 · 2.7.10 · 2.6.15 · 2.4.24 · 2.2.31 · 2.0.33
- Vendor fix Red Hat Product Security RHSA-2024:1142 · 13 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2024:0308 · 13 productsFor OpenShift Container Platform 4.11 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.11/release_notes/ocp-4-1…
- Vendor fix Red Hat Product Security RHSA-2024:0200 · 13 productsSee the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.12/release_notes/ocp-4-12-release-notes.html Details on how t…
- Vendor fix Red Hat Product Security RHSA-2023:7606 · 13 productsFor OpenShift Container Platform 4.13 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.13/release_notes/ocp-4-1…
- Vendor fix Red Hat Product Security RHSA-2023:7473 · 13 productsFor OpenShift Container Platform 4.14 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.14/release_notes/ocp-4-1…
- Workaround from the vendor Red Hat Product Security RHSA-2024:1142 · 13 productsThis flaw can be mitigated by applying a rule to explicitly reject any requests with an empty Content-Lenght header. The following line can be added to any frontend configurations at the /etc/haproxy/haproxy.cfg file. ~~~ http-request deny if { hdr_len(content-length) 0 } ~~~
Advisories and patches
- github.comPatch
- github.comVendor Advisory
- www.haproxy.orgRelease Notes
- www.haproxy.orgRelease Notes
- www.haproxy.orgRelease Notes
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-10-09
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2024-10-09
- NVDCVSS 3.17.2read 2026-10-23
- NVDweakness (CWE)CWE-444read 2026-10-23
- FIRST EPSSEPSS score2.1 %2026-11-08
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-27912same flawAzure Linux · MIT
- BIT-haproxy-2023-40225same flawBitnami · Apache-2.0
- EUVD-2023-44822same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-xgq7-jp95-v2qvsame flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2024:1142advisory covering several CVEsAlmaLinux · MIT
- DSA-5590-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2023-0320advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2023-1541advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:13116-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2023:7473advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:7606advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:0200advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:0308advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:1089advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:1142advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2023:3469-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3490-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:4646-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-6294-1advisory covering several CVEsUbuntu
- USN-6294-2advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
- Published
- 2023-08-10
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-xgq7-jp95-v2qv
Frequently asked questions
What is CVE-2023-40225?
Is CVE-2023-40225 actively exploited?
What is the CVSS score for CVE-2023-40225?
Running HAProxy? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-xgq7-jp95-v2qv
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0