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…

CVE-2021-40346 affects 11 listed versions of HAProxy in the Dawnsentry catalogue.

7.5CVSS high
None knownexploitation
59%EPSS (next 30 days)
8 September 2021published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

HAProxy

11 of 250 listed versions are affected. Fixed in 2.3.14, 2.0.25. The newest release, 3.4.9, is not affected.

2.3.13 2.3.12 2.3.11 2.3.10 2.3.9 2.3.8 2.3.7 2.0.24 2.0.23 2.0.22 2.0.21

What it is

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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N (NVD)

Published by MITRE on 8 September 2021. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2021-40346 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.