{"id":"CVE-2021-40346","published":"2021-09-08T16:40:38Z","modified":"2024-08-04T02:27:31Z","title":"An integer overflow exists in HAProxy 2.0 through 2.5 in htx_add_header that can be exploited to perform an HTTP…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is an integer overflow in the htx_add_header function of HAProxy, affecting versions 2.0 through 2.5, which is the HTTP header-handling component of this load balancer and reverse proxy. An attacker able to send crafted HTTP requests to a vulnerable HAProxy instance can use this overflow to smuggle requests past the proxy, thereby bypassing configured http-request ACLs and potentially other access controls.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:15:53Z"},"cvss":null,"epss":{"score":0.58832,"percentile":0.99108,"date":"2026-11-02","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":2,"pulses":[{"name":"actualizacion | Red Hat Advanced Cluster Management 2.2.11 security updates and bug fixes","url":"https://otx.alienvault.com/pulse/622fd6e4d2592fc24c87e51d","created":"2022-03-14"},{"name":"ACTUALIZACION | Bajo: Actualización de seguridad de OpenShift Container Platform 4.6.53 1 REDHAT","url":"https://otx.alienvault.com/pulse/61e46aa082235e3bcc6ad202","created":"2022-01-16"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://www.mail-archive.com/haproxy%40formilux.org","tags":["x_refsource_MISC"]},{"url":"https://git.haproxy.org/?p=haproxy.git","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2021/dsa-4968","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.mail-archive.com/haproxy%40formilux.org/msg41114.html","tags":["x_refsource_MISC"]},{"url":"https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/","tags":["x_refsource_MISC"]},{"url":"https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2021-27525","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-27525","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":7,"skipped":0,"earliest":"2021-09-08","earliestUrl":"https://github.com/knqyf263/CVE-2021-40346","repos":[{"name":"knqyf263/CVE-2021-40346","url":"https://github.com/knqyf263/CVE-2021-40346","stars":41,"created":"2021-09-08"},{"name":"donky16/CVE-2021-40346-POC","url":"https://github.com/donky16/CVE-2021-40346-POC","stars":32,"created":"2021-09-10"},{"name":"alikarimi999/CVE-2021-40346","url":"https://github.com/alikarimi999/CVE-2021-40346","stars":5,"created":"2021-09-10"},{"name":"Vulnmachines/HAProxy_CVE-2021-40346","url":"https://github.com/Vulnmachines/HAProxy_CVE-2021-40346","stars":5,"created":"2021-11-08"},{"name":"alexOarga/CVE-2021-40346","url":"https://github.com/alexOarga/CVE-2021-40346","stars":0,"created":"2022-01-24"}]},"first":{"date":"2021-09-08","source":"PoC-in-GitHub","url":"https://github.com/knqyf263/CVE-2021-40346"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2021-09-08","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2021-40346","provenance":"source"},{"date":"2021-09-08","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/knqyf263/CVE-2021-40346","provenance":"source"}],"speed":{"daysToPublicExploit":0,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":25.9,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.82,"detail":"percentile 0.9911"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"7 PoC-in-GitHub repos"},{"name":"Mentioned in OTX pulses","points":1.08,"detail":"2 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}