VYPR
Unrated severityNVD Advisory· Published Feb 3, 2024· Updated Jun 20, 2025

OCSP verification bypass with TLS session reuse

CVE-2024-0853

Description

curl 8.5.0 (OpenSSL, TLS 1.2) keeps SSL session ID in cache even when OCSP stapling verification fails, allowing a subsequent TLS session reuse that bypasses the revocation check.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

curl 8.5.0 (OpenSSL, TLS 1.2) keeps SSL session ID in cache even when OCSP stapling verification fails, allowing a subsequent TLS session reuse that bypasses the revocation check.

Vulnerability

In curl 8.5.0 built with OpenSSL and using TLS 1.2 only (not TLS 1.3), the SSL session ID was retained in the cache even when the Online Certificate Status Protocol (OCSP) stapling verification failed. A subsequent TLS connection to the same hostname could then reuse the cached session ID, which skipped the verify status check entirely. This affects only versions 8.5.0; versions before 8.5.0 and from 8.6.0 onward are not affected [1].

Exploitation

An attacker does not need any special network position or authentication. The attack relies on the fact that after an initial TLS 1.2 handshake with OCSP stapling that fails verification, the session ID remains cached. If a second transfer to the same hostname occurs while the cache entry is still valid (TTL-based freshness), that second transfer will reuse the cached session ID and bypass the OCSP revocation check. The attacker can be passive (observing traffic) or active (man-in-the-middle), as long as they can cause the first connection to fail verification and then trigger a second connection to the same hostname [1].

Impact

A successful exploit allows the attacker to impersonate a legitimate TLS server with a revoked certificate. The client (libcurl or curl command line) would not detect the revocation, thus the attacker gains the ability to perform man-in-the-middle attacks, intercepting or modifying data. The impact is limited to confidentiality and integrity of the affected TLS session, and no further privilege escalation is possible [1].

Mitigation

The vulnerability is fixed in curl 8.6.0, released on January 31, 2024. Users should upgrade to version 8.6.0 or later. Alternatively, apply the patch from the commit c28e9478cb2548848ec. Workarounds include not using curl built with OpenSSL, or not allowing TLS 1.2 for transfers. No KEV listing has been published as of this writing [1].

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

17

Patches

0

No patches discovered yet.

Vulnerability mechanics

No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.

References

6

News mentions

0

No linked articles in our index yet.