7.5
CWE
190
Advisory Published
Updated

CVE-2021-40346: Integer Overflow

First published: Wed Sep 08 2021(Updated: )

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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
debian/haproxy
1.8.19-1+deb10u3
1.8.19-1+deb10u4
2.2.9-2+deb11u5
2.6.12-1
2.6.15-1
HAProxy>=2.0.0<2.0.25
HAProxy>=2.2.0<2.2.17
HAProxy>=2.3.0<2.3.14
HAProxy>=2.4.0<2.4.4
HAProxy=2.5-dev0
HAProxy=2.5-dev1
HAProxy=2.5-dev2
HAProxy=2.5-dev3
HAProxy=2.5-dev4
HAProxy=2.5-dev5
HAProxy=2.5-dev6
Debian Debian Linux=11.0
Fedoraproject Fedora=33
Fedoraproject Fedora=34

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is the vulnerability ID for this HAProxy integer overflow vulnerability?

    The vulnerability ID for this HAProxy integer overflow vulnerability is CVE-2021-40346.

  • What is the severity of CVE-2021-40346?

    CVE-2021-40346 has a severity rating of 7.5 (high).

  • How does the integer overflow vulnerability in HAProxy 2.0 through 2.5 impact security?

    The integer overflow vulnerability in HAProxy 2.0 through 2.5 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.

  • Which versions of HAProxy are affected by CVE-2021-40346?

    HAProxy versions 2.0 through 2.5 are affected by CVE-2021-40346.

  • How can I mitigate the CVE-2021-40346 vulnerability in HAProxy?

    To mitigate the CVE-2021-40346 vulnerability in HAProxy, upgrade to the fixed versions, such as 1.8.19-1+deb10u3, 1.8.19-1+deb10u4, 2.2.9-2+deb11u5, 2.6.12-1, or 2.6.15-1 depending on your HAProxy version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203