← Vulnerability feed

Vulnerability record · CVE-2021-40346 · published 8 September 2021

CVE-2021-40346: HAProxy integer overflow in htx_add_header enables HTTP request smuggling

Haproxy · Haproxy

HAProxy 2.0 through 2.5 contains an integer overflow in htx_add_header that lets an attacker craft requests which are parsed inconsistently between HAProxy and backend servers. This request smuggling condition allows bypass of configured http-request HAProxy ACLs and possibly other ACLs, undermining access control enforced at the proxy.

7.5 CVSS 3.1 High EPSS 58% · top 0.9% CWE-190 · Integer overflow
7.5CVSS 3.1 base score, v2 5.0
58%EPSS exploitation probability, 30 days
NoNot in CISA KEV
3Affected product versions listed by NVD
20References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

high priorityNetwork-reachable, no authentication or interaction required, high EPSS and public exploit detail, but no KEV listing and impact is limited to integrity per the CVSS vector.

What it is

HAProxy 2.0 through 2.5 contains an integer overflow in htx_add_header that lets an attacker craft requests which are parsed inconsistently between HAProxy and backend servers. This request smuggling condition allows bypass of configured http-request HAProxy ACLs and possibly other ACLs, undermining access control enforced at the proxy.

Impact

An attacker can smuggle requests past HAProxy ACL rules, reaching backend services or endpoints that the proxy was configured to block. The CVSS vector shows high integrity impact with no confidentiality or availability impact.

Attack surface

Reachable over the network via HTTP requests to an HAProxy instance; no authentication or user interaction is required per the CVSS vector (AV:N/AC:L/PR:N/UI:N). Exploitation depends on the proxy forwarding to a backend that parses the smuggled request differently.

Exploitation

Not listed in CISA KEV, but EPSS is high at roughly 0.579 (99th percentile), and a public JFrog blog reference is tagged Exploit, indicating public exploitation detail exists. No ransomware group usage is documented in the record.

What to do

  • Upgrade HAProxy to a fixed release; apply the vendor patch referenced in the HAProxy git commit and vendor advisory.
  • Update distribution packages on Debian and Fedora using the referenced DSA-4968 and Fedora package announcements.
  • Until patched, apply the mitigations described in the JFrog advisory, such as rejecting or normalizing requests with ambiguous Content-Length/Transfer-Encoding handling.
  • Review and tighten backend parsing behavior so HAProxy and origin servers agree on request framing.
  • Audit http-request ACLs to identify rules that would be bypassed if smuggling succeeds.

Detection

  • Inspect proxy and backend logs for requests where Content-Length and Transfer-Encoding disagree or where duplicate/oversized headers appear.
  • Hunt for HTTP requests with unusually large or malformed header lengths that could trigger the htx_add_header integer overflow.
  • Correlate HAProxy access logs with backend logs to find requests seen by one tier but not the other, a smuggling indicator.
  • Monitor for ACL-bypass patterns where requests reach backends that proxy rules should have blocked.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://git.haproxy.org/?p=haproxy.git PatchVendor Advisory
https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95 PatchThird Party Advisory
https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/ ExploitMitigationThird Party Advisory
https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apach
https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apach
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTM
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJF
https://www.debian.org/security/2021/dsa-4968 Third Party Advisory
https://www.mail-archive.com/haproxy%40formilux.org
https://www.mail-archive.com/haproxy%40formilux.org/msg41114.html
https://git.haproxy.org/?p=haproxy.git PatchVendor Advisory
https://github.com/haproxy/haproxy/commit/3b69886f7dcc3cfb3d166309018e6cfec9ce2c95 PatchThird Party Advisory
https://jfrog.com/blog/critical-vulnerability-in-haproxy-cve-2021-40346-integer-overflow-enables-http-smuggling/ ExploitMitigationThird Party Advisory
https://lists.apache.org/thread.html/r284567dd7523f5823e2ce995f787ccd37b1cc4108779c50a97c79120%40%3Cdev.cloudstack.apach
https://lists.apache.org/thread.html/r8a58fd7a29808e5d27ee56877745e58dc4bb041b9af94601554e2a5a%40%3Cdev.cloudstack.apach
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A7V2IYO22LWVBGUNZWVKNTM
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXTSBY2TEAXWZVFQM3CXHJF
https://www.debian.org/security/2021/dsa-4968 Third Party Advisory
https://www.mail-archive.com/haproxy%40formilux.org
https://www.mail-archive.com/haproxy%40formilux.org/msg41114.html

Track CVE-2021-40346 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2021-40346), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.