VDB

CVE-2021-22926

CVE-2021-22926 PUBLISHED CVSS 7.5 HIGH

Reported by hackerone · Published August 5, 2021

libcurl-using applications can ask for a specific client certificate to be used in a transfer. This is done with the `CURLOPT_SSLCERT` option (`--cert` with the command line tool).When libcurl is built to use the macOS native TLS library Secure Transport, an application can ask for the client certificate by name or with a file name - using the same option. If the name exists as a file, it will be used instead of by name.If the appliction runs with a current working directory that is writable by other users (like `/tmp`), a malicious user can create a file name with the same name as the app wants to use by name, and thereby trick the application to use the file based cert instead of the one referred to by name making libcurl send the wrong client certificate in the TLS connection handshake.

Fixed versions

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

PackageEcosystemFixed in
curlAlpine7.67.0-r5
universal_forwardersplunk9.0.6, 8.2.12
mysql_serveroracle8.0.26, 5.7.35
SIMATIC S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5
curlhaxx7.78.0
SIPLUS S7-1500 CPU 1518-4 PN/DP MFPSiemens3.1.5
sinec_infrastructure_network_servicessiemens1.0.1.1

Risk scores

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

Affected products

VendorProductVersions
n/ahttps://github.com/curl/curlcurll 7.33.0 to and include 7.77.0
alpinecurl0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
n/ahttps://github.com/curl/curl7.33.0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0

Timeline

  • Jul 21, 2021 PoC Published (2 in total, the first dated here)
  • Aug 5, 2021 CVE Published
  • Aug 6, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 27, 2026 Security Advisory (4 in total, the first dated here)
  • Jul 23, 2026 Distribution Patch
  • Aug 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-22926
vulnetix vdb fixes CVE-2021-22926

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-2021-22926/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 ›