Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisoryendpoint-software-vulnerability

OpenSSL OCSP Response Handling Flaw Causes Client-Side Memory Leak

Vulnerability Disclosure · 5 sources · Updated 4mo ago · First seen Aug 5, 2026

OpenSSL OCSP Response Handling Flaw Causes Client-Side Memory Leak

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
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Jun 15, 2026 – Aug 5, 2026
  1. Aug 5, 20264mo ago

    OpenSSL discloses CVE-2026-54876 in a security advisory

    OpenSSL disclosed CVE-2026-54876 as a low-severity client-side memory leak in OCSP response checking that a malicious TLS server could trigger when clients explicitly enabled OCSP response verification. The advisory said OpenSSL 4.0 and 3.6 were affected, while several earlier branches were not, and recommended upgrading once fixed releases become available.

    oss-sec: CVE-2026-54876: OpenSSL: Client-Side Memory Leak in OCSP Response Checking
  2. Aug 3, 20264mo ago

    OpenSSL commits fixes for the 3.6 and 4.0 branches

    OpenSSL published code commits 155b5fe and d8c5104 that changed check_cert_ocsp_resp() to route empty OCSP BasicResponse handling through cleanup, preventing the OCSP_BASICRESP object from leaking. These commits made the fixes available in the Git repository ahead of release versions 3.6.4 and 4.0.2.

    x509: fix OCSP BasicResponse leak in in-verify check · openssl/openssl@155b5fe · GitHub
  3. Jun 19, 20266mo ago

    Zhenzhe Shao independently reports the same OpenSSL flaw

    OpenSSL said Zhenzhe Shao independently reported the same OCSP response checking memory leak later in June. The eventual fix was developed by Mounir Idrassi.

    oss-sec: CVE-2026-54876: OpenSSL: Client-Side Memory Leak in OCSP Response Checking
  4. Jun 15, 20266mo ago

    Bhabani Sankar Das reports the OpenSSL OCSP memory leak

    OpenSSL said Bhabani Sankar Das reported the issue that became CVE-2026-54876. The flaw involved a client-side memory leak in OCSP response checking.

    oss-sec: CVE-2026-54876: OpenSSL: Client-Side Memory Leak in OCSP Response Checking
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Openssl

Organizations

1 linked
OpenSSL Software Foundation
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.