CVE-2025-69419 Out of bounds write in PKCS12_get_friendlyname() UTF-8 conversion
Attackers can cause denial of service via out-of-bounds write in OpenSSL when parsing malicious PKCS#12 files with specific UTF-16 strings.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-69419?
CVE-2025-69419 is a high-severity memory corruption vulnerability in Openssl Openssl, published on 27 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-787
Which versions are affected by CVE-2025-69419?
It affects 1 product.
Linux distribution packages (40)
openssl AlmaLinux:8 | All versions | 1:1.1.1k-15.el8_6 |
openssl-devel AlmaLinux:8 | All versions | 1:1.1.1k-15.el8_6 |
openssl-libs AlmaLinux:8 | All versions | 1:1.1.1k-15.el8_6 |
openssl-perl AlmaLinux:8 | All versions | 1:1.1.1k-15.el8_6 |
compat-openssl11 AlmaLinux:9 | All versions | 1:1.1.1k-5.el9_7.1 |
compat-openssl11 AlmaLinux:9 | All versions | 1:1.1.1k-5.el9_8.2 |
openssl Red Hat:enterprise_linux:8::baseos | All versions | 1:1.1.1k-15.el8_6 |
openssl-devel Red Hat:enterprise_linux:8::baseos | All versions | 1:1.1.1k-15.el8_6 |
openssl-libs Red Hat:enterprise_linux:8::baseos | All versions | 1:1.1.1k-15.el8_6 |
openssl-libs-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 1:1.1.1k-15.el8_6 |
openssl-perl Red Hat:enterprise_linux:8::baseos | All versions | 1:1.1.1k-15.el8_6 |
compat-openssl11 Red Hat:enterprise_linux:9::appstream | All versions | 1:1.1.1k-5.el9_7.1 |
compat-openssl11 Red Hat:enterprise_linux:9::appstream | All versions | 1:1.1.1k-5.el9_8.2 |
compat-openssl11-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 1:1.1.1k-5.el9_7.1 |
compat-openssl11-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 1:1.1.1k-5.el9_8.2 |
compat-openssl11-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 1:1.1.1k-5.el9_7.1 |
compat-openssl11-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 1:1.1.1k-5.el9_8.2 |
openssl Red Hat:rhel_aus:8.2::baseos | All versions | 1:1.1.1c-21.el8_2.2 |
openssl-debuginfo Red Hat:rhel_aus:8.2::baseos | All versions | 1:1.1.1c-21.el8_2.2 |
openssl-debugsource Red Hat:rhel_aus:8.2::baseos | All versions | 1:1.1.1c-21.el8_2.2 |
openssl-devel Red Hat:rhel_aus:8.2::baseos | All versions | 1:1.1.1c-21.el8_2.2 |
openssl-libs Red Hat:rhel_aus:8.2::baseos | All versions | 1:1.1.1c-21.el8_2.2 |
openssl-libs-debuginfo Red Hat:rhel_aus:8.2::baseos | All versions | 1:1.1.1c-21.el8_2.2 |
openssl-perl Red Hat:rhel_aus:8.2::baseos | All versions | 1:1.1.1c-21.el8_2.2 |
openssl Red Hat:rhel_aus:8.4::baseos | All versions | 1:1.1.1g-18.el8_4.2 |
openssl-debuginfo Red Hat:rhel_aus:8.4::baseos | All versions | 1:1.1.1g-18.el8_4.2 |
openssl-debugsource Red Hat:rhel_aus:8.4::baseos | All versions | 1:1.1.1g-18.el8_4.2 |
openssl-devel Red Hat:rhel_aus:8.4::baseos | All versions | 1:1.1.1g-18.el8_4.2 |
openssl-libs Red Hat:rhel_aus:8.4::baseos | All versions | 1:1.1.1g-18.el8_4.2 |
openssl-libs-debuginfo Red Hat:rhel_aus:8.4::baseos | All versions | 1:1.1.1g-18.el8_4.2 |
openssl-perl Red Hat:rhel_aus:8.4::baseos | All versions | 1:1.1.1g-18.el8_4.2 |
openssl Red Hat:rhel_aus:8.6::baseos | All versions | 1:1.1.1k-15.el8_6 |
openssl-devel Red Hat:rhel_aus:8.6::baseos | All versions | 1:1.1.1k-15.el8_6 |
openssl-libs Red Hat:rhel_aus:8.6::baseos | All versions | 1:1.1.1k-15.el8_6 |
openssl-libs-debuginfo Red Hat:rhel_aus:8.6::baseos | All versions | 1:1.1.1k-15.el8_6 |
openssl-perl Red Hat:rhel_aus:8.6::baseos | All versions | 1:1.1.1k-15.el8_6 |
openssl Red Hat:rhel_e4s:8.6::baseos | All versions | 1:1.1.1k-15.el8_6 |
openssl-devel Red Hat:rhel_e4s:8.6::baseos | All versions | 1:1.1.1k-15.el8_6 |
openssl-libs Red Hat:rhel_e4s:8.6::baseos | All versions | 1:1.1.1k-15.el8_6 |
openssl-libs-debuginfo Red Hat:rhel_e4s:8.6::baseos | All versions | 1:1.1.1k-15.el8_6 |
Products include Openssl Openssl.
How do I fix CVE-2025-69419?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-69419 being exploited?
There is no known exploitation of CVE-2025-69419 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Openssl Openssl
Sources
Also known as ALPINE-CVE-2025-69419, ALSA-2026:19187, ALSA-2026:3042, ALSA-2026:4472, AZL-75290, AZL-75786 and 41 more.