Vulnerability · Published May 26, 2023 · Assigned by hackerone

CVE-2023-28321

Medium 5.9

In plain English

A medium-severity improper certificate validation in https://github.com/curl/curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)1.8%top 21.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8curl7.61.1-30.el8_8.3ALSA-2023:4523
AlmaLinux:9curl7.76.1-23.el9_2.2ALSA-2023:4354
AlmaLinux:9curl-minimal7.76.1-23.el9_2.2ALSA-2023:4354
AlmaLinux:8libcurl7.61.1-30.el8_8.3ALSA-2023:4523
AlmaLinux:9libcurl7.76.1-23.el9_2.2ALSA-2023:4354
AlmaLinux:8libcurl-devel7.61.1-30.el8_8.3ALSA-2023:4523
AlmaLinux:9libcurl-devel7.76.1-23.el9_2.2ALSA-2023:4354
AlmaLinux:8libcurl-minimal7.61.1-30.el8_8.3ALSA-2023:4523
AlmaLinux:9libcurl-minimal7.76.1-23.el9_2.2ALSA-2023:4354
Alpine:v3.20curl8.1.0-r0ALPINE-CVE-2023-28321
Alpine:v3.21curl8.1.0-r0ALPINE-CVE-2023-28321
Alpine:v3.22curl8.1.0-r0ALPINE-CVE-2023-28321
Alpine:v3.23curl8.1.0-r0ALPINE-CVE-2023-28321
Alpine:v3.24curl8.1.0-r0ALPINE-CVE-2023-28321
Debian:12curl7.88.1-10DEBIAN-CVE-2023-28321
Debian:13curl7.88.1-10DEBIAN-CVE-2023-28321
Debian:14curl7.88.1-10DEBIAN-CVE-2023-28321
Rocky Linux:8curl0:7.61.1-30.el8_8.3RLSA-2023:4523
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.11UBUNTU-CVE-2023-28321
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.11USN-6237-1

Affected products (as reported)

VendorProductVersions
n/a https://github.com/curl/curl Fixed in 8.1.0

Weakness: CWE-295 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

References