Description
With the wolfSSL backend, when CA caching is enabled and an
`CURLOPT_SSL_CTX_FUNCTION` callback replaces the trust store, libcurl can
silently reinstall the cached store after the callback returns. A certificate
trusted by the cached store but rejected by the callback-selected store is
then incorrectly accepted.
Published: 2026-09-06
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

When libcurl uses the wolfSSL backend with CA caching enabled, a user‑supplied callback intended to replace the trust store can be silently ignored. After the callback returns, the cached store is re‑installed, so a certificate that the cached store trusts but the callback’s store rejects is incorrectly accepted. This flaw permits an attacker to subvert custom certificate validation logic and gain unauthorized trust in a malicious server. The compromised connection can be used for credential theft, data exfiltration or further lateral movement.

Affected Systems

Affected systems are instances of libcurl that employ the wolfSSL backend with CA caching turned on. The CVE record lists the product as curl:curl, but no specific version ranges are supplied. Consequently, any build of libcurl using wolfSSL with caching enabled is potentially affected until a fix is deployed.

Risk and Exploitability

The vulnerability can be exploited by an attacker who can supply a server certificate that is present in the cached store but is not accepted by the application’s custom trust logic. Because the bug restores the cached store automatically, the attacker can maintain a legitimate TLS connection despite having a policy that would otherwise reject it. No EPSS score is available, and the issue is not listed in CISA KEV, but the flaw facilitates a dangerous bypass of authentication and should be treated as a high‑risk issue once the application contacts a malicious endpoint.

Generated by OpenCVE AI on September 6, 2026 at 19:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade libcurl to a release that includes the CA‑cache bug fix
  • Avoid using CURLOPT_SSL_CTX_FUNCTION while CA caching is enabled; if necessary, disable caching or configure the application to enforce certificate validation through other means
  • If a patch is not yet available, configure the application to disable CA caching or switch to a different SSL/TLS backend that does not exhibit this flaw

Generated by OpenCVE AI on September 6, 2026 at 19:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 06 Sep 2026 20:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-296

Sun, 06 Sep 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Curl
Curl curl
Vendors & Products Curl
Curl curl

Sun, 06 Sep 2026 18:00:00 +0000

Type Values Removed Values Added
Description With the wolfSSL backend, when CA caching is enabled and an `CURLOPT_SSL_CTX_FUNCTION` callback replaces the trust store, libcurl can silently reinstall the cached store after the callback returns. A certificate trusted by the cached store but rejected by the callback-selected store is then incorrectly accepted.
Title wolfSSL CA-cache hit overrides callback
References

cve-icon MITRE

Status: PUBLISHED

Assigner: curl

Published:

Updated: 2026-09-06T17:49:16.014Z

Reserved: 2026-08-28T08:25:31.400Z

Link: CVE-2026-82208

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-06T18:17:22.733

Modified: 2026-09-06T18:17:22.733

Link: CVE-2026-82208

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-06T20:00:06Z

Weaknesses
  • CWE-296

    Improper Following of a Certificate's Chain of Trust