Skip to content

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

HighCVSS 7.5 EPSS 58.8%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

8 packages: 6 fixed.

PackageAffectedFixed inStatus
debian/haproxy(Debian 12) < 2.2.16-3 2.2.16-3 Fixed
debian/haproxy(Debian 13) < 2.2.16-3 2.2.16-3 Fixed
debian/haproxy(Debian 14) < 2.2.16-3 2.2.16-3 Fixed
HAProxy = 2.5-dev0; = 2.5-dev1; = 2.5-dev2; = 2.5-dev3 +7 more 2.0.25, 2.2.17, 2.3.14, 2.4.4 Fixed
ubuntu/haproxy(Ubuntu 20.04) < 2.0.13-2ubuntu0.3; = 2.0.5-1; = 2.0.8-1; = 2.0.9-1 +8 more 2.0.13-2ubuntu0.3 Fixed
ubuntu/haproxy(Ubuntu 22.04) < 2.2.9-2ubuntu2 2.2.9-2ubuntu2 Fixed
debian linux = 11.0 No fix listed Versions listed
fedoraproject fedora = 33; = 34 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/haproxy(Debian:12) < 2.2.16-3 2.2.16-3
debian/haproxy(Debian:13) < 2.2.16-3 2.2.16-3
debian/haproxy(Debian:14) < 2.2.16-3 2.2.16-3
ubuntu/haproxy(Ubuntu:22.04) < 2.2.9-2ubuntu2 2.2.9-2ubuntu2
HAProxy >= 2.0.0, < 2.0.25 2.0.25
HAProxy >= 2.2.0, < 2.2.17 2.2.17
HAProxy >= 2.3.0, < 2.3.14 2.3.14
HAProxy >= 2.4.0, < 2.4.4 2.4.4
HAProxy = 2.5-dev0 No fix listed
HAProxy = 2.5-dev1 No fix listed
HAProxy = 2.5-dev2 No fix listed
HAProxy = 2.5-dev3 No fix listed
HAProxy = 2.5-dev4 No fix listed
HAProxy = 2.5-dev5 No fix listed
HAProxy = 2.5-dev6 No fix listed
debian linux = 11.0 No fix listed
fedoraproject fedora = 33 No fix listed
fedoraproject fedora = 34 No fix listed
ubuntu/haproxy(Ubuntu:20.04) < 2.0.13-2ubuntu0.3 2.0.13-2ubuntu0.3
ubuntu/haproxy(Ubuntu:20.04) = 2.0.5-1 No fix listed
ubuntu/haproxy(Ubuntu:20.04) = 2.0.8-1 No fix listed
ubuntu/haproxy(Ubuntu:20.04) = 2.0.9-1 No fix listed
ubuntu/haproxy(Ubuntu:20.04) = 2.0.10-1 No fix listed
ubuntu/haproxy(Ubuntu:20.04) = 2.0.10-1ubuntu1 No fix listed
ubuntu/haproxy(Ubuntu:20.04) = 2.0.11-1ubuntu1 No fix listed
Show 5 more
ProductAffected versionsFixed in
ubuntu/haproxy(Ubuntu:20.04) = 2.0.12-1ubuntu2 No fix listed
ubuntu/haproxy(Ubuntu:20.04) = 2.0.13-1ubuntu2 No fix listed
ubuntu/haproxy(Ubuntu:20.04) = 2.0.13-2 No fix listed
ubuntu/haproxy(Ubuntu:20.04) = 2.0.13-2ubuntu0.1 No fix listed
ubuntu/haproxy(Ubuntu:20.04) = 2.0.13-2ubuntu0.2 No fix listed

References