OpenSSL OCSP Response Handling Flaw Causes Client-Side Memory Leak
Vulnerability Disclosure · 5 sources · Updated 4mo ago · First seen Aug 5, 2026

OpenSSL disclosed CVE-2026-54876, a low-severity flaw that lets a malicious TLS server trigger a client-side memory leak during OCSP response checking. The bug appears when a TLS client has explicitly enabled OCSP validation and processes a BasicOCSPResponse with an empty SingleResponse sequence, leaving an allocated OCSP_BASICRESP structure unfreed. By repeating handshakes and tuning the leaked memory per connection, an attacker could exhaust memory in long-running client applications and cause a denial of service.
The issue affects OpenSSL 4.0 and 3.6 but not 3.5, 3.4, 3.0, 1.1.1, or 1.0.2, and OpenSSL said its FIPS modules are not impacted because the vulnerable code sits outside the FIPS boundary. The fix changes check_cert_ocsp_resp() in crypto/x509/x509_vfy.c so error handling routes through cleanup and frees the OCSP basic response instead of returning early; patches are already available in commits d8c5104 and 155b5fe and are slated for inclusion in releases 4.0.2 and 3.6.4.
Why it matters
Impact assessment
CVE-2026-54876 affects TLS client applications built on OpenSSL 4.0 or 3.6 that explicitly enable OCSP response checking. The impact is denial of service through client-side memory exhaustion, not code execution or direct data compromise, and exposure is narrower than a default OpenSSL deployment because the vulnerable verification flags are not enabled by default.
Severity and scope
- Affected product: OpenSSL
- Affected branches: 4.0 and 3.6
- Unaffected branches: 3.5, 3.4, 3.0, 1.1.1, 1.0.2
- Severity: Low, per OpenSSL
- Weakness: CWE-401, Missing Release of Memory after Effective Lifetime
- Impact type: client-side denial of service via memory leak
- Scope: targeted against clients that connect to a malicious TLS server and have OCSP response checking explicitly enabled
- Default exposure: limited, because OCSP response checking is not enabled by default in OpenSSL
Who is affected
- Organizations operating long-running TLS client applications linked against OpenSSL 4.0 or 3.6
- Applications that enable X509_V_FLAG_OCSP_RESP_CHECK or X509_V_FLAG_OCSP_RESP_CHECK_ALL
- Environments that validate stapled OCSP responses during X.509 certificate chain verification
Operational consequences
- Repeated TLS handshakes to a malicious server can steadily consume client memory
- Long-lived processes are at greatest risk of service degradation or crash
- Financial and reputational impact is likely limited to service instability unless affected clients are mission-critical
Exploitation status
- The story describes a viable attack condition from a malicious TLS server
- No confirmed exploitation in the wild was reported in the provided references


