All reports
Medium

haproxy: request smuggling attack or response splitting via duplicate content-length header

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-40346

Probability of exploitation in the next 30 days: 58.83%

FIRST EPSS · 2026-11-23

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.

Proxy server haproxy has a flaw that can could allow an HTTP request smuggling attack with the goal of bypassing access-control list rules defined by haproxy. The attack was made possible by utilizing an integer overflow vulnerability that allowed reaching an unexpected state in haproxy while parsing an HTTP request. The highest threat from this vulnerability is integrity.