CVE-2026-34180
Analyzed Analyzed - Analysis Complete

Heap Buffer Over-read in OpenSSL ASN.1 Decoder

Vulnerability report for CVE-2026-34180, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-09

Last updated on: 2026-06-15

Assigner: OpenSSL Software Foundation

Description

Issue summary: Parsing a crafted DER-encoded ASN.1 structure with a primitive element whose content exceeds 2 gigabytes in length may cause a heap buffer over-read on 64-bit Unix and Unix-like platforms. Impact summary: The heap buffer over-read may crash the application (Denial of Service) or to load into the decoded ASN.1 object contents of memory beyond the end of the input buffer. More typically such ASN.1 elements would instead be truncated. An integer truncation in OpenSSL's ASN.1 decoder causes the content length of an ASN.1 primitive element to be mishandled when it exceeds 2 gigabytes. In the worst case the truncated length is treated as a request to scan the binary content for a terminating zero byte, possibly causing OpenSSL to read either less than or beyond the end of the allocated buffer. Applications that pass attacker-supplied data to d2i_X509(), d2i_PKCS7(), or any other d2i_* decoding function are affected. OpenSSL's own command-line tools are not vulnerable, as data read through the BIO layer is checked before it reaches the affected code. The issue only affects 64-bit Unix and Unix-like platforms; 32-bit platforms and 64-bit Windows are not affected. The FIPS modules in 4.0, 3.6, 3.5, 3.4 and 3.0 are not affected by this issue, as the affected code is outside the OpenSSL FIPS module boundary.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-09
Last Modified
2026-06-15
Generated
2026-06-30
AI Q&A
2026-06-09
EPSS Evaluated
2026-06-28
NVD
EUVD

Affected Vendors & Products

Showing 7 associated CPEs
Vendor Product Version / Range
openssl openssl From 1.0.2 (inc) to 1.0.2zq (exc)
openssl openssl From 1.1.1 (inc) to 1.1.1zh (exc)
openssl openssl From 3.0.0 (inc) to 3.0.21 (exc)
openssl openssl From 3.4.0 (inc) to 3.4.6 (exc)
openssl openssl From 3.5.0 (inc) to 3.5.7 (exc)
openssl openssl From 3.6.0 (inc) to 3.6.3 (exc)
openssl openssl 4.0.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves an integer truncation in OpenSSL's ASN.1 decoder when parsing a crafted DER-encoded ASN.1 structure. Specifically, if a primitive element's content length exceeds 2 gigabytes, the length is mishandled, causing the decoder to potentially read beyond the allocated buffer.

On 64-bit Unix and Unix-like platforms, this can lead to a heap buffer over-read, where the application reads memory beyond the intended input buffer. This occurs because the truncated length may cause OpenSSL to scan for a terminating zero byte incorrectly.

Applications using OpenSSL functions like d2i_X509(), d2i_PKCS7(), or other d2i_* decoding functions with attacker-supplied data are affected. However, OpenSSL's own command-line tools are not vulnerable because they check data through the BIO layer before decoding.

This issue only affects 64-bit Unix and Unix-like platforms; 32-bit platforms and 64-bit Windows are not affected. The FIPS modules in OpenSSL versions 3.0 through 4.0 are also not affected.

Impact Analysis

The heap buffer over-read caused by this vulnerability can lead to application crashes, resulting in Denial of Service (DoS).

Additionally, the vulnerability may cause the decoded ASN.1 object to include memory contents beyond the end of the input buffer, potentially exposing unintended data.

Compliance Impact

The vulnerability causes a heap buffer over-read that may lead to application crashes (Denial of Service) or reading beyond the intended buffer when parsing ASN.1 structures. However, there is no information provided about any impact on confidentiality, integrity, or availability of sensitive data that would directly relate to compliance with standards such as GDPR or HIPAA.

Since the CVE description and resources do not mention any data breach, unauthorized data access, or leakage, it is unclear how this vulnerability would affect compliance with regulations focused on data protection and privacy.

Detection Guidance

This vulnerability occurs when parsing a crafted DER-encoded ASN.1 structure with a primitive element whose content exceeds 2 gigabytes in length, causing a heap buffer over-read on 64-bit Unix and Unix-like platforms.

Detection would involve identifying if any applications on your system are passing attacker-supplied data to OpenSSL d2i_* decoding functions such as d2i_X509() or d2i_PKCS7().

Since OpenSSL's own command-line tools are not vulnerable and the issue is specific to 64-bit Unix and Unix-like platforms, detection commands would focus on monitoring or scanning applications that use OpenSSL libraries for ASN.1 decoding.

  • Check running processes linked against vulnerable OpenSSL versions.
  • Use tools like lsof or netstat to monitor network traffic for suspicious DER-encoded ASN.1 data exceeding 2GB in length.
  • Audit application logs for crashes or Denial of Service symptoms related to ASN.1 parsing.
Mitigation Strategies

Immediate mitigation steps include:

  • Avoid processing untrusted or attacker-supplied DER-encoded ASN.1 data with OpenSSL d2i_* decoding functions on affected 64-bit Unix and Unix-like platforms.
  • Apply patches or updates from OpenSSL once available that address the integer truncation issue in ASN.1 decoding.
  • Monitor applications for abnormal crashes or Denial of Service conditions related to ASN.1 parsing.
  • Consider implementing input validation or size checks before passing ASN.1 data to OpenSSL decoding functions.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-34180. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart