CVE-2023-28321
JSON

5.9medium

IDN wildcard match

Severity
5.9medium CVSS:3.1 by CISA-ADP
Exploit likelihood
1.81% (higher than 79% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
hackerone
Also known as
CURL-CVE-2023-28321

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`.

Affected

Product or packageVersionsReported by
https://github.com/curl/curlFixed in 8.1.0CVE List
https://github.com/curl/curl.gitfrom 7.12.0 before 8.1.0, from 9631fa740708b1890197fad01e25b34b7e8eb80e before 199f2d440d8659b42670c1b796220792b01a97bfcurl
haxx curlbefore 8.1.0NVD
debian debian_linux10.0NVD
fedoraproject fedora37, 38NVD
netapp clustered_data_ontapNot specifiedNVD
netapp ontap_antivirus_connectorNot specifiedNVD
netapp h300s_firmwareNot specifiedNVD
netapp h500s_firmwareNot specifiedNVD
netapp h700s_firmwareNot specifiedNVD
netapp h410s_firmwareNot specifiedNVD
apple macosfrom 11.0 before 11.7.9, from 12.0 before 12.6.8, from 13.0 before 13.5NVD

All scores

CISA-ADP5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
curllow rating
NVD5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-295

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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`.

curl

curl 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.

NVD (es)

Una vulnerabilidad de validación de certificado incorrecta existe en curl anterior a v8.1.0 en la forma en que soporta la coincidencia de patrones comodín cuando se lista como 'Subject Alternative Name' en certificados de servidor TLS. curl puede ser compilado para usar su propia función de coincidencia de nombres para TLS en lugar de una proporcionada por una biblioteca TLS. Esta función privada de coincidencia de comodines coincidiría incorrectamente con hosts IDN (International Domain Name) y podría como resultado aceptar patrones que de otro modo deberían no coincidir. Los nombres de host IDN se convierten a puny code antes de ser usados para comprobaciones de certificado. Los nombres en puny code siempre comienzan con 'xn--' y no deberían permitirse para la coincidencia de patrones, pero la comprobación de comodín en curl aún podría buscar 'x*', lo que coincidiría aunque el nombre IDN muy probablemente no contuviera nada que se pareciera a una 'x'.

References

https://hackerone.com/reports/1950627exploit, patch, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F4I75RDGX5ULSSCBE5BF3P5I5SFO7ULQ/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z2LIWHWKOVH24COGGBCVOWDXXIUPKOMK/vendor-advisory
https://security.netapp.com/advisory/ntap-20230609-0009/third-party-advisory
https://support.apple.com/kb/HT213843third-party-advisory
https://support.apple.com/kb/HT213844third-party-advisory
https://support.apple.com/kb/HT213845third-party-advisory
http://seclists.org/fulldisclosure/2023/Jul/52mailing-list, third-party-advisory
http://seclists.org/fulldisclosure/2023/Jul/48mailing-list, third-party-advisory
http://seclists.org/fulldisclosure/2023/Jul/47mailing-list, third-party-advisory
https://security.gentoo.org/glsa/202310-12third-party-advisory, vendor-advisory
https://lists.debian.org/debian-lts-announce/2023/10/msg00016.htmlmailing-list, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2023-28321 changed 2025-01-15CVE Terms of Use
curlCURL-CVE-2023-28321 changed 2026-10-25MIT
NVDCVE-2023-28321 changed 2026-10-23Public domain