CVE-2025-69419: Out of bounds write in PKCS12_get_friendlyname() UTF-8 conversion

Published Jan 16, 2026
·
Updated

Issue summary: Calling PKCS12getfriendlyname() 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 OPENSSLuni2utf8() 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 bmptoutf8() incorrectly forwards the remaining UTF-16 source byte count as the destination buffer capacity to UTF8putc(). For BMP code points above U+07FF, UTF-8 requires three bytes, but the forwarded capacity can be just two bytes. UTF8putc() 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 PKCS12getfriendlyname() API when parsing attacker-controlled PKCS#12 files. While PKCS12parse() uses a different code path that avoids this issue, PKCS12getfriendlyname() 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.

Other sources

Out of bounds write in PKCS12getfriendlyname() UTF-8 conversion

— Microsoft

The out-of-bounds write can cause a memory corruption which can have various consequences including a Denial of Service or Execution of attacker-supplied code.

The OPENSSLuni2utf8() 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 bmptoutf8() incorrectly forwards the remaining UTF-16 source byte count as the destination buffer capacity to UTF8putc(). For BMP code points above U+07FF, UTF-8 requires three bytes, but the forwarded capacity can be just two bytes. UTF8putc() 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 PKCS12getfriendlyname() API when parsing attacker-controlled PKCS#12 files. While PKCS12parse() uses a different code path that avoids this issue, PKCS12getfriendlyname() directly invokes the vulnerable function. Exploitation requires an attacker to provide a malicious PKCS#12 file to be parsed by the application. For that reason the issue was assessed as Moderate 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.

OpenSSL 3.6 users should upgrade to OpenSSL 3.6.1.

OpenSSL 3.5 users should upgrade to OpenSSL 3.5.5.

OpenSSL 3.4 users should upgrade to OpenSSL 3.4.4.

OpenSSL 3.3 users should upgrade to OpenSSL 3.3.6.

OpenSSL 3.0 users should upgrade to OpenSSL 3.0.19.

OpenSSL 1.1.1 users should upgrade to OpenSSL 1.1.1ze (premium support customers only).

— Red Hat

Affected Software

