Visit the Wiz Whimzical Shop at AWS re:Invent
Vulnerability DatabaseCVE-2026-120667

CVE-2026-120667: 
OpenSSL vulnerability analysis and mitigation

Overview

CVE-2026-120667 is a heap buffer overflow (out-of-bounds write) vulnerability in OpenSSL's ASN.1 encoding path that allows an unauthenticated remote attacker to crash a vulnerable process via a crafted DER-encoded CRL, certificate, or CSR. It affects OpenSSL versions 4.0.0–4.0.3 and 4.1.0, and was disclosed and patched on December 1, 2026. The vulnerability carries a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory).

Technical details

The root cause (CWE-787: Out-of-bounds Write) lies in ASN1_item_i2d(), which encodes ASN.1 items in two passes: first sizing the output buffer, then writing to it. The function ossl_asn1_enc_restore() reports the cached encoding length via an int parameter while the underlying storage uses a long; on 64-bit platforms where LONG_MAX > INT_MAX, a cached encoding longer than INT_MAX bytes is silently truncated when sizing the allocation, causing the second-pass memcpy to write the full long-sized span into the undersized buffer. The cache is populated for the signed portions of CRLs (via d2i_X509_CRL(), including CRLs embedded in PKCS#7 or CMS), certificates (at the first X509_verify() or extension-cache fingerprint), and CSRs (at X509_REQ_verify()). Exploitation requires the attacker to supply a DER object whose signed part exceeds 2^32 bytes from a buffer of at least 4 GiB on a 64-bit platform; standard input paths such as TLS, HTTP CRL fetch, BIO, PEM, decoder, and store readers cap input below 4 GiB and are therefore not directly exploitable (GitHub Advisory, OpenSSL Commit 8257d58).

Impact

Successful exploitation causes a heap out-of-bounds write of attacker-controlled data that runs off the end of the heap mapping, crashing the process — resulting in a Denial of Service. Because the overrun size is fixed and nothing is read out of bounds or returned to the attacker, there is no known path to confidentiality or integrity compromise; the impact is limited to availability of the affected application. Applications that parse untrusted DER CRLs, certificates, or CSRs from buffers larger than 4 GiB on 64-bit systems are at risk, and the FIPS module boundary is not affected (GitHub Advisory).

Exploitability

No public proof-of-concept exploit exists and no in-the-wild exploitation has been observed as of the disclosure date (GitHub Advisory). The NVD SSVC assessment classifies exploitation as "none" and the attack as automatable. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The practical exploitation barrier is high: an attacker must deliver a DER object with a signed part exceeding 4 GiB, which is not possible through standard TLS or HTTP CRL fetch paths that enforce size limits below this threshold.

Exploitation steps

  1. Identify a vulnerable target: Locate an application using OpenSSL 4.0.0–4.0.3 or 4.1.0 on a 64-bit platform that accepts and parses untrusted DER-encoded CRLs, certificates, or CSRs from buffers larger than 4 GiB (e.g., a custom certificate validation service, a CRL processing daemon, or a PKCS#7/CMS parser without input size limits).
  2. Craft an oversized DER object: Construct a DER-encoded CRL, certificate, or CSR whose signed portion (tbsCertList, tbsCertificate, or certificationRequestInfo) exceeds 2^32 bytes (>4 GiB). This requires generating or padding the signed content to exceed the INT_MAX threshold.
  3. Deliver the payload: Submit the crafted DER object to the target application through whatever interface it exposes for parsing untrusted input — for example, a file upload endpoint, a custom network protocol, or a CRL distribution point that the application fetches and parses without size enforcement.
  4. Trigger the overflow: When the application calls d2i_X509_CRL(), X509_verify(), or X509_REQ_verify() on the crafted object, the cached encoding is stored with a long length exceeding INT_MAX. On re-encoding via ASN1_item_i2d(), ossl_asn1_enc_restore() truncates the length to an int, causing a small buffer allocation; the subsequent memcpy copies the full long-sized span, overflowing the heap and crashing the process (GitHub Advisory, OpenSSL Commit 8257d58).

Indicators of compromise

  • Process: Unexpected crash or core dump of an application linked against OpenSSL 4.0.x or 4.1.0, particularly processes that parse CRLs, certificates, or CSRs from external input.
  • Logs: Application or system logs showing segmentation faults (SIGSEGV) or heap corruption errors (SIGABRT, malloc: corrupted top size) originating from OpenSSL ASN.1 parsing functions such as d2i_X509_CRL, X509_verify, or X509_REQ_verify.
  • Network: Inbound connections delivering unusually large (>4 GiB) DER-encoded payloads to certificate or CRL parsing endpoints; anomalous HTTP responses from CRL distribution points serving oversized content.
  • File System: Presence of core dump files in application working directories following unexpected process termination during certificate or CRL processing.

Mitigation and workarounds

Upgrade to OpenSSL 4.0.4 (for the 4.0.x branch) or OpenSSL 4.1.1 (for the 4.1.x branch), which reject cached encodings longer than INT_MAX in both ossl_asn1_enc_save() and ossl_asn1_enc_restore() (OpenSSL Commit 8257d58, OpenSSL Commit e70e09f). As a workaround prior to patching, enforce strict input size limits (below 4 GiB) on all untrusted DER CRL, certificate, and CSR data at the application or gateway layer, and avoid parsing such objects from unbounded buffers on 64-bit systems. Note that standard OpenSSL input paths (TLS, HTTP CRL fetch, BIO, PEM, decoder, store readers) already cap input below 4 GiB and are not directly vulnerable (GitHub Advisory).

Community reactions

The vulnerability was covered by Linux-focused outlets including Linuxiac and Linux Compatible in the context of the broader OpenSSL 4.1.1 and 4.0.4 security releases, which addressed multiple CVEs simultaneously (Linuxiac, Linux Compatible). Community reaction has been measured given the high exploitation barrier (requiring >4 GiB input buffers), with no notable researcher commentary or social media amplification observed beyond standard vulnerability tracking.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

openssl

Fixed

sid

openssl

Affected

trixie

openssl

Fixed

RHEL / CentOS

Affected

OpenShift

openshift/ose-rhel-coreos-9

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related OpenSSL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-123780HIGH7.5
  • OpenSSL logoOpenSSL
  • openssl
NoYesDec 01, 2026
CVE-2026-120667HIGH7.5
  • OpenSSL logoOpenSSL
  • openssl
NoYesDec 01, 2026
CVE-2026-84785MEDIUM6.5
  • OpenSSL logoOpenSSL
  • edk2
NoYesNov 24, 2026
CVE-2026-120666NONEN/A
  • OpenSSL logoOpenSSL
  • openssl-provider-fips
NoYesDec 01, 2026
CVE-2026-120665NONEN/A
  • OpenSSL logoOpenSSL
  • openssl
NoYesDec 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management