# CVE-2021-40346: An integer overflow exists in HAProxy 2.0 through 2.5 in htxaddheader that can be exploited to perform an HTTP request smuggling attack, al…

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 58.8%, higher than 99% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-08T16:40:38.000Z
- Modified: 2026-09-08T08:47:52.098Z
- Also known as: BIT-HAPROXY-2021-40346
- Weaknesses: CWE-190
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- haproxy haproxy: from 2.0.0 before 2.0.25; from 2.2.0 before 2.2.17; from 2.3.0 before 2.3.14; from 2.4.0 before 2.4.4; 2.5
- debian debian_linux: 11.0
- fedoraproject fedora: 33; 34
- haproxy (Bitnami): from 2.0.0 before 2.0.25; from 2.2.0 before 2.2.17; from 2.3.0 before 2.3.14; from 2.4.0 before 2.4.4

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/> (exploit, advisory, mitigation, third-party-advisory)
- <https://www.mail-archive.com/haproxy%40formilux.org> (web)
- <https://git.haproxy.org/?p=haproxy.git> (advisory, patch, vendor-advisory)
- <https://www.debian.org/security/2021/dsa-4968> (advisory, third-party-advisory, vendor-advisory)
- <https://www.mail-archive.com/haproxy%40formilux.org/msg41114.html> (web)
- <https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95> (advisory, patch, third-party-advisory)
- <https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apache.org%3E> (mailing-list, web)
- <https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apache.org%3E> (mailing-list, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-40346> (web)

## Sources

- CVE List: [CVE-2021-40346](https://www.cve.org/CVERecord?id=CVE-2021-40346), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-40346](https://nvd.nist.gov/vuln/detail/CVE-2021-40346), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-HAPROXY-2021-40346](https://osv.dev/vulnerability/BIT-HAPROXY-2021-40346), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-40346 · Whole record: https://cve.day/CVE-2021-40346.json · Rebuilt by cve.day 2026-11-25T22:58:03.811Z
