
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-7383 is a signed integer overflow vulnerability in OpenSSL's ASN1_mbstring_ncopy() and ASN1_mbstring_copy() functions that can lead to a heap buffer overflow. Disclosed on June 9, 2026, it affects OpenSSL versions 1.0.2 before 1.0.2zq, 1.1.1 before 1.1.1zh, 3.0.x before 3.0.21, 3.4.x before 3.4.6, 3.5.x before 3.5.7, 3.6.x before 3.6.3, and 4.0.0. OpenSSL assigned this issue Low severity due to the narrow exploitation conditions, though the CVSS v3.1 base score is 8.1 (High) (GitHub Advisory, OpenSSL Advisory).
The root cause is a signed integer overflow (CWE-787: Out-of-bounds Write) in crypto/asn1/a_mbstr.c. When computing the destination buffer size for Unicode output, the character count (nchar) is left-shifted as a signed int: outlen = nchar << 1 for BMPSTRING (UTF-16) and outlen = nchar << 2 for UNIVERSALSTRING (UTF-32). When nchar reaches approximately 2^30, the shift result overflows; in the worst case (nchar == 0x40000000 for UNIVERSALSTRING), the result wraps to zero, causing OPENSSL_malloc(1) to allocate a single byte, after which traverse_string() writes several gigabytes past that allocation. The UTF-8 path is similarly vulnerable via integer overflow in the per-character byte count accumulation in out_utf8(). Exploitation requires an application that directly calls ASN1_mbstring_copy() or ASN1_mbstring_ncopy() with attacker-controlled input of approximately half a gigabyte or more, or one that registers a custom string type via ASN1_STRING_TABLE_add(); standard X.509 certificate processing paths are not affected (GitHub Advisory, OpenSSL Commit).
Successful exploitation can result in a process crash (denial of service) or, in the worst case, attacker-controlled code execution with the privileges of the vulnerable process, as well as potential exposure of sensitive data from heap memory. Because the overflow writes several gigabytes past a one-byte allocation, memory corruption is severe and could affect confidentiality, integrity, and availability of the affected application. However, the practical impact is limited to applications that directly invoke the vulnerable API with untrusted, oversized input — standard OpenSSL certificate-handling paths are not exposed (GitHub Advisory, OpenSSL Advisory).
ASN1_mbstring_copy() or ASN1_mbstring_ncopy() with attacker-controlled input, or that registers a custom ASN.1 string type via ASN1_STRING_TABLE_add(), using a vulnerable OpenSSL version (e.g., 3.0.x < 3.0.21, 3.4.x < 3.4.6, 3.5.x < 3.5.7, 3.6.x < 3.6.3, 4.0.0, 1.0.2 < 1.0.2zq, 1.1.1 < 1.1.1zh).ASN1_mbstring_ncopy() or ASN1_mbstring_copy(). For UNIVERSALSTRING with nchar == 0x40000000, nchar << 2 wraps to zero, causing OPENSSL_malloc(1) to allocate a single byte.traverse_string() call writes several gigabytes of character data past the one-byte allocation, corrupting heap memory. Depending on heap layout and application context, this may result in a crash or potentially controlled code execution (GitHub Advisory, OpenSSL Commit).ASN1_R_STRING_TOO_LONG (on patched versions that reject the input) or unexpected malloc failures.Update OpenSSL to a patched release: 1.0.2zq, 1.1.1zh, 3.0.21, 3.4.6, 3.5.7, 3.6.3, or any later version; OpenSSL 4.0.0 users should upgrade to the next available release. The fix adds range checks before each left shift and in out_utf8(), raising ASN1_R_STRING_TOO_LONG and returning an error instead of overflowing. As a workaround, applications should validate and enforce strict size limits on any input passed to ASN1_mbstring_copy() or ASN1_mbstring_ncopy(), and custom ASN1_STRING_TABLE implementations should be reviewed to ensure they do not expose these functions to untrusted input. The FIPS modules in OpenSSL 3.0, 3.4, 3.5, 3.6, and 4.0 are not affected (OpenSSL Advisory, OpenSSL Commit).
OpenSSL officially assigned this issue Low severity despite the high CVSS score, citing the narrow exploitation conditions — specifically that no standard certificate-handling path in OpenSSL exercises the overflow (OpenSSL Advisory). Downstream distributions including Ubuntu, Debian, Red Hat, SUSE, Fedora, Alpine, FreeBSD, and others issued security advisories and updated packages shortly after disclosure. The security community broadly noted the discrepancy between the CVSS score and the practical exploitability, with the consensus that real-world risk is low absent custom application code paths (GitHub Advisory).
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."