Skip to content
Emerging threatsHigh

CVE-2021-40346Haproxy Integer Overflow

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.

Published Sep 8, 2021 · Updated Nov 2, 2026 · Also known as BIT-haproxy-2021-40346, DEBIAN-CVE-2021-40346, DSA-4968-1, OESA-2021-1367, SUSE-SU-2021:2975-1, SUSE-SU-2021:3257-1, SUSE-SU-2021:3258-1, UBUNTU-CVE-2021-40346, USN-5063-1

Key Facts

Patch immediately
  • CVE-2021-40346 is a high-severity vulnerability (CVSS 7.5 v3.1) affecting Haproxy, Debian Linux, Fedora (Fedoraproject) and 1 more product.
  • It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
  • EPSS estimates a 59% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Haproxy 0:2.2.13-2.el7, Haproxy 0:2.2.15-2.el8, Haproxy 2.0.10-3.ph1.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

Scores

CVSS v3.1

7.5

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

EPSS (30-day exploit likelihood)

59%

Higher than 99.1% of all scored CVEs

Exploit maturity

None known

ATLAS score

31/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

None known

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

1

Reports of active use

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.

Affected Products

48 affected entries in total
ProductAffected versionsFixed in
HaproxyHaproxy2.5-dev0, 2.5-dev1, 2.5-dev2, 2.5-dev3, 2.5-dev4, 2.5-dev5, 2.5-dev6, >= 2.0.02.0.25
Debian LinuxDebian11.0n/a
FedoraFedoraproject33, 34n/a
haproxy-docphotonSee advisory2.3.4-4.ph4

Patched Releases

Haproxy

0:2.2.13-2.el7, 0:2.2.15-2.el8, 2.0.10-3.ph1, 2.0.10-3.ph2, 2.0.13-2ubuntu0.3, 2.0.14-11.11.1, 2.0.14-3.31.1, 2.0.14-8.23.1, 2.0.14-lp152.2.6.1, 2.0.25, 2.2.16-2.oe1, 2.2.16-3, 2.2.17, 2.2.6-3.ph3, 2.2.9-2+deb11u2, 2.2.9-2ubuntu2, 2.3.14, 2.3.4-4.ph4, 2.4.4, 2.4.4-1, 2.4.4+git0.acb1d0bea-1.2

haproxy-doc

2.3.4-4.ph4

Timeline

  1. Publicly disclosed

    Sep 8, 2021

  2. Last updated

    Nov 2, 2026

Weakness Type

  • CWE-190 Integer Overflow or Wraparound
  • CWE-444 Inconsistent Interpretation of HTTP Requests

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2021-40346 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 5, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.