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-develUpgrade openssl-perlUpgrade openssl | Jun 16, 2026 | Jun 11, 2026 |
| Alpine Linux | — | Upgrade openssl | Jun 18, 2026 | Jun 9, 2026 |
| Amazon Linux Ami 2 | — | Upgrade openssl-snapsafe-debuginfoUpgrade openssl11-develUpgrade openssl-snapsafe-develUpgrade openssl-snapsafeUpgrade openssl-libsUpgrade edk2-ovmfUpgrade opensslUpgrade openssl-snapsafe-libsUpgrade edk2-tools-docUpgrade openssl-perlUpgrade edk2-aarch64Upgrade edk2-toolsUpgrade openssl11-libsUpgrade openssl-snapsafe-staticUpgrade openssl11-staticUpgrade openssl-develUpgrade openssl-snapsafe-perlUpgrade openssl-staticUpgrade openssl11Upgrade edk2-debuginfoUpgrade openssl-debuginfoUpgrade openssl11-debuginfo | Jun 23, 2026 | Jun 23, 2026 |
| Amazon_linux_2023 | — | Upgrade openssl-snapsafe-libsUpgrade openssl-develUpgrade openssl-fips-provider-latestUpgrade openssl-perlUpgrade openssl-libsUpgrade openssl-debuginfoUpgrade openssl-debugsourceUpgrade openssl-snapsafe-libs-debuginfoUpgrade openssl-fips-provider-latest-debuginfoUpgrade opensslUpgrade openssl-libs-debuginfo | Jun 23, 2026 | Jun 9, 2026 |
| Debian | — | Upgrade openssl | Jun 16, 2026 | Jun 16, 2026 |
| Freebsd | — | Upgrade openssl40Upgrade FreeBSDUpgrade openssl34Upgrade openssl36Upgrade openssl111Upgrade opensslUpgrade openssl35 | 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-debugsourceUpgrade openssl-libs-debuginfoUpgrade openssl-devel | Jun 17, 2026 | Jun 9, 2026 |
| Rocky_linux | — | Upgrade openssl-debugsourceUpgrade opensslUpgrade openssl-debuginfoUpgrade openssl-libsUpgrade openssl-libs-debuginfoUpgrade openssl-perlUpgrade openssl-devel | Jun 17, 2026 | Jun 13, 2026 |
| Splunk | — | Upgrade Splunk Enterprise to version 10.0.9Upgrade Splunk Enterprise to version 10.4.2Upgrade Splunk Enterprise to version 10.2.6Upgrade Splunk Enterprise to version 9.4.14 | Aug 20, 2026 | Jun 9, 2026 |
| Ubuntu | — | Upgrade openssl (Ubuntu Pro)Upgrade libssl3t64Upgrade opensslUpgrade openssl1.0 (Ubuntu Pro)Upgrade 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