An integer overflow exists in HAProxy 2.0 through 2.5 in htx_add_header that can be exploited to perform an HTTP request smuggling attack, allowing an attacker to bypass all configured http-request HAProxy ACLs and possibly other ACLs.
Loading...
Loading...
Score elevated to 9.0 because EPSS predicts 92% probability of exploitation within the next 30 days (top 0.3% of all CVEs). NVD baseline CVSS 7.5 retained for reference. Confidence: see factors.
An integer overflow exists in HAProxy 2.0 through 2.5 in htx_add_header that can be exploited to perform an HTTP request smuggling attack, allowing an attacker to bypass all configured http-request HAProxy ACLs and possibly other ACLs.
September 8, 2021
November 21, 2024
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | vim-haproxy (2.2.9-1ubuntu0.2) @ hirsute | 2026-05-26 | ubuntu |
| redhat | haproxy-0:2.0.19-2.el7 | 2022-01-19 | redhat |
| redhat | haproxy-0:2.0.16-2.el7 | 2022-01-12 | redhat |
| redhat | haproxy-0:2.2.13-2.el7 | 2022-01-05 | redhat |
| redhat | haproxy-0:2.2.15-2.el8 | 2021-11-10 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
RHSA-2021:4118 — Moderate
RHSA-2021:5208 — Moderate
RHSA-2022:0024 — Moderate
RHSA-2022:0114 — Moderate
HAProxy vulnerabilities
Every time one of our enrichment pipelines (NVD, MITRE cvelistV5, EPSS, CISA KEV, GHSA, OSV, vendor advisories) ran against this CVE. Most recent first.
Working exploit code is in the public domain (4 GitHub PoCs). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
HAProxy CVE-2021-40346
Open source ↗CVE-2021-40346 integer overflow enables http smuggling
Open source ↗CVE-2021-40346 PoC (HAProxy HTTP Smuggling)
Open source ↗See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-40346
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.
redhat
CWE-190