Vulnerability Name:

CVE-2021-40346 (CCN-208856)

Assigned:2021-09-07
Published:2021-09-07
Updated:2021-12-02
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.
CVSS v3 Severity:7.5 High (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N)
6.5 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): High
Availibility (A): None
8.6 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N)
7.5 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): None
Integrity (I): High
Availibility (A): None
CVSS v2 Severity:5.0 Medium (CVSS v2 Vector: AV:N/AC:L/Au:N/C:N/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
7.8 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:N/I:C/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Complete
Availibility (A): None
Vulnerability Type:CWE-190
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2021-40346

Source: CCN
Type: HAProxy Web site
HAProxy

Source: XF
Type: UNKNOWN
haproxy-cve202140346-request-smuggling(208856)

Source: MISC
Type: Patch, Vendor Advisory
https://git.haproxy.org/?p=haproxy.git

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95

Source: CCN
Type: JFrog Web site
Critical Vulnerability in HAProxy (CVE-2021-40346): Integer Overflow Enables HTTP Smuggling

Source: MISC
Type: Exploit, Mitigation, Third Party Advisory
https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/

Source: MLIST
Type: Mailing List, Third Party Advisory
[cloudstack-dev] 20210910 CVE-2021-40346 (haproxy 2.x)

Source: MLIST
Type: Mailing List, Third Party Advisory
[cloudstack-dev] 20210910 Re: CVE-2021-40346 (haproxy 2.x)

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2021-3493f9f6ab

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2021-cd5ee418f6

Source: CCN
Type: The Hacker News Web site
HAProxy Found Vulnerable to Critical HTTP Request Smuggling Attack

Source: DEBIAN
Type: Third Party Advisory
DSA-4968

Source: MISC
Type: Third Party Advisory
https://www.mail-archive.com/haproxy@formilux.org

Source: MISC
Type: Mitigation, Third Party Advisory
https://www.mail-archive.com/haproxy@formilux.org/msg41114.html

Vulnerable Configuration:Configuration 1:
  • cpe:/a:haproxy:haproxy:*:*:*:*:*:*:*:* (Version >= 2.0.0 and < 2.0.25)
  • OR cpe:/a:haproxy:haproxy:*:*:*:*:*:*:*:* (Version >= 2.2.0 and < 2.2.17)
  • OR cpe:/a:haproxy:haproxy:*:*:*:*:*:*:*:* (Version >= 2.3.0 and < 2.3.14)
  • OR cpe:/a:haproxy:haproxy:*:*:*:*:*:*:*:* (Version >= 2.4.0 and < 2.4.4)
  • OR cpe:/a:haproxy:haproxy:2.5:dev0:*:*:*:*:*:*
  • OR cpe:/a:haproxy:haproxy:2.5:dev1:*:*:*:*:*:*
  • OR cpe:/a:haproxy:haproxy:2.5:dev2:*:*:*:*:*:*
  • OR cpe:/a:haproxy:haproxy:2.5:dev3:*:*:*:*:*:*
  • OR cpe:/a:haproxy:haproxy:2.5:dev4:*:*:*:*:*:*
  • OR cpe:/a:haproxy:haproxy:2.5:dev5:*:*:*:*:*:*
  • OR cpe:/a:haproxy:haproxy:2.5:dev6:*:*:*:*:*:*

  • Configuration 2:
  • cpe:/o:debian:debian_linux:11.0:*:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/o:fedoraproject:fedora:33:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:34:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:112392
    P
    haproxy-2.4.4+git0.acb1d0bea-1.2 on GA media (Moderate)
    2022-01-17
    oval:org.opensuse.security:def:111074
    P
    Security update for haproxy (Moderate)
    2021-10-03
    oval:org.opensuse.security:def:105902
    P
    haproxy-2.4.4+git0.acb1d0bea-1.2 on GA media (Moderate)
    2021-10-01
    oval:org.opensuse.security:def:98832
    P
    Security update for haproxy (Moderate)
    2021-09-29
    oval:org.opensuse.security:def:8259
    P
    Security update for haproxy (Moderate)
    2021-09-29
    oval:org.opensuse.security:def:91882
    P
    Security update for haproxy (Moderate)
    2021-09-29
    oval:org.opensuse.security:def:8326
    P
    Security update for haproxy (Moderate)
    2021-09-29
    oval:org.opensuse.security:def:1735
    P
    Security update for haproxy (Moderate)
    2021-09-07
    oval:org.opensuse.security:def:8369
    P
    Security update for haproxy (Moderate)
    2021-09-07
    oval:org.opensuse.security:def:109535
    P
    Security update for haproxy (Moderate)
    2021-09-07
    oval:org.opensuse.security:def:118631
    P
    Security update for haproxy (Moderate)
    2021-09-07
    oval:org.opensuse.security:def:8391
    P
    Security update for haproxy (Moderate)
    2021-09-07
    oval:org.opensuse.security:def:102869
    P
    Security update for haproxy (Moderate)
    2021-09-07
    oval:org.opensuse.security:def:111709
    P
    Security update for haproxy (Moderate)
    2021-09-07
    oval:org.opensuse.security:def:102293
    P
    Security update for haproxy (Moderate)
    2021-09-07
    oval:org.opensuse.security:def:96179
    P
    Security update for haproxy (Moderate)
    2021-09-07
    BACK
    haproxy haproxy *
    haproxy haproxy *
    haproxy haproxy *
    haproxy haproxy *
    haproxy haproxy 2.5 dev0
    haproxy haproxy 2.5 dev1
    haproxy haproxy 2.5 dev2
    haproxy haproxy 2.5 dev3
    haproxy haproxy 2.5 dev4
    haproxy haproxy 2.5 dev5
    haproxy haproxy 2.5 dev6
    debian debian linux 11.0
    fedoraproject fedora 33
    fedoraproject fedora 34