CVE-2021-39242
publishedhaproxy: it can lead to a situation with an attacker-controlled HTTP Host header because a mismatch between Host and authority is mishandled
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2HAPROXY2-2023-005 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | haproxy | Advisory build | 2.2.9-2+deb11u1 | DSA-4960-1 |
| Amazon Linux | AL2 | haproxy2aarch64 | Listed in advisory | Not stated | ALAS2HAPROXY2-2023-005 |
| Amazon Linux | AL2 | haproxy2src | Listed in advisory | Not stated | ALAS2HAPROXY2-2023-005 |
| Amazon Linux | AL2 | haproxy2x86_64 | Listed in advisory | Not stated | ALAS2HAPROXY2-2023-005 |
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 can lead to a situation with an attacker-controlled HTTP Host header, because a mismatch between Host and authority is mishandled.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
5- https://git.haproxy.org/?p=haproxy.git%3Ba=commit%3Bh=b5d2b9e154d78e4075db163826c5e0f6d31b2ab1
- FEDORA-2021-3ab4512c98 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4ALECUZDIMT5FYGP6V6PVSI4BKVZTZWN/
- FEDORA-2021-e6557245e8 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RPNY4WZIQUAUOCLIMUPC37AQWNXTWIQM/
- DSA-4960 https://www.debian.org/security/2021/dsa-4960
- https://www.mail-archive.com/haproxy%40formilux.org/msg41041.html
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5aca20fe7773049a29159c9301881ae5a0f0c116acbf6b981893a2ac94ec3bb9
- Ingested
- 23 Sep 2026, 07:55:36 UTC
- Source record
- Official CVE record