43 affected componentsFixes available
OpenSSL OpenSSL>=1.1.1<=1.1.1, >=3.0<=3.0, >=3.3<=3.3, >=3.4<=3.4, >=3.5<=3.5, >=3.6<=3.6
OpenSSL OpenSSL>=1.1.1<1.1.1ze
OpenSSL OpenSSL>=3.0.0<3.0.19
OpenSSL OpenSSL>=3.3.0<3.3.6
OpenSSL OpenSSL>=3.4.0<3.4.4
OpenSSL OpenSSL>=3.5.0<3.5.5
OpenSSL OpenSSL>=3.6.0<3.6.1
IBM Netezza Software<=11.3.0.3-IF2
alpine/openssl>=3.0.0<3.0.19-r0
3.0.19-r0
alpine/openssl>=3.3.0<3.3.6-r0
3.3.6-r0
alpine/openssl>=3.3.0<3.3.6-r0
3.3.6-r0
alpine/openssl>=3.5.0<3.5.5-r0
3.5.5-r0
alpine/openssl>=3.5.0<3.5.5-r0
3.5.5-r0
alpine/openssl>=3.5.0<3.5.5-r0
3.5.5-r0
debian/openssl
1.1.1w-0+deb11u53.0.18-1~deb12u23.5.4-1~deb13u23.5.5-1
ubuntu/edk2*
ubuntu/nodejs*
ubuntu/openssl<1.1.1-1ubuntu2.1~18.04.23+esm7
1.1.1-1ubuntu2.1~18.04.23+esm7
ubuntu/edk2*
ubuntu/nodejs*
ubuntu/openssl<1.1.1-1ubuntu2.fips.2.1~18.04.23.7
1.1.1-1ubuntu2.fips.2.1~18.04.23.7
ubuntu/openssl*
ubuntu/edk2*
ubuntu/openssl<1.1.1f-1ubuntu2.24+esm2
1.1.1f-1ubuntu2.24+esm2
ubuntu/openssl<1.1.1f-1ubuntu2.fips.24.2
1.1.1f-1ubuntu2.fips.24.2
ubuntu/openssl*
ubuntu/edk2*
ubuntu/openssl<3.0.2-0ubuntu1.21
3.0.2-0ubuntu1.21
ubuntu/nodejs*
ubuntu/openssl*
ubuntu/openssl-fips*
ubuntu/openssl<3.0.2-0ubuntu1.21+Fips1
3.0.2-0ubuntu1.21+Fips1
ubuntu/openssl-fips*
ubuntu/edk2*
ubuntu/openssl<3.0.13-0ubuntu3.7
3.0.13-0ubuntu3.7
ubuntu/openssl-fips<3.0.13-0ubuntu3.12+Fips1
3.0.13-0ubuntu3.12+Fips1
ubuntu/edk2*
ubuntu/openssl<3.5.3-1ubuntu3
3.5.3-1ubuntu3
ubuntu/edk2*
ubuntu/edk2-hwe*
ubuntu/edk2*
ubuntu/edk2-hwe*
ubuntu/openssl<3.5.5-1ubuntu1
3.5.5-1ubuntu1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.19-r0
  2. Upgrade

    Upgrade alpine/openssl to a version that resolves this vulnerability.

    Fixed in 3.3.6-r0
  3. Upgrade

    Upgrade alpine/openssl to a version that resolves this vulnerability.

    Fixed in 3.5.5-r0
  4. Upgrade

    Upgrade debian/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1w-0+deb11u5Fixed in 3.0.18-1~deb12u2Fixed in 3.5.4-1~deb13u2Fixed in 3.5.5-1
  5. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1-1ubuntu2.1~18.04.23+esm7
  6. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1-1ubuntu2.fips.2.1~18.04.23.7
  7. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1f-1ubuntu2.24+esm2
  8. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1f-1ubuntu2.fips.24.2
  9. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.2-0ubuntu1.21
  10. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.2-0ubuntu1.21+Fips1
  11. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.13-0ubuntu3.7
  12. Upgrade

    Upgrade ubuntu/openssl-fips to a version that resolves this vulnerability.

    Fixed in 3.0.13-0ubuntu3.12+Fips1
  13. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.5.3-1ubuntu3
  14. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.5.5-1ubuntu1
  15. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 1.1.1ze
  16. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.0.19
  17. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.3.6
  18. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.4.4
  19. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.5.5
  20. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.6.1

Event History

Jan 16, 2026
Data Sourced
via Red Hat·02:38 PM
DescriptionSeverityAffected Software
Jan 27, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·04:01 PM
Data Sourced
via MITRE·04:01 PM
DescriptionWeakness
Data Sourced
via NVD·04:16 PM
DescriptionWeakness
Jan 29, 2026
Data Sourced
via NVD·04:31 PM
Severity
Event
via NVD·04:31 PM
Feb 2, 2026
Data Sourced
via NVD·06:35 PM
RemedyAffected Software
Jul 7, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Updated
via IBM·12:00 AM
Affected Software
Jul 8, 2026
Updated
via IBM·12:00 AM
Affected Software
Jul 22, 2026
Exploit Published
via GitHub·07:00 AM
Aug 19, 2026
Updated
via IBM·12:00 AM
Affected Software
Aug 20, 2026
Updated
via IBM·12:00 AM
Affected Software
Oct 11, 2026
Data Sourced
via Microsoft·08:08 AM
DescriptionSeverityWeakness
Nov 11, 2026
Data Sourced
via OSV·10:47 AM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-69419?

CVE-2025-69419 is considered to have a critical severity due to its potential for causing arbitrary memory writes.

2

How do I fix CVE-2025-69419?

To fix CVE-2025-69419, update OpenSSL to a version that is not vulnerable, specifically beyond the affected versions listed.

3

Which versions of OpenSSL are affected by CVE-2025-69419?

CVE-2025-69419 affects OpenSSL versions 1.1.1, 3.0, 3.3, 3.4, 3.5, and 3.6.

4

What is the cause of the CVE-2025-69419 vulnerability?

CVE-2025-69419 is caused by an out-of-bounds write due to improper handling of BMPString in UTF-16BE during the PKCS12_get_friendlyname() function.

5

What is the potential impact of CVE-2025-69419 on systems?

The potential impact of CVE-2025-69419 includes the possibility of memory corruption, which can lead to application crashes or code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203