cve.bz

CVE-2023-40225 haproxy haproxy: HTTP Request Smuggling

7.2 highExploit referenceEPSS 2.1%Fix available

High (7.2) in haproxy haproxy. EPSS 2.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.2 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
EPSS
2.1% (unchanged from 2.1% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 83rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2024-10-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-444 Inconsistent Interpretation of HTTP Requests (HTTP Request Smuggling)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-40225 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-40225?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-40225?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-40225 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
haproxy:haproxythrough 2.0.32
haproxy:haproxyfrom 2.2.0 through 2.2.30
haproxy:haproxyfrom 2.4.0 through 2.4.23
haproxy:haproxyfrom 2.5.0 before 2.6.15
haproxy:haproxyfrom 2.7.0 before 2.7.10
haproxy:haproxyfrom 2.8.0 before 2.8.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11haproxy2.2.9-2+deb11u6DSA-5590-1
Debian12haproxy2.6.12-1+deb12u1DEBIAN-CVE-2023-40225 DSA-5590-1
Debian13, 14haproxy2.6.15-1DEBIAN-CVE-2023-40225
Ubuntu20.04:LTShaproxy2.0.31-0ubuntu0.2UBUNTU-CVE-2023-40225 USN-6294-2
Ubuntu22.04:LTShaproxy2.4.22-0ubuntu0.22.04.2UBUNTU-CVE-2023-40225 USN-6294-1
Red Hatenterprise_linux:9::appstreamhaproxy, haproxy-debuginfo, haproxy-debugsource0:2.4.22-3.el9_3RHSA-2024:1142
Red Hatopenshift:4.11::el8haproxy, haproxy22, haproxy-debugsource and 1 more0:2.2.24-4.rhaos4.11.el8RHSA-2024:0308
Red Hatopenshift:4.12::el8haproxy, haproxy22, haproxy-debugsource and 1 more0:2.2.24-4.rhaos4.12.el8RHSA-2024:0200
Red Hatopenshift:4.13::el8haproxy, haproxy22, haproxy-debugsource and 1 more0:2.2.24-4.rhaos4.13.el8RHSA-2023:7606
Red Hatopenshift:4.14::el8haproxy, haproxy26, haproxy-debugsource and 1 more0:2.6.13-2.rhaos4.14.el8RHSA-2023:7473
Red Hatopenshift_ironic:4.14::el9python-werkzeug, python3-werkzeug0:2.2.3-2.el9RHSA-2023:7473
Red Hatrhel_eus:9.2::appstreamhaproxy, haproxy-debuginfo, haproxy-debugsource0:2.4.17-6.el9_2.2RHSA-2024:1089
SUSELinux Enterprise High Availability Extension 15 SP1haproxy2.0.31-150100.8.34.1SUSE-SU-2023:4646-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise High Availability Extension 15 SP3haproxy2.0.31-150200.11.23.1SUSE-SU-2023:3490-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise High Availability Extension 15 SP5, Linux Enterprise Micro 5.3 and 1 morehaproxy2.4.22+git0.f8e3218e2-150400.3.16.1SUSE-SU-2023:3469-1
openSUSELeap 15.4, Leap 15.5, Leap Micro 5.3 and 1 morehaproxy2.4.22+git0.f8e3218e2-150400.3.16.1SUSE-SU-2023:3469-1
openSUSETumbleweedhaproxy2.8.2+git0.61a0f576a-2.1openSUSE-SU-2024:13116-1
AlmaLinux9haproxy2.4.22-3.el9_3ALSA-2024:1142
Azure Linux2haproxy2.4.24-1AZL-27912

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's 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 added to any frontend configurations at the /etc/haproxy/haproxy.cfg file.

~~~

http-request deny if { hdr_len(content-length) 0 }

~~~

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9haproxy-0:2.4.22-3.el9_3Fixed 2024-03-05RHSA-2024:1142
Red Hat Enterprise Linux 9.2 Extended Update Supporthaproxy-0:2.4.17-6.el9_2.2Fixed 2024-03-05RHSA-2024:1089
Red Hat OpenShift Container Platform 4.11haproxy-0:2.2.24-4.rhaos4.11.el8Fixed 2024-01-25RHSA-2024:0308
Red Hat OpenShift Container Platform 4.12haproxy-0:2.2.24-4.rhaos4.12.el8Fixed 2024-01-17RHSA-2024:0200
Red Hat OpenShift Container Platform 4.13haproxy-0:2.2.24-4.rhaos4.13.el8Fixed 2023-12-06RHSA-2023:7606
Red Hat OpenShift Container Platform 4.14haproxy-0:2.6.13-2.rhaos4.14.el8Fixed 2023-11-29RHSA-2023:7473
Cryostat 2haproxyNot affected
Red Hat Ceph Storage 5haproxyOut of support scope
Red Hat Enterprise Linux 6haproxyOut of support scope
Red Hat Enterprise Linux 7haproxyOut of support scope
Red Hat Enterprise Linux 8haproxyNot affected
Red Hat OpenShift Container Platform 3.11haproxyOut of support scope
Red Hat Software Collectionsrh-haproxy18-haproxyWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-40225.

Attack patterns (CAPEC)

  • CAPEC-33 HTTP Request Smuggling Likelihood: Medium · Severity: High
  • CAPEC-273 HTTP Response Smuggling Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON