# CVE-2023-28321: IDN wildcard match

- Severity: Medium 5.9 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/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): 1.81%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-05-17T08:00:00.000Z
- Modified: 2026-10-25T01:05:05.058Z
- Also known as: CURL-CVE-2023-28321
- Weaknesses: CWE-295
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: hackerone

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

(As written by CVE List.)

## Affected

- https://github.com/curl/curl: Fixed in 8.1.0
- https://github.com/curl/curl.git: from 7.12.0 before 8.1.0; from 9631fa740708b1890197fad01e25b34b7e8eb80e before 199f2d440d8659b42670c1b796220792b01a97bf
- haxx curl: before 8.1.0
- debian debian_linux: 10.0
- fedoraproject fedora: 37; 38
- netapp clustered_data_ontap: no versions given
- netapp ontap_antivirus_connector: no versions given
- netapp h300s_firmware: no versions given
- netapp h500s_firmware: no versions given
- netapp h700s_firmware: no versions given
- netapp h410s_firmware: no versions given
- apple macos: from 11.0 before 11.7.9; from 12.0 before 12.6.8; from 13.0 before 13.5

## Every score

- CISA-ADP: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- curl: rating Low
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://hackerone.com/reports/1950627> (exploit, 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/HT213843> (third-party-advisory)
- <https://support.apple.com/kb/HT213844> (third-party-advisory)
- <https://support.apple.com/kb/HT213845> (third-party-advisory)
- <http://seclists.org/fulldisclosure/2023/Jul/52> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2023/Jul/48> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2023/Jul/47> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202310-12> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/10/msg00016.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2023-28321](https://www.cve.org/CVERecord?id=CVE-2023-28321), CVE Terms of Use, modified 2025-01-15
- curl: [CURL-CVE-2023-28321](https://osv.dev/vulnerability/CURL-CVE-2023-28321), MIT, modified 2026-10-25
- NVD: [CVE-2023-28321](https://nvd.nist.gov/vuln/detail/CVE-2023-28321), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2023-28321 · Whole record: https://cve.day/CVE-2023-28321.json · Rebuilt by cve.day 2026-11-25T22:58:24.404Z
