# CVE-2026-54876: Client-Side Memory Leak in OCSP Response Checking

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.50% (percentile 35, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2026-08-05T13:59:36.466Z
- **Modified:** 2026-11-06T20:01:47.343Z

## Who should check

- Anyone running OpenSSL \>= 4.0.0, \< 4.0.2; \>= 3.6.0, \< 3.6.4

## Description

Issue summary: A malicious TLS server can cause a memory leak in a TLS
client that has enabled OCSP response checking by sending an OCSP
response that contains no single response entries.

Impact summary: An attacker can leak an attacker-tunable amount of memory
per TLS handshake in a victim client application. A long-running client
that repeatedly connects to a malicious server can have its memory
exhausted, resulting in a Denial of Service.

CWE: CWE-401: Missing Release of Memory after Effective Lifetime

Description: The affected function is called during X.509 certificate
chain verification when OCSP response checking is enabled
with the X509\_V\_FLAG\_OCSP\_RESP\_CHECK or X509\_V\_FLAG\_OCSP\_RESP\_CHECK\_ALL
verification flags, for example when a TLS client verifies an OCSP
response stapled into the TLS handshake by the server.

When the received BasicOCSPResponse contains an empty SEQUENCE OF
SingleResponse, which is permitted on the wire and accepted by the
OpenSSL decoder, the OCSP\_BASICRESP structure allocated by
OCSP\_response\_get1\_basic() was not freed because an early return
bypassed the cleanup code at the end of the function.

The amount of memory leaked per handshake can be amplified by the
attacker by padding the certs field of the BasicOCSPResponse with
bogus certificates, which are parsed and stored in the leaked
structure before the empty response check triggers the early return.
A long-running TLS client that repeatedly connects to a malicious
server can have its memory exhausted over time.

OCSP response checking is not enabled by default. Only client
applications that explicitly enable the OCSP response check
verification flags are affected.

FIPS impact: no

The FIPS modules in 4.0 and 3.6 are not affected by this issue as the
affected code is outside the OpenSSL FIPS module boundary.

## Affected and fixed versions

- OpenSSL: \>= 4.0.0, \< 4.0.2; \>= 3.6.0, \< 3.6.4 (cvelist)

## Mitigation

- Upgrade OpenSSL to 3.6.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-54876. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-54876.md
Affected: OpenSSL >= 4.0.0, < 4.0.2; >= 3.6.0, < 3.6.4
Fixed in: OpenSSL 4.0.2, OpenSSL 3.6.4

Steps:
1. Search this machine and project for OpenSSL: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-54876 being exploited?

There is no confirmed exploitation: CVE-2026-54876 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.50% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-54876?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-54876?

OpenSSL \>= 4.0.0, \< 4.0.2; \>= 3.6.0, \< 3.6.4.

### Is there a fix for CVE-2026-54876?

Yes. Fixed in OpenSSL 4.0.2, OpenSSL 3.6.4. Upgrade OpenSSL to 3.6.4 or later.

### How do I check if I'm affected by CVE-2026-54876?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://openssl-library.org/news/secadv/20260805.txt>
- patch: <https://github.com/openssl/openssl/commit/d8c51048ac037a21bae0f41cad7a3920dc7f3638>
- patch: <https://github.com/openssl/openssl/commit/155b5fe0f93365e6df1c56ee3606b121080c6c12>
- other: <http://www.openwall.com/lists/oss-security/2026/08/05/8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-54876>

HTML: <https://flawdb.com/CVE-2026-54876> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-54876>
