{"schemaVersion":3,"id":"CVE-2021-40346","aliases":["SUSE-SU-2021:2975-1","SUSE-SU-2021:3257-1","SUSE-SU-2021:3258-1","UBUNTU-CVE-2021-40346","USN-5063-1","DEBIAN-CVE-2021-40346","DSA-4968-1","openSUSE-SU-2021:1329-1","openSUSE-SU-2021:2975-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-09-08T16:40:38.000Z","modified":"2024-08-04T02:27:31.887Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.58832,"percentile":0.99108,"severity":"critical","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.8979999999999988,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.57934},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.58832,"percentile":0.99108}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.57934,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.58832,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.58832,"percentile":0.99108}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_8DC15A409FDCC6B3","name":"Exploit Reference (jfrog.com)","source":"reference","url":"https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"}],"affected":[{"vendor":"debian","product":"haproxy","name":"haproxy","label":"haproxy","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/haproxy","purlType":"deb","versions":[{"text":"< 2.2.9-2+deb11u2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.2.16-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.2.9-2+deb11u2 | < 2.2.16-3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"haproxy","name":"haproxy","label":"haproxy","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/haproxy","purlType":"deb","versions":[{"text":"< 2.0.13-2ubuntu0.3","noFixRecorded":false,"fixedIn":null},{"text":"< 2.2.9-2ubuntu2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.13-2ubuntu0.3 | < 2.2.9-2ubuntu2","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"11.0","eol":{"isEol":true,"eolDate":"2026-08-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"11","label":"11 (Bullseye)","eolFrom":"2026-08-31T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"11.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"33","noFixRecorded":false,"fixedIn":null},{"text":"34","noFixRecorded":false,"fixedIn":null}],"versionsText":"33 | 34","eol":{"isEol":true,"eolDate":"2021-11-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"33","label":"33","eolFrom":"2021-11-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"haproxy","product":"haproxy","name":"HAProxy","label":"haproxy","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, < 2.0.25","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.2.0, < 2.2.17","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.3.0, < 2.3.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.4.0, < 2.4.4","noFixRecorded":false,"fixedIn":null},{"text":"2.5:dev0","noFixRecorded":false,"fixedIn":null},{"text":"2.5:dev1","noFixRecorded":false,"fixedIn":null},{"text":"2.5:dev2","noFixRecorded":false,"fixedIn":null},{"text":"2.5:dev3","noFixRecorded":false,"fixedIn":null},{"text":"2.5:dev4","noFixRecorded":false,"fixedIn":null},{"text":"2.5:dev5","noFixRecorded":false,"fixedIn":null},{"text":"2.5:dev6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 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:dev0 | 2.5:dev1 | 2.5:dev2 | 2.5:dev3 | 2.5:dev4 | 2.5:dev5 | 2.5:dev6","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"haproxy","label":"HAProxy","category":"server-app"}},"hubHref":"/vendor/haproxy/haproxy"},{"vendor":"opensuse","product":"haproxy&distro=openSUSE Leap 15.2","name":"haproxy","label":"haproxy&distro=openSUSE Leap 15.2","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/haproxy&distro=openSUSE Leap 15.2","purlType":"rpm","versions":[{"text":"< 2.0.14-lp152.2.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.14-lp152.2.6.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"haproxy&distro=openSUSE Leap 15.3","name":"haproxy","label":"haproxy&distro=openSUSE Leap 15.3","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/haproxy&distro=openSUSE Leap 15.3","purlType":"rpm","versions":[{"text":"< 2.0.14-11.11.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.14-11.11.1","eol":null,"hubHref":null},{"vendor":"suse","product":"haproxy&distro=SUSE Linux Enterprise High Availability Extension 15","name":"haproxy","label":"haproxy&distro=SUSE Linux Enterprise High Availability Extension 15","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/haproxy&distro=SUSE Linux Enterprise High Availability Extension 15","purlType":"rpm","versions":[{"text":"< 2.0.14-3.31.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.14-3.31.1","eol":null,"hubHref":null},{"vendor":"suse","product":"haproxy&distro=SUSE Linux Enterprise High Availability Extension 15 SP1","name":"haproxy","label":"haproxy&distro=SUSE Linux Enterprise High Availability Extension 15 SP1","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/haproxy&distro=SUSE Linux Enterprise High Availability Extension 15 SP1","purlType":"rpm","versions":[{"text":"< 2.0.14-8.23.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.14-8.23.1","eol":null,"hubHref":null},{"vendor":"suse","product":"haproxy&distro=SUSE Linux Enterprise High Availability Extension 15 SP2","name":"haproxy","label":"haproxy&distro=SUSE Linux Enterprise High Availability Extension 15 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/haproxy&distro=SUSE Linux Enterprise High Availability Extension 15 SP2","purlType":"rpm","versions":[{"text":"< 2.0.14-11.11.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.14-11.11.1","eol":null,"hubHref":null},{"vendor":"suse","product":"haproxy&distro=SUSE Linux Enterprise High Availability Extension 15 SP3","name":"haproxy","label":"haproxy&distro=SUSE Linux Enterprise High Availability Extension 15 SP3","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/haproxy&distro=SUSE Linux Enterprise High Availability Extension 15 SP3","purlType":"rpm","versions":[{"text":"< 2.0.14-11.11.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.14-11.11.1","eol":null,"hubHref":null}],"affectedCount":11,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://www.mail-archive.com/haproxy%40formilux.org","label":"www.mail-archive.com/haproxy%40formilux.org","hostname":"www.mail-archive.com","tags":["X Refsource MISC"]},{"url":"https://git.haproxy.org/?p=haproxy.git","label":"git.haproxy.org?p=haproxy.git","hostname":"git.haproxy.org","tags":["X Refsource MISC","Patch","Vendor Advisory"]},{"url":"https://www.debian.org/security/2021/dsa-4968","label":"www.debian.org/security/2021/dsa-4968","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://www.mail-archive.com/haproxy%40formilux.org/msg41114.html","label":"www.mail-archive.com/haproxy%40formilux.org/msg41114.html","hostname":"www.mail-archive.com","tags":["X Refsource MISC"]},{"url":"https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/","label":"jfrog.com/blog/…","hostname":"jfrog.com","tags":["X Refsource MISC","Exploit","Mitigation","Third Party Advisory"]},{"url":"https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95","label":"github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20212975-1/","label":"www.suse.com/support/update/announcement/2021/suse-su-20212975-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1189877","label":"bugzilla.suse.com/1189877","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2021-40346","label":"www.suse.com/security/cve/CVE-2021-40346","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20213257-1/","label":"www.suse.com/support/update/announcement/2021/suse-su-20213257-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20213258-1/","label":"www.suse.com/support/update/announcement/2021/suse-su-20213258-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-40346","label":"ubuntu.com/security/CVE-2021-40346","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.mail-archive.com/haproxy@formilux.org/msg41114.html","label":"www.mail-archive.com/haproxy@formilux.org/msg41114.html","hostname":"www.mail-archive.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5063-1","label":"ubuntu.com/security/notices/USN-5063-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40346","label":"www.cve.org/CVERecord?id=CVE-2021-40346","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-40346","label":"security-tracker.debian.org/tracker/CVE-2021-40346","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/VUBHGD7IXTYDS4PM3AVFQLIU2HR2Y24Y/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/Z6TTUW6SSY2VZZGE3CPYLSNSIBVPT2RR/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:10839-1","RHSA-2021:4118","RHSA-2021:5208","RHSA-2022:0024","RHSA-2022:0114"],"duplicates":[],"related":["OPENSUSE-SU-2024:10839-1"]},"timeline":[{"kind":"published","date":"2021-09-08T16:40:38.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T02:27:31.887Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":52,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T12:30:33.373Z","stale":false,"partial":false}}