Vulnerabilities · 2021 · Haproxy
CVE-2021-40346
Haproxy vulnerability
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.
Affected products
Haproxy, Debian Linux, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Haproxy runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- git.haproxy.org/?p=haproxy.git · Patch
- github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95 · Patch
- jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-h · Exploit
- www.debian.org/security/2021/dsa-4968 · Third Party Advisory
- lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%
- lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M
- nvd.nist.gov/vuln/detail/CVE-2021-40346
- cve.org/CVERecord?id=CVE-2021-40346
More vulnerabilities in Haproxy products
CVE-2025-11230CVE-2024-45506CVE-2023-45539CVE-2023-40225CVE-2023-25950CVE-2023-25725CVE-2023-0836CVE-2023-0056All 32
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.