CVE-2021-40346: 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...
High CVSS 7.5
- CVE id
- CVE-2021-40346
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| HAProxy Runtimes and servers |
>= 2.0.0, < 2.0.25 >= 2.2.0, < 2.2.17 >= 2.3.0, < 2.3.14 >= 2.4.0, < 2.4.4 >= 2.5, < 2.6 |
2.0.25, 2.2.17, 2.3.14, 2.4.4, 2.6 |
How to fix it
Upgrade HAProxy to the fixed release of the line you run: 2.0.25, 2.2.17, 2.3.14, 2.4.4, 2.6.
haproxy -v
- Install the patched HAProxy release of your branch (the haproxy image tag or your packages) and reload it.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
An integer overflow exists in HAProxy 2.0 through 2.5 in htxaddheader 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.
References
- CVE-2021-40346 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2021-40346
- Web: https://git.haproxy.org/?p=haproxy.git
- Web: https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95
- Web: https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/
- Web: https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apache.org%3E
- Web: https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apache.org%3E
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/
- Web: https://www.debian.org/security/2021/dsa-4968
- Web: https://www.mail-archive.com/haproxy%40formilux.org
- Web: https://www.mail-archive.com/haproxy%40formilux.org/msg41114.html
- Web: https://git.haproxy.org/?p=haproxy.git
- Web: https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95
- Web: https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/
- Web: https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apache.org%3E
- Web: https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apache.org%3E
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/
- Web: https://www.debian.org/security/2021/dsa-4968
- Web: https://www.mail-archive.com/haproxy%40formilux.org
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.