{"id":"CVE-2021-40346","aliases":["CVE-2021-40346","BIT-HAPROXY-2021-40346"],"related":[],"kind":"vulnerability","state":"published","title":"An integer overflow exists in HAProxy 2.0 through 2.5 in htxaddheader that can be exploited to perform an HTTP request smuggling attack, al…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Se presenta un desbordamiento de enteros en HAProxy versiones 2.0 a 2.5, en la función htx_add_header() que puede ser explotada para llevar a cabo un ataque de contrabando de peticiones HTTP, permitiendo a un atacante omitir todas las ACLs configuradas de HAProxy de peticiones http y posiblemente otras ACLs","source":"nvd"}],"published":"2021-09-08T16:40:38.000Z","modified":"2026-09-08T08:47:52.098Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.0.25"},{"status":"affected","introduced":"2.2.0","fixed":"2.2.17"},{"status":"affected","introduced":"2.3.0","fixed":"2.3.14"},{"status":"affected","introduced":"2.4.0","fixed":"2.4.4"},{"status":"affected","version":"2.5"},{"status":"affected","version":"2.5"},{"status":"affected","version":"2.5"},{"status":"affected","version":"2.5"},{"status":"affected","version":"2.5"},{"status":"affected","version":"2.5"},{"status":"affected","version":"2.5"}],"vendor":"haproxy","product":"haproxy","cpe":"cpe:2.3:a:haproxy:haproxy:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"33"},{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.0.25"},{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.2.17"},{"type":"semver","introduced":"2.3.0","status":"affected","fixed":"2.3.14"},{"type":"semver","introduced":"2.4.0","status":"affected","fixed":"2.4.4"}],"ecosystem":"Bitnami","package":"haproxy","purl":"pkg:bitnami/haproxy","source":"bitnami"}],"references":[{"url":"https://www.mail-archive.com/haproxy%40formilux.org","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://git.haproxy.org/?p=haproxy.git","tags":["advisory","patch","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.debian.org/security/2021/dsa-4968","tags":["advisory","third-party-advisory","vendor-advisory","x-refsource-debian","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.mail-archive.com/haproxy%40formilux.org/msg41114.html","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/","tags":["advisory","exploit","mitigation","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95","tags":["advisory","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40346","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-40346","url":"https://www.cve.org/CVERecord?id=CVE-2021-40346","licence":"CVE Terms of Use","modified":"2024-08-04T02:27:31.887Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-40346","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40346","licence":"Public domain","modified":"2026-06-17T04:06:46.193Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-HAPROXY-2021-40346","url":"https://osv.dev/vulnerability/BIT-HAPROXY-2021-40346","licence":"Apache-2.0","modified":"2026-09-08T08:47:52.098Z"}],"updatedAt":"2026-11-25T22:58:03.811Z","epss":{"score":0.58832,"percentile":0.99331,"date":"2026-11-30T12:00:22.000Z"}}