Issue summary: A signed integer overflow when sizing the destination buffer for Unicode output in ASN1_mbstring_ncopy() can lead to a heap buffer overflow.
Impact summary: A heap buffer overflow may lead to a crash or possibly attacker controlled code execution or other undefined behaviour.
In ASN1_mbstring_copy() and ASN1_mbstring_ncopy() the destination size for Unicode output is computed in a signed int: by left shift of the input character count for BMPSTRING (UTF-16) and UNIVERSALSTRING (UTF-32), and by summing per-character byte counts for UTF8STRING. The calculation overflows when the input reaches around 2^30 characters. In the worst case (UNIVERSALSTRING at 2^30 characters) the size wraps to zero, OPENSSL_malloc(1) is called, and the subsequent character copy writes several gigabytes past the one-byte allocation.
X.509 certificate processing routes through ASN1_STRING_set_by_NID(), whose DIRSTRING_TYPE mask excludes UNIVERSALSTRING and whose per-NID size limits cap the input length; no network protocol or certificate-handling path in OpenSSL exercises the overflow. Triggering the bug requires an application that calls ASN1_mbstring_copy() or ASN1_mbstring_ncopy() directly, or registers a custom string type via ASN1_STRING_TABLE_add(), with attacker-controlled input on the order of half a gigabyte or more. For these reasons this issue was assigned Low severity.
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 Details
- CVSS 3.1 Base Score: 8.1
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade openssl-libsUpgrade openssl-perlUpgrade openssl-develUpgrade openssl | Jun 16, 2026 | Jun 11, 2026 |
| Alpine Linux | — | Upgrade openssl | Jun 18, 2026 | Jun 9, 2026 |
| Amazon Linux Ami 2 | — | Upgrade openssl-perlUpgrade edk2-tools-docUpgrade openssl11-libsUpgrade edk2-aarch64Upgrade edk2-toolsUpgrade openssl-snapsafe-staticUpgrade openssl11-develUpgrade openssl-snapsafeUpgrade openssl-snapsafe-debuginfoUpgrade opensslUpgrade openssl-snapsafe-libsUpgrade edk2-ovmfUpgrade openssl-snapsafe-develUpgrade openssl-libsUpgrade openssl11-staticUpgrade openssl-snapsafe-perlUpgrade openssl-staticUpgrade edk2-debuginfoUpgrade openssl11Upgrade openssl-debuginfoUpgrade openssl-develUpgrade openssl11-debuginfo | Jun 23, 2026 | Jun 23, 2026 |
| Amazon_linux_2023 | — | Upgrade opensslUpgrade openssl-debugsourceUpgrade openssl-snapsafe-libs-debuginfoUpgrade openssl-libs-debuginfoUpgrade openssl-fips-provider-latest-debuginfoUpgrade openssl-develUpgrade openssl-libsUpgrade openssl-debuginfoUpgrade openssl-fips-provider-latestUpgrade openssl-perlUpgrade openssl-snapsafe-libs | Jun 23, 2026 | Jun 9, 2026 |
| Debian | — | Upgrade openssl | Jun 16, 2026 | Jun 16, 2026 |
| Freebsd | — | Upgrade opensslUpgrade openssl35Upgrade openssl36Upgrade openssl111Upgrade FreeBSDUpgrade openssl40Upgrade openssl34 | Jun 15, 2026 | Jun 10, 2026 |
| Http Openssl | — | Upgrade to the latest version of OpenSSL | Jun 10, 2026 | Jun 9, 2026 |
| Ibm Aix | — | Apply the fix or workaround for openssl_advisory48 | Jul 22, 2026 | Jul 21, 2026 |
| Oracle Missing Cpu Jul 2026 | — | Apply the July 2026 Critical Patch Update (CPU) for Oracle Database | Jul 22, 2026 | Jun 9, 2026 |
| Redhat_linux | — | Upgrade opensslUpgrade openssl-libsNo solution existsUpgrade openssl-perlUpgrade openssl-debuginfoUpgrade openssl-develUpgrade openssl-libs-debuginfoUpgrade openssl-debugsource | Jun 17, 2026 | Jun 9, 2026 |
| Rocky_linux | — | Upgrade openssl-debuginfoUpgrade opensslUpgrade openssl-debugsourceUpgrade openssl-libsUpgrade openssl-libs-debuginfoUpgrade openssl-perlUpgrade openssl-devel | Jun 17, 2026 | Jun 13, 2026 |
| Splunk | — | Upgrade Splunk Enterprise to version 9.4.14Upgrade Splunk Enterprise to version 10.2.6Upgrade Splunk Enterprise to version 10.0.9Upgrade Splunk Enterprise to version 10.4.2 | Aug 20, 2026 | Jun 9, 2026 |
| Ubuntu | — | Upgrade libssl3t64Upgrade openssl (Ubuntu Pro)Upgrade openssl1.0 (Ubuntu Pro)Upgrade opensslUpgrade libssl3 | Jun 16, 2026 | Jun 9, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jun 18, 2026 | Jun 9, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub