VDB

CVE-2023-28321

CVE-2023-28321 PUBLISHED CVSS 5.9 MEDIUM

Reported by hackerone · Published May 26, 2023

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
curlAlpine8.1.0-r0
libcurlAmazon Linux8.2.1-1.amzn2.0.2

Risk scores

CVSS 3.1
5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
n/ahttps://github.com/curl/curlFixed in 8.1.0
alpinecurl0
amazon:2libcurl0
n/ahttps://github.com/curl/curl8.1.0
amazon:2023libcurl-devel0
amazon:2023libcurl-minimal0
amazon:2curl0
amazon:2023libcurl0
amazon:2023curl-minimal0
amazon:2023curl0
amazon:2libcurl-devel0

Timeline

  • May 18, 2023 PoC Published (2 in total, the first dated here)
  • May 26, 2023 CVE Published
  • May 27, 2023 EPSS Score (30 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (22 in total, the first dated here)
  • Oct 5, 2026 Distribution Patch (18 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-28321
vulnetix vdb fixes CVE-2023-28321

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-28321/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›