ZeroHour

CVE-2026-82208

PoC

TLS certificate validation bypass in libcurl with wolfSSL backend

CVSS 3.1
7.5 high
EPSS
<1%p36
Published
()
Modified
AI analysis

libcurl, when built against the wolfSSL TLS backend, can silently restore a cached CA trust store after an application has replaced the trust store through a CURLOPT_SSL_CTX_FUNCTION callback, while CA caching is enabled. The flaw is triggered whenever the callback selects a different set of trusted CAs, causing certificate chain validation to run against the cached store instead of the store the application intended. As a result, an attacker can present a server certificate that the application meant to reject (for example, one issued by a CA trusted only by the cached store) and have the TLS connection accepted, undermining the application's intended trust policy (CWE-295, rated 7.5 High). Only applications that use libcurl with the wolfSSL backend and use this callback to swap trust stores are affected; other TLS backends are not impacted. No public proof-of-concept or in-the-wild exploitation is known, and EPSS assigns a roughly 0.3% probability of exploitation within 30 days.

What to do: Check whether your application builds libcurl against wolfSSL and sets CURLOPT_SSL_CTX_FUNCTION to replace trust stores; if so, upgrade to a fixed libcurl release published by the curl project (fixed version not stated in the available data, so check curl.se advisories). As an interim mitigation, avoid swapping trust stores via that callback on the wolfSSL backend, or enforce expected issuer/CA checks at the application layer. There is no evidence of active exploitation, but monitor the curl advisory for patch details.

Affected
curl project (curl.se) libcurl built with the wolfSSL TLS backend (applications using CURLOPT_SSL_CTX_FUNCTION to replace trust stores with CA
Estimated exposure
unknown; plausibly thousands of deployments (embedded devices, appliances and custom clients built with libcurl's wolfSSL backend), a small slice of libcurl's… — libcurl ships in a vast number of products, but the vulnerable path requires the less-common wolfSSL backend combined with the rarely used CURLOPT_SSL_CTX_FUNCTION trust-store swap, and no public install counts exist for that specific…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Vendors
haxx
Products
curl
Weakness
CWE-295
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

In the news

No ingested article mentions this CVE yet.