Skip to content
OpenAdvisories
Unscored Public exploit CVE-2021-40346 EUVD-2021-27525GHSA-jwmg-q4wv-f75h

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, …

Published Sep 8, 2021 · Updated Aug 4, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 haproxy 2.2.16-3 —
Debian 13 haproxy 2.2.16-3 —
Debian 12 haproxy 2.2.16-3 —
Debian 11 haproxy 2.2.9-2+deb11u2 DSA-4968-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS haproxy 2.2.9-2ubuntu2 —
Ubuntu 20.04 LTS haproxy 2.0.13-2ubuntu0.3 USN-5063-1
ReleasePackageFixed inAdvisory
Red Hat OpenShift 4 haproxy +1 2.0.16-2.el7 RHSA-2022:0114, RHSA-2022:0024, RHSA-2021:5208
ReleasePackageFixed inAdvisory
SLES 15 SP3 haproxy 2.0.14-11.11.1 SUSE-SU-2021:2975-1
SLES 15 SP2 haproxy 2.0.14-11.11.1 SUSE-SU-2021:2975-1
SLES 15 SP1 haproxy 2.0.14-8.23.1 SUSE-SU-2021:3257-1
SLES 15 haproxy 2.0.14-3.31.1 SUSE-SU-2021:3258-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed haproxy 2.4.4+git0.acb1d0bea-1.2 openSUSE-SU-2024:10839-1
openSUSE Leap 15.3 haproxy 2.0.14-11.11.1 openSUSE-SU-2021:2975-1
openSUSE Leap 15.2 haproxy 2.0.14-lp152.2.6.1 openSUSE-SU-2021:1329-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 7 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 13

References