CVSS 3.1
7.5 highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NHigh (7.5). EPSS 59% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NExplain CVE-2021-40346 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-40346?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-40346?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-40346 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| haproxy:haproxy | from 2.0.0 before 2.0.25 |
| haproxy:haproxy | from 2.2.0 before 2.2.17 |
| haproxy:haproxy | from 2.3.0 before 2.3.14 |
| haproxy:haproxy | from 2.4.0 before 2.4.4 |
| haproxy:haproxy | 2.5:dev0 |
| haproxy:haproxy | 2.5:dev1 |
| haproxy:haproxy | 2.5:dev2 |
| haproxy:haproxy | 2.5:dev3 |
| haproxy:haproxy | 2.5:dev4 |
| haproxy:haproxy | 2.5:dev5 |
| haproxy:haproxy | 2.5:dev6 |
| debian:debian_linux | 11.0 |
| fedoraproject:fedora | 33 |
| fedoraproject:fedora | 34 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | haproxy | 2.2.9-2+deb11u2 | DSA-4968-1 |
| Debian | 12, 13, 14 | haproxy | 2.2.16-3 | DEBIAN-CVE-2021-40346 |
| Ubuntu | 20.04:LTS | haproxy | 2.0.13-2ubuntu0.3 | UBUNTU-CVE-2021-40346 USN-5063-1 |
| Ubuntu | 22.04:LTS | haproxy | 2.2.9-2ubuntu2 | UBUNTU-CVE-2021-40346 |
| Red Hat | openshift:4.6::el7 | haproxy, haproxy20, haproxy-debuginfo | 0:2.0.16-2.el7 | RHSA-2022:0024 |
| Red Hat | openshift:4.6::el8 | haproxy, haproxy20, haproxy-debugsource and 1 more | 0:2.0.16-4.el8 | RHSA-2022:0024 |
| Red Hat | openshift:4.7::el7 | haproxy, haproxy20, haproxy-debuginfo | 0:2.0.19-2.el7 | RHSA-2022:0114 |
| Red Hat | openshift:4.7::el8 | haproxy, haproxy20, haproxy-debugsource and 1 more | 0:2.0.19-2.el8 | RHSA-2022:0114 |
| Red Hat | openshift:4.8::el7 | haproxy, haproxy-debuginfo | 0:2.2.13-2.el7 | RHSA-2021:5208 |
| Red Hat | openshift:4.8::el8 | haproxy, haproxy-debugsource | 0:2.2.13-2.el8 | RHSA-2021:5208 |
| Red Hat | openshift:4.9::el8 | haproxy, haproxy-debugsource | 0:2.2.15-2.el8 | RHSA-2021:4118 |
| SUSE | Linux Enterprise High Availability Extension 15 | haproxy | 2.0.14-3.31.1 | SUSE-SU-2021:3258-1 |
| SUSE | Linux Enterprise High Availability Extension 15 SP1 | haproxy | 2.0.14-8.23.1 | SUSE-SU-2021:3257-1 |
| SUSE | Linux Enterprise High Availability Extension 15 SP2, Linux Enterprise High Availability Extension 15 SP3 | haproxy | 2.0.14-11.11.1 | SUSE-SU-2021:2975-1 |
| openSUSE | Leap 15.2 | haproxy | 2.0.14-lp152.2.6.1 | openSUSE-SU-2021:1329-1 |
| openSUSE | Leap 15.3 | haproxy | 2.0.14-11.11.1 | openSUSE-SU-2021:2975-1 |
| openSUSE | Tumbleweed | haproxy | 2.4.4+git0.acb1d0bea-1.2 | openSUSE-SU-2024:10839-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.
Red Hat rates this Moderate.
To mitigate this problem the following can be added to proxy config:
http-request deny if { req.hdr_cnt(content-length) gt 1 }
http-response deny if { res.hdr_cnt(content-length) gt 1 }
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat OpenShift Container Platform 4.6 | haproxy-0:2.0.16-2.el7 | Fixed 2022-01-12 | RHSA-2022:0024 |
| Red Hat OpenShift Container Platform 4.7 | haproxy-0:2.0.19-2.el7 | Fixed 2022-01-19 | RHSA-2022:0114 |
| Red Hat OpenShift Container Platform 4.8 | haproxy-0:2.2.13-2.el7 | Fixed 2022-01-05 | RHSA-2021:5208 |
| Red Hat OpenShift Container Platform 4.9 | haproxy-0:2.2.15-2.el8 | Fixed 2021-11-10 | RHSA-2021:4118 |
| Red Hat Enterprise Linux 6 | haproxy | Not affected | |
| Red Hat Enterprise Linux 7 | haproxy | Not affected | |
| Red Hat Enterprise Linux 8 | haproxy | Not affected | |
| Red Hat Enterprise Linux 9 | haproxy | Not affected | |
| Red Hat OpenShift Container Platform 3.11 | haproxy | Out of support scope | |
| Red Hat Software Collections | rh-haproxy18-haproxy | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-40346.
Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.