{"api_version":"1","generated_at":"2026-04-21T08:58:45+00:00","cve":"CVE-2021-40346","urls":{"html":"https://cve.report/CVE-2021-40346","api":"https://cve.report/api/cve/CVE-2021-40346.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-40346","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-40346"},"summary":{"title":"CVE-2021-40346","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-09-08 17:15:00","updated_at":"2023-11-07 03:38:00"},"problem_types":["CWE-190"],"metrics":[],"references":[{"url":"https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a@%3Cdev.cloudstack.apache.org%3E","name":"[cloudstack-dev] 20210910 Re: CVE-2021-40346 (haproxy 2.x)","refsource":"MLIST","tags":[],"title":"Pony Mail!","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95","name":"https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95","refsource":"MISC","tags":[],"title":"BUG/MAJOR: htx: fix missing header name length check in htx_add_heade… · haproxy/haproxy@3b69886 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.mail-archive.com/haproxy@formilux.org/msg41114.html","name":"https://www.mail-archive.com/haproxy@formilux.org/msg41114.html","refsource":"MISC","tags":[],"title":"[ANNOUNCE] HTX vulnerability from 2.0 to 2.5-dev","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apache.org%3E","name":"[cloudstack-dev] 20210910 Re: CVE-2021-40346 (haproxy 2.x)","refsource":"","tags":[],"title":"","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apache.org%3E","name":"[cloudstack-dev] 20210910 CVE-2021-40346 (haproxy 2.x)","refsource":"","tags":[],"title":"","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.debian.org/security/2021/dsa-4968","name":"DSA-4968","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-4968-1 haproxy","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.mail-archive.com/haproxy%40formilux.org","name":"https://www.mail-archive.com/haproxy%40formilux.org","refsource":"","tags":[],"title":"haproxy","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120@%3Cdev.cloudstack.apache.org%3E","name":"[cloudstack-dev] 20210910 CVE-2021-40346 (haproxy 2.x)","refsource":"MLIST","tags":[],"title":"Pony Mail!","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/","name":"FEDORA-2021-cd5ee418f6","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 33 Update: haproxy-2.2.17-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://git.haproxy.org/?p=haproxy.git","name":"https://git.haproxy.org/?p=haproxy.git","refsource":"MISC","tags":[],"title":"Repositories - haproxy.git/summary","mime":"text/xml","httpstatus":"200","archivestatus":"200"},{"url":"https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/","name":"https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/","refsource":"MISC","tags":[],"title":"Critical vulnerability in HAProxy | JFrog Security Research Team","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.mail-archive.com/haproxy%40formilux.org/msg41114.html","name":"https://www.mail-archive.com/haproxy%40formilux.org/msg41114.html","refsource":"","tags":[],"title":"[ANNOUNCE] HTX vulnerability from 2.0 to 2.5-dev","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/","name":"FEDORA-2021-cd5ee418f6","refsource":"","tags":[],"title":"[SECURITY] Fedora 33 Update: haproxy-2.2.17-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/","name":"FEDORA-2021-3493f9f6ab","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: haproxy-2.3.14-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.mail-archive.com/haproxy@formilux.org","name":"https://www.mail-archive.com/haproxy@formilux.org","refsource":"MISC","tags":[],"title":"haproxy","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/","name":"FEDORA-2021-3493f9f6ab","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: haproxy-2.3.14-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40346","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40346","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"40346","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"11.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40346","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"33","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40346","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40346","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"haproxy","cpe5":"haproxy","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40346","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"haproxy","cpe5":"haproxy","cpe6":"2.5","cpe7":"dev0","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40346","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"haproxy","cpe5":"haproxy","cpe6":"2.5","cpe7":"dev1","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40346","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"haproxy","cpe5":"haproxy","cpe6":"2.5","cpe7":"dev2","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40346","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"haproxy","cpe5":"haproxy","cpe6":"2.5","cpe7":"dev3","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40346","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"haproxy","cpe5":"haproxy","cpe6":"2.5","cpe7":"dev4","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40346","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"haproxy","cpe5":"haproxy","cpe6":"2.5","cpe7":"dev5","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40346","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"haproxy","cpe5":"haproxy","cpe6":"2.5","cpe7":"dev6","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-40346","qid":"178790","title":"Debian Security Update for haproxy (DSA 4968-1)"},{"cve":"CVE-2021-40346","qid":"182413","title":"Debian Security Update for haproxy (CVE-2021-40346)"},{"cve":"CVE-2021-40346","qid":"198492","title":"Ubuntu Security Notification for HAProxy Vulnerabilities (USN-5063-1)"},{"cve":"CVE-2021-40346","qid":"239873","title":"Red Hat OpenShift Container Platform 4.9 Security Update (RHSA-2021:4118)"},{"cve":"CVE-2021-40346","qid":"239987","title":"Red Hat OpenShift Container Platform 4.8 Security Update (RHSA-2021:5208)"},{"cve":"CVE-2021-40346","qid":"240004","title":"Red Hat OpenShift Container Platform 4.6 Security Update (RHSA-2022:0024)"},{"cve":"CVE-2021-40346","qid":"240017","title":"Red Hat OpenShift Container Platform 4.7 Security Update (RHSA-2022:0114)"},{"cve":"CVE-2021-40346","qid":"281907","title":"Fedora Security Update for haproxy (FEDORA-2021-3493f9f6ab)"},{"cve":"CVE-2021-40346","qid":"281915","title":"Fedora Security Update for haproxy (FEDORA-2021-cd5ee418f6)"},{"cve":"CVE-2021-40346","qid":"356275","title":"Amazon Linux Security Advisory for haproxy2 : ALASHAPROXY2-2023-005"},{"cve":"CVE-2021-40346","qid":"356499","title":"Amazon Linux Security Advisory for haproxy2 : ALAS2HAPROXY2-2023-005"},{"cve":"CVE-2021-40346","qid":"671171","title":"EulerOS Security Update for haproxy (EulerOS-SA-2021-2924)"},{"cve":"CVE-2021-40346","qid":"671174","title":"EulerOS Security Update for haproxy (EulerOS-SA-2021-2916)"},{"cve":"CVE-2021-40346","qid":"671312","title":"EulerOS Security Update for haproxy (EulerOS-SA-2022-1224)"},{"cve":"CVE-2021-40346","qid":"671330","title":"EulerOS Security Update for haproxy (EulerOS-SA-2022-1205)"},{"cve":"CVE-2021-40346","qid":"751109","title":"OpenSUSE Security Update for haproxy (openSUSE-SU-2021:2975-1)"},{"cve":"CVE-2021-40346","qid":"751188","title":"OpenSUSE Security Update for haproxy (openSUSE-SU-2021:1329-1)"},{"cve":"CVE-2021-40346","qid":"770124","title":"Red Hat OpenShift Container Platform 4.9 Security Update (RHSA-2021:4118)"},{"cve":"CVE-2021-40346","qid":"770130","title":"Red Hat OpenShift Container Platform 4.8 Security Update (RHSA-2021:5208)"},{"cve":"CVE-2021-40346","qid":"770131","title":"Red Hat OpenShift Container Platform 4.6 Security Update (RHSA-2022:0024)"},{"cve":"CVE-2021-40346","qid":"770132","title":"Red Hat OpenShift Container Platform 4.7 Security Update (RHSA-2022:0114)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-40346","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://www.mail-archive.com/haproxy@formilux.org","refsource":"MISC","name":"https://www.mail-archive.com/haproxy@formilux.org"},{"url":"https://git.haproxy.org/?p=haproxy.git","refsource":"MISC","name":"https://git.haproxy.org/?p=haproxy.git"},{"refsource":"DEBIAN","name":"DSA-4968","url":"https://www.debian.org/security/2021/dsa-4968"},{"refsource":"MISC","name":"https://www.mail-archive.com/haproxy@formilux.org/msg41114.html","url":"https://www.mail-archive.com/haproxy@formilux.org/msg41114.html"},{"refsource":"MISC","name":"https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/","url":"https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/"},{"refsource":"MISC","name":"https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95","url":"https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95"},{"refsource":"MLIST","name":"[cloudstack-dev] 20210910 CVE-2021-40346 (haproxy 2.x)","url":"https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120@%3Cdev.cloudstack.apache.org%3E"},{"refsource":"MLIST","name":"[cloudstack-dev] 20210910 Re: CVE-2021-40346 (haproxy 2.x)","url":"https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a@%3Cdev.cloudstack.apache.org%3E"},{"refsource":"FEDORA","name":"FEDORA-2021-3493f9f6ab","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/"},{"refsource":"FEDORA","name":"FEDORA-2021-cd5ee418f6","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/"}]}},"nvd":{"publishedDate":"2021-09-08 17:15:00","lastModifiedDate":"2023-11-07 03:38:00","problem_types":["CWE-190"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:haproxy:haproxy:*:*:*:*:*:*:*:*","versionStartIncluding":"2.4.0","versionEndExcluding":"2.4.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:haproxy:haproxy:*:*:*:*:*:*:*:*","versionStartIncluding":"2.3.0","versionEndExcluding":"2.3.14","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:haproxy:haproxy:*:*:*:*:*:*:*:*","versionStartIncluding":"2.2.0","versionEndExcluding":"2.2.17","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:haproxy:haproxy:*:*:*:*:*:*:*:*","versionStartIncluding":"2.0.0","versionEndExcluding":"2.0.25","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:haproxy:haproxy:2.5:dev1:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:haproxy:haproxy:2.5:dev2:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:haproxy:haproxy:2.5:dev3:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:haproxy:haproxy:2.5:dev4:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:haproxy:haproxy:2.5:dev5:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:haproxy:haproxy:2.5:dev6:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:haproxy:haproxy:2.5:dev0:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"40346","Ordinal":"216075","Title":"CVE-2021-40346","CVE":"CVE-2021-40346","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"40346","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"40346","Ordinal":"2","NoteData":"2021-09-08","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"40346","Ordinal":"3","NoteData":"2021-09-17","Type":"Other","Title":"Modified"}]}}}