cve.bz

CVE-2021-22926 Improper Certificate Validation

7.5 highExploit referenceEPSS 15%Fix available

High (7.5). EPSS 15% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
15% (unchanged from 15% a week ago; 15% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-05-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-295 Improper Certificate Validation
CWE-840 Business Logic Errors
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-22926 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-22926?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-22926?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-22926 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-22926

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-22926](https://cve.bz/cve/badge/CVE-2021-22926.svg)](https://cve.bz/cve/CVE-2021-22926)

HTML:

<a href="https://cve.bz/cve/CVE-2021-22926"><img src="https://cve.bz/cve/badge/CVE-2021-22926.svg" alt="CVE-2021-22926"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
haxx:curlfrom 7.33.0 before 7.78.0
oracle:mysql_serverfrom 5.7.0 through 5.7.35
oracle:mysql_serverfrom 8.0.0 through 8.0.26
oracle:peoplesoft_enterprise_peopletools8.57
oracle:peoplesoft_enterprise_peopletools8.58
oracle:peoplesoft_enterprise_peopletools8.59
siemens:sinec_infrastructure_network_servicesbefore 1.0.1.1
splunk:universal_forwarderfrom 8.2.0 before 8.2.12
splunk:universal_forwarderfrom 9.0.0 before 9.0.6
splunk:universal_forwarder9.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Alpinev3.11curl7.67.0-r5ALPINE-CVE-2021-22926
Azure Linux2curl7.82.0-1AZL-6364

From the distributions' data via OSV.dev: the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

curl as shipped with dotnet-3.1 is not affected by this flaw because it is not built with `--with-secure-transport` and does not use the Secure Transport backend. It uses openssl.

ProductPackageStateAdvisory
.NET Core 3.1 on Red Hat Enterprise Linuxrh-dotnet31-curlNot affected
Red Hat Ceph Storage 2curlOut of support scope
Red Hat Enterprise Linux 6curlNot affected
Red Hat Enterprise Linux 7curlNot affected
Red Hat Enterprise Linux 8curlNot affected
Red Hat Enterprise Linux 9curlNot affected
Red Hat JBoss Core Servicesjbcs-httpd24-curlNot affected
Red Hat Software Collectionshttpd24-curlNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-22926.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-22-069-09Siemens SINEC INS2022-03-08MultipleSINEC INSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON