
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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.
INT_MAX threshold.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).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.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).
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.
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."