Skip to content
High 7.5

OpenSSLのASN.1処理に ヒープ境界外書き込みの脆弱性 サービス停止のおそれ

CVE-2026-120667 First seen on SecPulse

Summary

4GiBを超えるバッファーから不正に細工したDER形式のCRL・証明書・CSRを解析させられると、OpenSSLでヒープ領域への境界外書き込みが起き、プロセスが停止するおそれがあります。影響を受けるのは4.1.0以降4.1.1未満と4.0.0以降4.0.4未満のOpenSSLで、修正版は4.1.1と4.0.4です。該当する版を使っている場合は、修正版への更新を急ぐ必要があります。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

4GiBを超えるバッファーから不正に細工したDER形式のCRL・証明書・CSRを解析させられると、OpenSSLでヒープ領域への境界外書き込みが起き、プロセスが停止するおそれがあります。影響を受けるのは4.1.0以降4.1.1未満と4.0.0以降4.0.4未満のOpenSSLで、修正版は4.1.1と4.0.4です。該当する版を使っている場合は、修正版への更新を急ぐ必要があります。

Affected packages

PackageAffected → Fixed
OpenSSLOpenSSL
≥ 4.1.0, < 4.1.1→ 4.1.1
≥ 4.0.0, < 4.0.4→ 4.0.4

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

Issue summary: An application that parses a maliciously crafted DER CRL,
certificate or CSR from a buffer larger than 4 GiB may trigger a heap buffer
overflow when OpenSSL re-encodes the item's cached encoding.

Impact summary: An attacker who supplies a crafted CRL, certificate or CSR to
an application that parses untrusted DER from a buffer larger than 4 GiB
causes a heap out-of-bounds write of attacker-controlled data, crashing the
process: Denial of Service.

CWE: CWE-787: Out-of-bounds Write

Description: ASN1_item_i2d() encodes an item in two passes, sizing the buffer
first and writing it second. For an item with a cached DER encoding,
ossl_asn1_enc_restore() reports that length through an int while copying the
full long. A cached encoding longer than INT_MAX is reported truncated, so the
caller allocates a small buffer and the second pass copies the whole span into
it.

The cache is kept for the signed parts of CRLs, certificates and CSRs. Parsing
a CRL reaches it: d2i_X509_CRL() fingerprints the CRL and re-encodes that
part, and a CRL inside PKCS#7 or CMS triggers it when the container is parsed.
Certificates reach it at the first X509_verify() or extension-cache
fingerprint, CSRs at X509_REQ_verify(). The attacker must supply a DER object
whose signed part spans more than 2^32 bytes from a buffer of at least 4 GiB,
on a platform with a 64-bit long. TLS, the HTTP CRL fetch, the BIO, PEM,
decoder and store readers cap input below 4 GiB.

The oversized copy runs off the…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details