{"answers":{"affected":"1 open source package ship an affected version, including haproxy. It affects 3 products.","exploited":"There is no known exploitation of CVE-2021-40346 in the wild and no public exploit code.","fix":"Upgrade haproxy to a fixed version for your release line: 2.0.25, 2.2.17, 2.3.14 or 2.4.4.","what":"CVE-2021-40346 is a high-severity vulnerability in Debian Debian Linux, published on 8 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-40346 and fix it if it is affected.\n\nWhat it is: CVE-2021-40346 is a high-severity vulnerability in Debian Debian Linux, published on 8 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-40346 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- haproxy (Bitnami): affected from 2.0.0; fixed in 2.0.25, 2.2.17, 2.3.14, 2.4.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-40346/ (Markdown: https://insights.sbomify.com/CVE-2021-40346/index.md)","id":"CVE-2021-40346","markdown":"https://insights.sbomify.com/CVE-2021-40346/index.md","name":"CVE-2021-40346","record":{"aliases":["BIT-haproxy-2021-40346","DEBIAN-CVE-2021-40346","DSA-4968-1","GHSA-jwmg-q4wv-f75h","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","openSUSE-SU-2021:1329-1","openSUSE-SU-2021:2975-1"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"HAProxy load balancer","requires_auth":"none","summary":"An integer overflow in HAProxy allows HTTP request smuggling, enabling attackers to bypass configured ACLs and security controls.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"haproxy","vendor":"haproxy"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"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.","ecosystems":["Bitnami","SUSE:Linux Enterprise High Availability Extension 15","SUSE:Linux Enterprise High Availability Extension 15 SP1","SUSE:Linux Enterprise High Availability Extension 15 SP2","SUSE:Linux Enterprise High Availability Extension 15 SP3","openSUSE:Leap 15.2","openSUSE:Leap 15.3"],"exploits":{"exploitdb":0,"first_seen":"2021-09-08","github_poc":7,"max_poc_stars":41,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-09-08T22:26:19Z","kind":"github_poc","ref":"https://github.com/knqyf263/CVE-2021-40346","stars":41,"title":"CVE-2021-40346 PoC (HAProxy HTTP Smuggling)"},{"date":"2021-09-10T08:18:20Z","kind":"github_poc","ref":"https://github.com/donky16/CVE-2021-40346-POC","stars":32,"title":"CVE-2021-40346 integer overflow enables http smuggling"},{"date":"2021-09-10T23:02:45Z","kind":"github_poc","ref":"https://github.com/alikarimi999/CVE-2021-40346","stars":5,"title":null},{"date":"2021-11-08T11:53:45Z","kind":"github_poc","ref":"https://github.com/Vulnmachines/HAProxy_CVE-2021-40346","stars":5,"title":"HAProxy CVE-2021-40346"},{"date":"2022-01-24T22:16:39Z","kind":"github_poc","ref":"https://github.com/alexOarga/CVE-2021-40346","stars":0,"title":"CVE-2021-40346 - HaProxy HTTP request smuggling through integer overflow"},{"date":"2025-12-21T16:47:27Z","kind":"github_poc","ref":"https://github.com/BoianEduard/CVE-2021-40346","stars":0,"title":"HTTP Request Smuggling"},{"date":"2026-07-08T15:22:50Z","kind":"github_poc","ref":"https://github.com/jmg0929/CVE-2021-40346","stars":0,"title":"WHS CVE-2021-40346 분석"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Integer overflow in n/a","id":"CVE-2021-40346","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora"],"type":"integer_overflow","year":"2021"},"n_packages":7,"n_references":10,"next":{"headline":"GNU Mailman Postorius Access Control Issues","id":"CVE-2021-40347"},"packages":[{"ecosystem":"Bitnami","fixed":["2.0.25","2.2.17","2.3.14","2.4.4"],"introduced":["2.0.0","2.2.0","2.3.0","2.4.0"],"last_affected":[],"package":"haproxy","purl":"pkg:bitnami/haproxy","source":"BIT-haproxy-2021-40346"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15","fixed":["2.0.14-3.31.1"],"introduced":["0"],"last_affected":[],"package":"haproxy","purl":"pkg:rpm/suse/haproxy\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015","source":"SUSE-SU-2021:3258-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP1","fixed":["2.0.14-8.23.1"],"introduced":["0"],"last_affected":[],"package":"haproxy","purl":"pkg:rpm/suse/haproxy\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP1","source":"SUSE-SU-2021:3257-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP2","fixed":["2.0.14-11.11.1"],"introduced":["0"],"last_affected":[],"package":"haproxy","purl":"pkg:rpm/suse/haproxy\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP2","source":"SUSE-SU-2021:2975-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP3","fixed":["2.0.14-11.11.1"],"introduced":["0"],"last_affected":[],"package":"haproxy","purl":"pkg:rpm/suse/haproxy\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP3","source":"SUSE-SU-2021:2975-1"},{"ecosystem":"openSUSE:Leap 15.2","fixed":["2.0.14-lp152.2.6.1"],"introduced":["0"],"last_affected":[],"package":"haproxy","purl":"pkg:rpm/opensuse/haproxy\u0026distro=openSUSE%20Leap%2015.2","source":"openSUSE-SU-2021:1329-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["2.0.14-11.11.1"],"introduced":["0"],"last_affected":[],"package":"haproxy","purl":"pkg:rpm/opensuse/haproxy\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2021:2975-1"}],"prev":{"headline":"Command injection in n/a","id":"CVE-2021-40345"},"products":["n/a"],"published":"2021-09-08","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"An integer overflow in HAProxy allows HTTP request smuggling, enabling attackers to bypass configured ACLs and security controls.","url":"https://insights.sbomify.com/CVE-2021-40346/"}