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.
CVE-2021-40346
Score elevated to 8.3 because EPSS predicts 58% probability of exploitation within the next 30 days (top 1.0% of all CVEs). NVD baseline CVSS 7.5 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 58%
A fix is available — apply it.
- CVSS v3
- 7.5
- EG Score
- 8.3(high)
- EG Risk
- 65(Track)EG Risk 65/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity83% × 45%Exploitation58% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS
- 99.0%
- KEV
- Not listed
Published
September 8, 2021
Last Modified
November 21, 2024
References (20)
- cve@mitrehttps://git.haproxy.org/?p=haproxy.git
- cve@mitrehttps://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95
- cve@mitrehttps://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/
- cve@mitrehttps://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apache.org%3E
- cve@mitrehttps://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apache.org%3E
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/
- cve@mitrehttps://www.debian.org/security/2021/dsa-4968
- cve@mitrehttps://www.mail-archive.com/haproxy%40formilux.org
- cve@mitrehttps://www.mail-archive.com/haproxy%40formilux.org/msg41114.html
- af854a3a-2127-422b-91ae-364da2661108https://git.haproxy.org/?p=haproxy.git
- af854a3a-2127-422b-91ae-364da2661108https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95
- af854a3a-2127-422b-91ae-364da2661108https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/
- af854a3a-2127-422b-91ae-364da2661108https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apache.org%3E
- af854a3a-2127-422b-91ae-364da2661108https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apache.org%3E
Patch Availability(5)
| 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.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(5)
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.
- Red HatRHSA-2021:4118MODERATE2021-09-08
RHSA-2021:4118 — Moderate
- Red HatRHSA-2021:5208MODERATE2021-09-08
RHSA-2021:5208 — Moderate
- Red HatRHSA-2022:0024MODERATE2021-09-08
RHSA-2022:0024 — Moderate
- Red HatRHSA-2022:0114MODERATE2021-09-08
RHSA-2022:0114 — Moderate
- UbuntuUSN-5063-1MEDIUM
HAProxy vulnerabilities
Data Freshness Timeline
(refreshed 12× in last 7d / 35× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-24 14:15 UTCEPSS rescore
- 2026-07-23 14:16 UTCEPSS rescore
- 2026-07-23 02:04 UTCEG score recompute▲ 0.80
- 2026-07-22 22:50 UTCEG score recompute▼ 1.50
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-20 17:05 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-18 12:29 UTCOSV refresh
- 2026-07-18 10:02 UTCEPSS rescore
- 2026-07-18 10:02 UTCEPSS rescore
- 2026-07-16 17:00 UTCEPSS rescore
- 2026-07-16 17:00 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-13 22:27 UTCEPSS rescore
- 2026-07-13 22:27 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-12 05:44 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
- 2026-07-07 13:43 UTCEPSS rescore
Show 45 moreShow fewer
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-02 16:57 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 15:30 UTCOSV refresh
- 2026-06-28 14:05 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 22:10 UTCOSV refresh
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-26 10:43 UTCEG score recompute
- 2026-05-26 10:43 UTCVendor advisory
- 2026-05-26 10:43 UTCGHSA enrichment
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-25 08:16 UTCOSV refresh
Publicly available exploits
(4 references)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.
- GitHub PoCVulnmachines/HAProxy_CVE-2021-40346First seen Nov 8, 2021
HAProxy CVE-2021-40346
Open source ↗ - GitHub PoCdonky16/CVE-2021-40346-POCFirst seen Sep 10, 2021
CVE-2021-40346 integer overflow enables http smuggling
Open source ↗ - Open source ↗GitHub PoCalikarimi999/CVE-2021-40346First seen Sep 10, 2021
- GitHub PoCknqyf263/CVE-2021-40346First seen Sep 8, 2021
CVE-2021-40346 PoC (HAProxy HTTP Smuggling)
Open source ↗
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat
Same CWE
10 shownCWE-190
- CVE-2009-0947EG 9.8CRITICAL
- CVE-2013-2729EG 9.8 KEVEPSS 99%CRITICAL
- CVE-2005-1141EG 9.8CRITICAL
- CVE-2005-0102EG 9.8CRITICAL
- CVE-2002-0391EG 9.8EPSS 99%CRITICAL
- CVE-2002-0639EG 9.8EPSS 97%CRITICAL
- CVE-2013-3486EG 9.6CRITICAL
- CVE-2013-2596NVD 7.8EG 9.0 KEVHIGH
- CVE-2012-5054NVD 8.8EG 9.0 KEVEPSS 97%HIGH
- CVE-2011-1823NVD 7.8EG 9.0 KEVEPSS 99%HIGH
Frequently asked(5)
What is CVE-2021-40346?
When was CVE-2021-40346 disclosed?
Is CVE-2021-40346 actively exploited?
What is the CVSS score of CVE-2021-40346?
How do I remediate CVE-2021-40346?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2021-40346
Is Your Infrastructure Affected by CVE-2021-40346?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.