CVE-2021-40346

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:haproxy:haproxy:*:*:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:*:*:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:*:*:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:*:*:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:2.5:dev0:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:2.5:dev1:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:2.5:dev2:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:2.5:dev3:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:2.5:dev4:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:2.5:dev5:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:2.5:dev6:*:*:*:*:*:*

Configuration 2 (hide)

cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

Configuration 3 (hide)

OR cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*

History

07 Nov 2023, 03:38

Type Values Removed Values Added
References
  • {'url': 'https://www.mail-archive.com/haproxy@formilux.org', 'name': 'https://www.mail-archive.com/haproxy@formilux.org', 'tags': ['Third Party Advisory'], 'refsource': 'MISC'}
  • {'url': 'https://www.mail-archive.com/haproxy@formilux.org/msg41114.html', 'name': 'https://www.mail-archive.com/haproxy@formilux.org/msg41114.html', 'tags': ['Mitigation', 'Third Party Advisory'], 'refsource': 'MISC'}
  • {'url': 'https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a@%3Cdev.cloudstack.apache.org%3E', 'name': '[cloudstack-dev] 20210910 Re: CVE-2021-40346 (haproxy 2.x)', 'tags': ['Mailing List', 'Third Party Advisory'], 'refsource': 'MLIST'}
  • {'url': 'https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/', 'name': 'FEDORA-2021-cd5ee418f6', 'tags': ['Mailing List', 'Third Party Advisory'], 'refsource': 'FEDORA'}
  • {'url': 'https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/', 'name': 'FEDORA-2021-3493f9f6ab', 'tags': ['Mailing List', 'Third Party Advisory'], 'refsource': 'FEDORA'}
  • {'url': 'https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120@%3Cdev.cloudstack.apache.org%3E', 'name': '[cloudstack-dev] 20210910 CVE-2021-40346 (haproxy 2.x)', 'tags': ['Mailing List', 'Third Party Advisory'], 'refsource': 'MLIST'}
  • () https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apache.org%3E -
  • () https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/ -
  • () https://www.mail-archive.com/haproxy%40formilux.org -
  • () https://www.mail-archive.com/haproxy%40formilux.org/msg41114.html -
  • () https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apache.org%3E -
  • () https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/ -

02 Dec 2021, 20:43

Type Values Removed Values Added
References (FEDORA) https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/ - (FEDORA) https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/ - Mailing List, Third Party Advisory
References (FEDORA) https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/ - (FEDORA) https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/ - Mailing List, Third Party Advisory
CPE cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*

17 Sep 2021, 22:15

Type Values Removed Values Added
References
  • (FEDORA) https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/ -

16 Sep 2021, 21:15

Type Values Removed Values Added
References
  • (FEDORA) https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/ -

15 Sep 2021, 00:19

Type Values Removed Values Added
CWE CWE-190
References (MISC) https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95 - (MISC) https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95 - Patch, Third Party Advisory
References (MISC) https://www.mail-archive.com/haproxy@formilux.org/msg41114.html - (MISC) https://www.mail-archive.com/haproxy@formilux.org/msg41114.html - Mitigation, Third Party Advisory
References (MISC) https://git.haproxy.org/?p=haproxy.git - (MISC) https://git.haproxy.org/?p=haproxy.git - Patch, Vendor Advisory
References (MISC) https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/ - (MISC) https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/ - Exploit, Mitigation, Third Party Advisory
References (DEBIAN) https://www.debian.org/security/2021/dsa-4968 - (DEBIAN) https://www.debian.org/security/2021/dsa-4968 - Third Party Advisory
References (MISC) https://www.mail-archive.com/haproxy@formilux.org - (MISC) https://www.mail-archive.com/haproxy@formilux.org - Third Party Advisory
References (MLIST) https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120@%3Cdev.cloudstack.apache.org%3E - (MLIST) https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120@%3Cdev.cloudstack.apache.org%3E - Mailing List, Third Party Advisory
References (MLIST) https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a@%3Cdev.cloudstack.apache.org%3E - (MLIST) https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a@%3Cdev.cloudstack.apache.org%3E - Mailing List, Third Party Advisory
CPE cpe:2.3:a:haproxy:haproxy:2.5:dev0:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:2.5:dev6:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:2.5:dev5:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:2.5:dev2:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:2.5:dev1:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:2.5:dev4:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:*:*:*:*:*:*:*:*
cpe:2.3:a:haproxy:haproxy:2.5:dev3:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : 5.0
v3 : 7.5

10 Sep 2021, 15:15

Type Values Removed Values Added
References
  • (MLIST) https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120@%3Cdev.cloudstack.apache.org%3E -
  • (MLIST) https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a@%3Cdev.cloudstack.apache.org%3E -

09 Sep 2021, 14:15

Type Values Removed Values Added
Summary An integer overflow exists in HAProxy 2.0 through 2.5 in the htx_add_header() 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. 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.

08 Sep 2021, 18:15

Type Values Removed Values Added
References
  • (MISC) https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/ -
  • (MISC) https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95 -

08 Sep 2021, 17:24

Type Values Removed Values Added
New CVE

Information

Published : 2021-09-08 17:15

Updated : 2023-12-10 14:09


NVD link : CVE-2021-40346

Mitre link : CVE-2021-40346

CVE.ORG link : CVE-2021-40346


JSON object : View

Products Affected

debian

  • debian_linux

haproxy

  • haproxy

fedoraproject

  • fedora
CWE
CWE-190

Integer Overflow or Wraparound