Heap-based Buffer Overflow Affecting openssl package, versions [1.0.2u,3.1.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.36% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Heap-based Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-OPENSSL-17276655
  • published10 Jun 2026
  • disclosed9 Jun 2026
  • creditZehua Qiao, Jinwen He

Introduced: 9 Jun 2026

NewCVE-2026-7383  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade openssl to version 3.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow in ASN1_mbstring_ncopy() and ASN1_mbstring_copy(). An attacker supplying input on the order of 2^30 characters can overflow the signed int destination size computation for Unicode output, wrapping the allocation size to zero and causing the character copy to write gigabytes past a one-byte buffer, leading to a crash or possibly code execution. No OpenSSL network or certificate-handling path reaches the overflow; triggering it requires an application to call these functions directly, or to register a custom string type via ASN1_STRING_TABLE_add(), with attacker-controlled input of at least half a gigabyte.

CVSS Base Scores

version 4.0
version 3.1