CVE-2025-69419
Description
Issue summary: Calling PKCS12_get_friendlyname() function on a maliciouslycrafted PKCS#12 file with a BMPString (UTF-16BE) friendly name containingnon-ASCII BMP code point can trigger a one byte write before the allocatedbuffer.Impact summary: The out-of-bounds write can cause a memory corruptionwhich can have various consequences including a Denial of Service.The OPENSSL_uni2utf8() function performs a two-pass conversion of a PKCS#12BMPString (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-16source byte count as the destination buffer capacity to UTF8_putc(). For BMPcode points above U+07FF, UTF-8 requires three bytes, but the forwardedcapacity can be just two bytes. UTF8_putc() then returns -1, and this negativevalue is added to the output length without validation, causing thelength to become negative. The subsequent trailing NUL byte is then writtenat a negative offset, causing write outside of heap allocated buffer.The vulnerability is reachable via the public PKCS12_get_friendlyname() APIwhen parsing attacker-controlled PKCS#12 files. While PKCS12_parse() uses adifferent code path that avoids this issue, PKCS12_get_friendlyname() directlyinvokes the vulnerable function. Exploitation requires an attacker to providea malicious PKCS#12 file to be parsed by the application and the attackercan just trigger a one zero byte write before the allocated buffer.For that reason the issue was assessed as Low severity according to ourSecurity 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.
Risk Information
Associated Vulnerability
| Vulnerability | OS Platform |
|---|---|
| Multiple Vulnerabilities are affected in IBM MQ 9.3.5.1 | Windows |
| Multiple Vulnerabilities are affected in OpenSSL 3.4.3 | Windows |
| Multiple Vulnerabilities are affected in OpenSSL 3.5.4 | Windows |
| Multiple Vulnerabilities are affected in OpenSSL 3.6.0 | Windows |
| Multiple Vulnerabilities are affected in OpenSSL 3.0.18 | Windows |
| Multiple Vulnerabilities are affected in OpenSSL 3.3.5 | Windows |
| Multiple Vulnerabilities are affected in OpenSSL 1.1.1ze | Windows |
| Multiple vulnerabilities are fixed in OpenSSL (3.6.1) | Windows |
| Multiple vulnerabilities are fixed in OpenSSL (x64) (3.6.1) | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Light (3.6.1) | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Light (x64) (3.6.1) | Windows |
| Multiple vulnerabilities are fixed in OpenSSL 3.5.5 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL 3.4.4 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL 3.3.6 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL 3.0.19 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL (MSI)(x64) 3.6.1 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL (MSI)(x64) 3.5.5 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL (MSI)(x64) 3.4.4 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL (MSI)(x64) 3.3.6 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL (MSI)(x64) 3.0.19 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL (MSI)(x86) 3.6.1 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL (MSI)(x86) 3.5.5 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL (MSI)(x86) 3.4.4 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL (MSI)(x86) 3.3.6 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL (MSI)(x86) 3.0.19 | Windows |
| Multiple Vulnerabilities are affected in IBM MQ 9.1.0.33 | Windows |
| Multiple Vulnerabilities are affected in IBM MQ 9.2.0.40 | Windows |
| Multiple Vulnerabilities are affected in IBM MQ 9.3.0.36 | Windows |
| Multiple Vulnerabilities are affected in IBM MQ 9.4.0.17 | Windows |
| Multiple Vulnerabilities are affected in IBM MQ 9.4.5.0 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Light 3.5.5 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Light 3.4.4 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Light 3.3.6 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Light 3.0.19 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Light (x64) 3.5.5 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Light (x64) 3.4.4 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Light (x64) 3.3.6 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Light (x64) 3.0.19 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Library 3.6.1 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Library 3.5.5 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Library 3.4.4 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Library 3.3.6 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Library 3.0.19 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Library x86 3.6.1 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Library x86 3.5.5 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Library x86 3.4.4 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Library x86 3.3.6 | Windows |
| Multiple vulnerabilities are fixed in OpenSSL Library x86 3.0.19 | Windows |
Patch Details
Click to see the patches provided by ManageEngine for this CVE
| Patch ID | Patch Description |
|---|---|
| PATCH-355449 | OpenSSL (3.6.1) |
| PATCH-355449 | OpenSSL (3.6.1) |
| PATCH-355449 | OpenSSL (3.6.1) |
| PATCH-355449 | OpenSSL (3.6.1) |
| PATCH-355449 | OpenSSL (3.6.1) |
| PATCH-355449 | OpenSSL (3.6.1) |
| PATCH-355449 | OpenSSL (3.6.1) |
| PATCH-355450 | OpenSSL (x64) (3.6.1) |
| PATCH-355451 | OpenSSL Light (3.6.1) |
| PATCH-355452 | OpenSSL Light (x64) (3.6.1) |
| PATCH-355449 | OpenSSL (3.6.1) |
| PATCH-355449 | OpenSSL (3.6.1) |
| PATCH-355449 | OpenSSL (3.6.1) |
| PATCH-355449 | OpenSSL (3.6.1) |
| PATCH-355451 | OpenSSL Light (3.6.1) |
| PATCH-355451 | OpenSSL Light (3.6.1) |
| PATCH-355451 | OpenSSL Light (3.6.1) |
| PATCH-355451 | OpenSSL Light (3.6.1) |
| PATCH-355452 | OpenSSL Light (x64) (3.6.1) |
| PATCH-355452 | OpenSSL Light (x64) (3.6.1) |
| PATCH-355452 | OpenSSL Light (x64) (3.6.1) |
| PATCH-355452 | OpenSSL Light (x64) (3.6.1) |
References
https://nvd.nist.gov/vuln/detail/CVE-2023-1234
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1234