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 package | Versions | Reported by |
|---|---|---|
| https://github.com/curl/curl | Fixed in 8.1.0 | CVE List |
| https://github.com/curl/curl.git | from 7.12.0 before 8.1.0, from 9631fa740708b1890197fad01e25b34b7e8eb80e before 199f2d440d8659b42670c1b796220792b01a97bf | curl |
| haxx curl | before 8.1.0 | NVD |
| debian debian_linux | 10.0 | NVD |
| fedoraproject fedora | 37, 38 | NVD |
| netapp clustered_data_ontap | Not specified | NVD |
| netapp ontap_antivirus_connector | Not specified | NVD |
| netapp h300s_firmware | Not specified | NVD |
| netapp h500s_firmware | Not specified | NVD |
| netapp h700s_firmware | Not specified | NVD |
| netapp h410s_firmware | Not specified | NVD |
| apple macos | from 11.0 before 11.7.9, from 12.0 before 12.6.8, from 13.0 before 13.5 | NVD |
All scores
| CISA-ADP | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| curl | low rating | |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-28321 changed 2025-01-15 | CVE Terms of Use |
| curl | CURL-CVE-2023-28321 changed 2026-10-25 | MIT |
| NVD | CVE-2023-28321 changed 2026-10-23 | Public domain |