Uptycs Threat Bulletins | Cloud Security Insights for Linux and Containers

CVE-2026-120667: OpenSSL Heap Buffer Overflow in ASN.1 Re-Encoding of Oversized DER Objects

Written by Uptycs Threat Research | Dec 2, 2026, 6:03:00 PM

Severity: High (CVSS 3.1 7.5) · Exploitation: No known exploitation · Fix available: Yes

Summary

CVE-2026-120667 is a heap out-of-bounds write (CWE-787) in OpenSSL's ASN.1 re-encoding logic that affects applications parsing DER-encoded CRLs, certificates, or certificate signing requests (CSRs) from buffers larger than 4 GiB. When OpenSSL re-encodes a cached ASN.1 item whose signed portion exceeds INT_MAX bytes, an internal length truncation causes the caller to allocate an undersized heap buffer; the subsequent copy writes the full oversized span past the end of that allocation, crashing the process. The practical result is a Denial of Service: the process terminates, nothing is read out of bounds, and no data is returned to the attacker. The vulnerability was disclosed on 1 December 2026 by the OpenSSL Project, credited to Bhabani Sankar Das and Nikola Pajkovsky, and fixed versions are available.

Technical details

The root cause lies in ossl_asn1_enc_restore(), which reports a cached DER encoding length through an int while copying through a long. On platforms with a 64-bit long, a cached encoding longer than INT_MAX is silently truncated when the first pass sizes the destination buffer. The second pass then copies the full, untruncated length into that undersized buffer, writing attacker-controlled data past the end of the heap mapping and killing the process. Because the overrun size is fixed and no data is returned to the caller, there is no demonstrated path to code execution or information disclosure from this bug alone.

An attacker must supply a DER object whose signed portion spans more than 2³² bytes from a buffer of at least 4 GiB, and the target application must pass that buffer directly to d2i_X509_CRL(), X509_verify(), or X509_REQ_verify(). Notably, OpenSSL's own TLS stack, HTTP CRL fetch path, BIO, PEM, decoder, and store readers all cap input below 4 GiB, so they are not affected. Applications that accept untrusted DER from files, custom network protocols, or other sources without an equivalent size cap are the primary risk. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) reflects remote, unauthenticated exploitability with no impact on confidentiality or integrity. The flaw is outside the FIPS module boundary and does not affect FIPS-validated operation.

Affected products

  • OpenSSL 4.1.0 through < 4.1.1 — fixed in 4.1.1
  • OpenSSL 4.0.0 through < 4.0.4 — fixed in 4.0.4

Impact

  • Denial of Service via process crash. A remote, unauthenticated attacker who can supply a crafted DER object larger than 4 GiB to a vulnerable parsing path causes an immediate heap buffer overflow that terminates the application.
  • No confidentiality or integrity impact. The out-of-bounds write does not return data to the attacker and the fixed overrun size prevents a controlled partial overwrite, ruling out information disclosure or memory-corruption exploitation as currently understood.
  • Broad ecosystem exposure. Any application or service that accepts untrusted DER-encoded CRLs, certificates, or CSRs without an independent size limit is vulnerable, regardless of whether it uses OpenSSL's TLS layer.
  • FIPS-validated deployments unaffected at the module boundary. The vulnerable code path lies outside the FIPS module, so FIPS compliance status is not impacted, but the host process can still crash.

Exploitation status

No in-the-wild exploitation has been observed as of this bulletin's publication date, and this CVE does not appear on the CISA Known Exploited Vulnerabilities catalog. No public proof-of-concept exploit has been identified. Despite the 4 GiB minimum input size creating a meaningful delivery barrier, CISA's SSVC assessment notes that the attack is automatable, so patch priority should remain high for any service that processes externally supplied DER objects without strict size enforcement.

Recommended actions

  1. Upgrade OpenSSL. Update to OpenSSL 4.1.1 (for 4.1.x deployments) or OpenSSL 4.0.4 (for 4.0.x deployments) as soon as operationally feasible.
  2. Identify exposed applications. Audit services and utilities that accept untrusted DER-encoded CRLs, certificates, or CSRs—particularly those reading from files, custom protocols, or other sources that do not enforce a sub-4 GiB input cap.
  3. Apply input size limits as an interim control. For applications that cannot be patched immediately, enforce a strict maximum input size below 4 GiB on any code path that feeds data to d2i_X509_CRL(), X509_verify(), or X509_REQ_verify().
  4. Review CRL and certificate validation pipelines. Confirm whether your environment processes CRLs embedded in PKCS#7 or CMS containers, as parsing those containers also triggers the vulnerable re-encoding path.
  5. Monitor for unexpected process crashes. Until patching is complete, treat unexplained crashes in OpenSSL-linked services that handle external DER input as a potential indicator and investigate accordingly.
  6. Verify the fix. After upgrading, confirm the installed version reports 4.1.1 or 4.0.4 via your package manager or by running openssl version.

How Uptycs helps

Uptycs vulnerability management continuously inventories hosts, containers, and cloud workloads for affected OpenSSL versions, enabling security teams to identify and prioritize unpatched assets before exploitation occurs. Uptycs Threat Research continues to monitor CVE-2026-120667 and will update this bulletin if exploitation activity or new technical details emerge.

References