CVE-2021-39240 json
An issue was discovered in HAProxy 2.2 before 2.2.16, 2.3 before 2.3.13, and 2.4 before 2.4.3.
published 2021-08-17 5 y ago modified 2026-09-08 2 mo ago also BIT-haproxy-2021-39240 , EUVD-2021-25602
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
An issue was discovered in HAProxy 2.2 before 2.2.16, 2.3 before 2.3.13, and 2.4 before 2.4.3. It does not ensure that the scheme and path portions of a URI have the expected characters. For example, the authority field (as observed on a target HTTP/2 server) might differ from what the routing rules were intended to achieve.
Patch / fix
- bitnami haproxy 2.2.16, 2.3.13, 2.4.3
- haproxy haproxy 2.2.16, 2.3.13, 2.4.3
- haproxy Debian 14, Debian 13, Debian 12 2.2.16-1
debian advisories DEBIAN-CVE-2021-39240
- haproxy openshift 4.8 2.2.13-2.el7
- haproxy openshift 4.8 2.2.13-2.el8
- haproxy openshift 4.9 2.2.15-2.el8
red hat advisories RHSA-2021:5208RHSA-2021:4118
- haproxy openSUSE Tumbleweed 2.4.4+git0.acb1d0bea-1.2
opensuse advisories openSUSE-SU-2024:10839-1
- haproxy Arch Linux 2.4.3-1
arch linux advisories AVG-2304
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-39240 updated cvss 7.5
haproxy: does not ensure that the scheme and path portions of a URI have the expected characters
-
Red Hat OpenShift Container Platform 3.11 haproxy, haproxy18affected: no fix planned “Out of support scope”
-
Red Hat OpenShift Container Platform 4.8 haproxy 2.2.13-2.el7, haproxy 2.2.13-2.el8fixed: vendor fix RHSA-2021:5208
-
Red Hat OpenShift Container Platform 4.9 haproxy 2.2.15-2.el8fixed: vendor fix RHSA-2021:4118
-
Red Hat Enterprise Linux 6 haproxy Red Hat Enterprise Linux 7 haproxy Red Hat Enterprise Linux 8 haproxy Red Hat Enterprise Linux 9 haproxy Red Hat OpenShift Container Platform 4.8 ostree 2020.7-6.el8_4, ostree-libs 2020.7-6.el8_4, ostree-grub2 2020.7-6.el8_4, openshift 4.8.0-202112150047.p0.gb4b4813.assembly.stream.el7, openshift 4.8.0-202112150047.p0.gb4b4813.assembly.stream.el8, openshift-kuryr 4.8.0-202112131630.p0.g839864c.assembly.stream.el8, +6 more Red Hat OpenShift Container Platform 4.9 cri-o 1.22.0-78.rhaos4.9.gitd745cab.el8, cri-o 1.22.0-91.rhaos4.9.gitd745cab.el7, openstack-ironic 18.1.1-0.20211019162143.e0437cd.el8, openstack-ironic-api 18.1.1-0.20211019162143.e0437cd.el8, python3-ironic-tests 18.1.1-0.20211019162143.e0437cd.el8, openstack-ironic-common 18.1.1-0.20211019162143.e0437cd.el8, +10 morenot affected: vulnerable code not present
+1 more productsfewer
Red Hat Software Collections rh-haproxy18-haproxy, rh-haproxy18-haproxy-syspaths
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.21% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | haproxy | >=2.2.0, <2.2.16 >=2.3.0, <2.3.13 >=2.4.0, <2.4.3 |
2.2.16 2.3.13 2.4.3 |
References
-
debian.org
/security/2021/dsa-4960
vendor-advisory, third-party-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/RPNY4WZIQUAUOCLIMUPC37AQWNXTWIQM/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/4ALECUZDIMT5FYGP6V6PVSI4BKVZTZWN/
vendor-advisory, web
-
mail-archive.com
/haproxy%40formilux.org/msg41041.html
web
-
git.haproxy.org
/?p=haproxy.git%3Ba=commit%3Bh=a495e0d94876c9d39763db319f609351907a31e8
web
-
git.haproxy.org
/?p=haproxy.git%3Ba=commit%3Bh=4b8852c70d8c4b7e225e24eb58258a15eb54c26e
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-39240
web
Sources
- CVE List CVE-2021-39240
- NVD CVE-2021-39240
- OSV BIT-haproxy-2021-39240
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.