Issue summary: Calling PKCS12_get_friendlyname() function on a maliciously crafted PKCS#12 file with a BMPString (UTF-16BE) friendly name containing non-ASCII BMP code point can trigger a one byte write before the allocated buffer.
Impact summary: The out-of-bounds write can cause a memory corruption which can have various consequences including a Denial of Service.
The OPENSSL_uni2utf8() function performs a two-pass conversion of a PKCS#12 BMPString (UTF-16BE) to UTF-8. In the second pass, when emitting UTF-8 bytes, the helper function bmp_to_utf8() incorrectly forwards the remaining UTF-16 source byte count as the destination buffer capacity to UTF8_putc(). For BMP code points above U+07FF, UTF-8 requires three bytes, but the forwarded capacity can be just two bytes. UTF8_putc() then returns -1, and this negative value is added to the output length without validation, causing the length to become negative. The subsequent trailing NUL byte is then written at a negative offset, causing write outside of heap allocated buffer.
The vulnerability is reachable via the public PKCS12_get_friendlyname() API when parsing attacker-controlled PKCS#12 files. While PKCS12_parse() uses a different code path that avoids this issue, PKCS12_get_friendlyname() directly invokes the vulnerable function. Exploitation requires an attacker to provide a malicious PKCS#12 file to be parsed by the application and the attacker can just trigger a one zero byte write before the allocated buffer. For that reason the issue was assessed as Low severity according to our Security Policy.
The FIPS modules in 3.6, 3.5, 3.4, 3.3 and 3.0 are not affected by this issue, as the PKCS#12 implementation is outside the OpenSSL FIPS module boundary.
OpenSSL 3.6, 3.5, 3.4, 3.3, 3.0 and 1.1.1 are vulnerable to this issue.
OpenSSL 1.0.2 is not affected by this issue.
CVSS Details
- CVSS 3.1 Base Score: 7.4
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade opensslUpgrade compat-openssl11Upgrade openssl-libsUpgrade openssl-develUpgrade openssl-perl | Feb 3, 2026 | Jan 28, 2026 |
| Alpine Linux | — | Upgrade openssl | Jan 28, 2026 | Jan 27, 2026 |
| Amazon Linux Ami 2 | — | Upgrade openssl11-develUpgrade edk2-ovmfUpgrade openssl11Upgrade edk2-tools-docUpgrade openssl11-debuginfoUpgrade openssl11-libsUpgrade edk2-toolsUpgrade edk2-debuginfoUpgrade openssl11-staticUpgrade edk2-aarch64 | May 20, 2026 | May 20, 2026 |
| Amazon_linux_2023 | — | Upgrade aws-cfn-bootstrapUpgrade openssl-libs-debuginfoUpgrade openssl-fips-provider-latestUpgrade opensslUpgrade openssl-snapsafe-libsUpgrade openssl-debuginfoUpgrade openssl-snapsafe-libs-debuginfoUpgrade openssl-debugsourceUpgrade openssl-develUpgrade openssl-libsUpgrade openssl-perlUpgrade openssl-fips-provider-latest-debuginfo | Feb 20, 2026 | Jan 27, 2026 |
| Debian | — | Upgrade openssl | Jan 29, 2026 | Jan 29, 2026 |
| Dell Idrac | — | Upgrade Dell iDRAC to the latest version | Apr 29, 2026 | Apr 28, 2026 |
| Freebsd | — | Upgrade opensslUpgrade openssl36Upgrade openssl33Upgrade openssl35Upgrade FreeBSDUpgrade openssl34 | Jan 28, 2026 | Jan 27, 2026 |
| Http Openssl | — | Upgrade to the latest version of OpenSSL | Mar 5, 2026 | Jan 27, 2026 |
| Ibm Aix | — | Apply the fix or workaround for openssl_advisory46 | Mar 10, 2026 | Mar 9, 2026 |
| Nutanix Ahv | — | Upgrade Nutanix AHV to the latest version | Jun 5, 2026 | May 12, 2026 |
| Oracle_linux | — | Upgrade opensslUpgrade compat-openssl11Upgrade openssl-libsUpgrade openssl-perlUpgrade openssl-develUpgrade openssl-static | Jan 30, 2026 | Jan 27, 2026 |
| Redhat Openshift | — | Upgrade rhcos | Aug 10, 2026 | Jan 27, 2026 |
| Redhat_linux | — | Upgrade openssl-debuginfoUpgrade openssl-debugsourceUpgrade compat-openssl11-debuginfoUpgrade openssl-develUpgrade openssl-libs-debuginfoUpgrade openssl-perlNo solution existsUpgrade compat-openssl11Upgrade opensslUpgrade compat-openssl11-debugsourceUpgrade openssl-libs | Jan 29, 2026 | Jan 27, 2026 |
| Rocky_linux | — | Upgrade opensslUpgrade openssl-perlUpgrade openssl-libs-debuginfoUpgrade openssl-libsUpgrade compat-openssl11-debuginfoUpgrade compat-openssl11Upgrade openssl-debugsourceUpgrade openssl-develUpgrade compat-openssl11-debugsourceUpgrade openssl-debuginfo | Feb 2, 2026 | Jan 30, 2026 |
| Ubuntu | — | Upgrade libssl1.1 (Ubuntu Pro)Upgrade libssl3Upgrade libssl3t64Upgrade openssl1.0 (Ubuntu Pro)Upgrade openssl (Ubuntu Pro)Upgrade libssl1.0.0 (Ubuntu Pro)Upgrade openssl | Jan 28, 2026 | Jan 27, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | Jan 27, 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