CVE-2021-40346
JSON

7.5high

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…

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
58.8% (higher than 99% of CVEs)
Published
Last changed
Assigned by
mitre
Also known as
BIT-HAPROXY-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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
haproxy haproxyfrom 2.0.0 before 2.0.25, from 2.2.0 before 2.2.17, from 2.3.0 before 2.3.14, from 2.4.0 before 2.4.4, 2.5NVD
debian debian_linux11.0NVD
fedoraproject fedora33, 34NVD
haproxy (Bitnami)from 2.0.0 before 2.0.25, from 2.2.0 before 2.2.17, from 2.3.0 before 2.3.14, from 2.4.0 before 2.4.4Bitnami Vulnerability Database

All scores

NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:P/A:N
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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.

NVD (es)

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

References

https://www.mail-archive.com/haproxy%40formilux.orgweb
https://git.haproxy.org/?p=haproxy.gitadvisory, patch, vendor-advisory
https://www.debian.org/security/2021/dsa-4968advisory, third-party-advisory, vendor-advisory
https://www.mail-archive.com/haproxy%40formilux.org/msg41114.htmlweb
https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/advisory, exploit, mitigation, third-party-advisory
https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95advisory, patch, third-party-advisory
https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apache.org%3Emailing-list, web
https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apache.org%3Emailing-list, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTMDV4KINLFO/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJFRONX7PEMN/vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-40346web

Sources

SourceRecordLicence
CVE ListCVE-2021-40346 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-40346 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-HAPROXY-2021-40346 changed 2026-09-08Apache-2.0