PT-2023-3462 · Curl+11 · Curl+11

Hiroki Kurosawa

·

Published

2023-05-17

·

Updated

2026-05-18

·

CVE-2023-28321

CVSS v3.1

5.9

Medium

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions curl versions prior to 8.1.0
Description The issue is related to improper certificate validation in the way curl supports matching of wildcard patterns when listed as "Subject Alternative Name" in TLS server certificates. This could lead to incorrect matching of IDN hosts and potentially allow patterns that should mismatch. IDN hostnames are converted to puny code before being used for certificate checks, but the wildcard check in curl could still incorrectly match patterns. This could result in a remote attacker being able to perform a "man-in-the-middle" attack.
Recommendations For versions prior to 8.1.0, update to version 8.1.0 or later to resolve the issue. As a temporary workaround, consider disabling the use of wildcard patterns in TLS server certificates until a patch is available. Restrict access to IDN hostnames to minimize the risk of exploitation. Avoid using the xn-- prefix in wildcard patterns to prevent incorrect matching.

Exploit

Fix

Improper Certificate Validation

Weakness Enumeration

Related Identifiers

ALSA-2023:4354
ALSA-2023:4523
ALT-PU-2023-1827
ALT-PU-2023-1863
ALT-PU-2023-4357
ALT-PU-2023-5727
AZL-26794
AZL-26808
AZL-26812
AZL-38032
BDU:2023-03648
CESA-2023_4523
CLEANSTART-2026-AY18527
CLEANSTART-2026-BW46578
CLEANSTART-2026-DI23929
CLEANSTART-2026-LQ42192
CLEANSTART-2026-OF85770
CVE-2023-28321
DLA-3613-1
MGASA-2023-0263
OESA-2023-1346
OPENSUSE-SU-2024:12940-1
RHSA-2023:4354
RHSA-2023:4523
RHSA-2023:4629
RHSA-2023:5598
RHSA-2023:6292
RHSA-2023_4354
RHSA-2023_4523
RLSA-2023:4523
SUSE-SU-2023:2224-1
SUSE-SU-2023:2224-2
SUSE-SU-2023:2225-1
SUSE-SU-2023:2226-1
SUSE-SU-2023:2227-1
SUSE-SU-2023:2228-1
SUSE-SU-2023:2230-1
USN-6237-1
USN-6237-2
USN-6237-3

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Apple Macos
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Curl