Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Haproxy | Haproxy | >= 2.0.0, < 2.0.25 |
| Debian | Debian Linux | 11.0 |
| Fedoraproject | Fedora | 33 |
Related Weaknesses (CWE)
References
- https://git.haproxy.org/?p=haproxy.gitPatchVendor Advisory
- https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2cPatchThird Party Advisory
- https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-ExploitMitigationThird Party Advisory
- https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc41087
- https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9a
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://www.debian.org/security/2021/dsa-4968Third Party Advisory
- https://www.mail-archive.com/haproxy%40formilux.org
- https://www.mail-archive.com/haproxy%40formilux.org/msg41114.html
- https://git.haproxy.org/?p=haproxy.gitPatchVendor Advisory
- https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2cPatchThird Party Advisory
- https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-ExploitMitigationThird Party Advisory
- https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc41087
- https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9a
FAQ
What is CVE-2021-40346?
CVE-2021-40346 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 HA...
How severe is CVE-2021-40346?
CVE-2021-40346 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-40346?
Check the references section above for vendor advisories and patch information. Affected products include: Haproxy Haproxy, Debian Debian Linux, Fedoraproject Fedora.