CVE-2021-40346
publishedhaproxy: request smuggling attack or response splitting via duplicate content-length header
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2HAPROXY2-2023-005 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | haproxy | Advisory build | 2.2.9-2+deb11u2 | DSA-4968-1 |
| SUSE / openSUSE | SLE-15 | haproxyaarch64 | Advisory build | 2.0.14-3.31.1 | SUSE-SU-2021:3258-1 |
| Ubuntu | focal | haproxy | Advisory build | 2.0.13-2ubuntu0.3 | USN-5063-1 |
| Amazon Linux | AL2 | haproxy2aarch64 | Listed in advisory | Not stated | ALAS2HAPROXY2-2023-005 |
| SUSE / openSUSE | SLE-15 | haproxyppc64le | Advisory build | 2.0.14-3.31.1 | SUSE-SU-2021:3258-1 |
| SUSE / openSUSE | SLE-15 | haproxys390x | Advisory build | 2.0.14-3.31.1 | SUSE-SU-2021:3258-1 |
Show 25 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15 | haproxyx86_64 | Advisory build | 2.0.14-3.31.1 | SUSE-SU-2021:3258-1 |
| SUSE / openSUSE | SLE-15-SP1 | haproxyaarch64 | Advisory build | 2.0.14-8.23.1 | SUSE-SU-2021:3257-1 |
| SUSE / openSUSE | SLE-15-SP1 | haproxyppc64le | Advisory build | 2.0.14-8.23.1 | SUSE-SU-2021:3257-1 |
| SUSE / openSUSE | SLE-15-SP1 | haproxys390x | Advisory build | 2.0.14-8.23.1 | SUSE-SU-2021:3257-1 |
| SUSE / openSUSE | SLE-15-SP1 | haproxyx86_64 | Advisory build | 2.0.14-8.23.1 | SUSE-SU-2021:3257-1 |
| SUSE / openSUSE | SLE-15-SP2 | haproxyaarch64 | Advisory build | 2.0.14-11.11.1 | SUSE-SU-2021:2975-1 |
| SUSE / openSUSE | SLE-15-SP2 | haproxyppc64le | Advisory build | 2.0.14-11.11.1 | SUSE-SU-2021:2975-1 |
| SUSE / openSUSE | SLE-15-SP2 | haproxys390x | Advisory build | 2.0.14-11.11.1 | SUSE-SU-2021:2975-1 |
| SUSE / openSUSE | SLE-15-SP2 | haproxyx86_64 | Advisory build | 2.0.14-11.11.1 | SUSE-SU-2021:2975-1 |
| SUSE / openSUSE | SLE-15-SP3 | haproxyaarch64 | Advisory build | 2.0.14-11.11.1 | SUSE-SU-2021:2975-1 |
| SUSE / openSUSE | SLE-15-SP3 | haproxyppc64le | Advisory build | 2.0.14-11.11.1 | SUSE-SU-2021:2975-1 |
| SUSE / openSUSE | SLE-15-SP3 | haproxys390x | Advisory build | 2.0.14-11.11.1 | SUSE-SU-2021:2975-1 |
| SUSE / openSUSE | SLE-15-SP3 | haproxyx86_64 | Advisory build | 2.0.14-11.11.1 | SUSE-SU-2021:2975-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | haproxyx86_64 | Advisory build | 2.0.14-lp152.2.6.1 | OPENSUSE-SU-2021:1329-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | haproxyaarch64 | Advisory build | 2.0.14-11.11.1 | OPENSUSE-SU-2021:2975-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | haproxyppc64le | Advisory build | 2.0.14-11.11.1 | OPENSUSE-SU-2021:2975-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | haproxys390x | Advisory build | 2.0.14-11.11.1 | OPENSUSE-SU-2021:2975-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | haproxyx86_64 | Advisory build | 2.0.14-11.11.1 | OPENSUSE-SU-2021:2975-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | haproxyaarch64 | Advisory build | 2.4.4+git0.acb1d0bea-1.2 | OPENSUSE-SU-2024:10839-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | haproxyppc64le | Advisory build | 2.4.4+git0.acb1d0bea-1.2 | OPENSUSE-SU-2024:10839-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | haproxys390x | Advisory build | 2.4.4+git0.acb1d0bea-1.2 | OPENSUSE-SU-2024:10839-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | haproxyx86_64 | Advisory build | 2.4.4+git0.acb1d0bea-1.2 | OPENSUSE-SU-2024:10839-1 |
| Ubuntu | focal | vim-haproxy | Advisory build | 2.0.13-2ubuntu0.3 | USN-5063-1 |
| Amazon Linux | AL2 | haproxy2src | Listed in advisory | Not stated | ALAS2HAPROXY2-2023-005 |
| Amazon Linux | AL2 | haproxy2x86_64 | Listed in advisory | Not stated | ALAS2HAPROXY2-2023-005 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
10- https://git.haproxy.org/?p=haproxy.git
- https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95
- https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/
- [cloudstack-dev] 20210910 CVE-2021-40346 (haproxy 2.x) https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apache.org%3E
- [cloudstack-dev] 20210910 Re: CVE-2021-40346 (haproxy 2.x) https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apache.org%3E
- FEDORA-2021-3493f9f6ab https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/
- FEDORA-2021-cd5ee418f6 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/
- DSA-4968 https://www.debian.org/security/2021/dsa-4968
- https://www.mail-archive.com/haproxy%40formilux.org
- https://www.mail-archive.com/haproxy%40formilux.org/msg41114.html
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- b0471cc6ba13f8c8757ed54d53ddd41b6e2328a12bbc84da347c75ec40f75738
- Ingested
- 23 Sep 2026, 07:55:59 UTC
- Source record
- Official CVE record