# CVE-2021-39240: 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.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.21%, higher than 83% of CVEs (2026-12-01)
- Published: 2021-08-17T18:33:25.000Z
- Modified: 2026-09-08T08:47:52.254Z
- Also known as: BIT-HAPROXY-2021-39240
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- haproxy haproxy: from 2.2.0 before 2.2.16; from 2.3.0 before 2.3.13; from 2.4.0 before 2.4.3
- debian debian_linux: 11.0
- fedoraproject fedora: 33; 34
- haproxy (Bitnami): from 2.2.0 before 2.2.16; from 2.3.0 before 2.3.13; from 2.4.0 before 2.4.3

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.mail-archive.com/haproxy%40formilux.org/msg41041.html> (web)
- <https://git.haproxy.org/?p=haproxy.git%3Ba=commit%3Bh=a495e0d94876c9d39763db319f609351907a31e8> (web)
- <https://git.haproxy.org/?p=haproxy.git%3Ba=commit%3Bh=4b8852c70d8c4b7e225e24eb58258a15eb54c26e> (web)
- <https://www.debian.org/security/2021/dsa-4960> (advisory, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RPNY4WZIQUAUOCLIMUPC37AQWNXTWIQM/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4ALECUZDIMT5FYGP6V6PVSI4BKVZTZWN/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-39240> (web)

## Sources

- CVE List: [CVE-2021-39240](https://www.cve.org/CVERecord?id=CVE-2021-39240), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-39240](https://nvd.nist.gov/vuln/detail/CVE-2021-39240), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-HAPROXY-2021-39240](https://osv.dev/vulnerability/BIT-HAPROXY-2021-39240), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-39240 · Whole record: https://cve.day/CVE-2021-39240.json · Rebuilt by cve.day 2026-11-25T22:58:03.283Z
