CVE-2023-28321

MEDIUM

curl < 8.1.0 - Improper Certificate Validation via Wildcard Pattern Matching

Title source: llm
STIX 2.1

Description

An improper certificate validation vulnerability exists in curl <v8.1.0 in the way it supports matching of wildcard patterns when listed as "Subject Alternative Name" in TLS server certificates. curl can be built to use its own name matching function for TLS rather than one provided by a TLS library. This private wildcard matching function would match IDN (International Domain Name) hosts incorrectly and could as a result accept patterns that otherwise should mismatch. IDN hostnames are converted to puny code before used for certificate checks. Puny coded names always start with `xn--` and should not be allowed to pattern match, but the wildcard check in curl could still check for `x*`, which would match even though the IDN name most likely contained nothing even resembling an `x`.

References (12)

Core 12
Core References
Exploit, Patch, Third Party Advisory
https://hackerone.com/reports/1950627
Mailing List, Third Party Advisory mailing-list
http://seclists.org/fulldisclosure/2023/Jul/52
Mailing List, Third Party Advisory mailing-list
http://seclists.org/fulldisclosure/2023/Jul/48
Mailing List, Third Party Advisory mailing-list
http://seclists.org/fulldisclosure/2023/Jul/47
Third Party Advisory vendor-advisory
https://security.gentoo.org/glsa/202310-12
Mailing List, Third Party Advisory mailing-list
https://lists.debian.org/debian-lts-announce/2023/10/msg00016.html

Scores

CVSS v3 5.9
EPSS 0.0030
EPSS Percentile 53.1%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-295
Status published
Products (11)
apple/macos 11.0 - 11.7.9
debian/debian_linux 10.0
fedoraproject/fedora 37
fedoraproject/fedora 38
haxx/curl < 8.1.0
netapp/clustered_data_ontap
netapp/h300s_firmware
netapp/h410s_firmware
netapp/h500s_firmware
netapp/h700s_firmware
... and 1 more
Published May 26, 2023
Tracked Since Feb 18, 2026