You can now sign in with a passkey, no password needed, or protect your account with a second factor. Learn more
OpenSSL: Possible Heap Buffer Overflow in ASN.1 Multibyte String Conversion
Download as CSAF file (VEX, JSON)Machine-readable version of this assessment in the OASIS CSAF 2.0 standard, for example for your vulnerability scanner. You may pass the file on.
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.
The newest version of each supported line. Older versions are under “All versions”.
| Version | Status | Fixed from |
|---|---|---|
| EventReporter 26.11Current | Fixed | 26.10 |
| EventReporter 19.4aExtended maintenance | Fixed | 19.4a |
| MonitorWare Agent 26.11Current | Fixed | 26.10 |
| MonitorWare Agent 15.4aExtended maintenance | Fixed | 15.4a |
| rsyslog Windows Agent 26.11Current | Fixed | 26.10 |
| rsyslog Windows Agent 8.4aExtended maintenance | Fixed | 8.4a |
| WinSyslog 26.11 |
Fixed from 26.10
Fixed by OpenSSL 3.5.6 → 3.5.9
26.07 to 26.09 ship OpenSSL 3.5.6; fixed from 26.10, which ships OpenSSL 3.5.9.
Fixed from 19.4a
Fixed by OpenSSL 3.2.1 → 3.5.9
Releases before 19.4a ship OpenSSL 3.2.1, which is affected; fixed from 19.4a, which ships OpenSSL 3.5.9. OpenSSL no longer assesses 3.2 (end of life), but lists the older 3.0 or 1.1.1 and the newer 3.5 as affected.
Releases before 18.3 ship OpenSSL 1.1.1g, 18.3 and later ship OpenSSL 1.1.1q; both are affected. Line 18 is end of life; please update to a supported version (19.4a or 26.11).
| Fixed |
| 26.10 |
| WinSyslog 18.4aExtended maintenance | Fixed | 18.4a |
|---|
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 18.3, 1.1.1q from 18.3
Releases before 17.2 ship OpenSSL 1.0.2k, 17.2 and later ship OpenSSL 1.0.2u; both are affected. Line 17 is end of life; please update to a supported version (19.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 17.2, 1.0.2u from 17.2
Fixed from 26.10
Fixed by OpenSSL 3.5.6 → 3.5.9
26.07 to 26.09 ship OpenSSL 3.5.6; fixed from 26.10, which ships OpenSSL 3.5.9.
Fixed from 15.4a
Fixed by OpenSSL 3.2.1 → 3.5.9
Releases before 15.4a ship OpenSSL 3.2.1, which is affected; fixed from 15.4a, which ships OpenSSL 3.5.9. OpenSSL no longer assesses 3.2 (end of life), but lists the older 3.0 or 1.1.1 and the newer 3.5 as affected.
Releases before 14.3 ship OpenSSL 1.1.1g, 14.3 and later ship OpenSSL 1.1.1q; both are affected. Line 14 is end of life; please update to a supported version (15.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 14.3, 1.1.1q from 14.3
Releases before 13.2 ship OpenSSL 1.0.2k, 13.2 and later ship OpenSSL 1.0.2u; both are affected. Line 13 is end of life; please update to a supported version (15.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 13.2, 1.0.2u from 13.2
Fixed from 26.10
Fixed by OpenSSL 3.5.6 → 3.5.9
26.07 to 26.09 ship OpenSSL 3.5.6; fixed from 26.10, which ships OpenSSL 3.5.9.
Fixed from 8.4a
Fixed by OpenSSL 3.2.1 → 3.5.9
Releases before 8.4a ship OpenSSL 3.2.1, which is affected; fixed from 8.4a, which ships OpenSSL 3.5.9. OpenSSL no longer assesses 3.2 (end of life), but lists the older 3.0 or 1.1.1 and the newer 3.5 as affected.
Releases before 7.3 ship OpenSSL 1.1.1g, 7.3 and later ship OpenSSL 1.1.1q; both are affected. Line 7 is end of life; please update to a supported version (8.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 7.3, 1.1.1q from 7.3
Releases before 6.2 ship OpenSSL 1.0.2k, 6.2 and later ship OpenSSL 1.0.2u; both are affected. Line 6 is end of life; please update to a supported version (8.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 6.2, 1.0.2u from 6.2
Fixed from 26.10
Fixed by OpenSSL 3.5.6 → 3.5.9
26.07 to 26.09 ship OpenSSL 3.5.6; fixed from 26.10, which ships OpenSSL 3.5.9.
Fixed from 18.4a
Fixed by OpenSSL 1.0.2e, 3.2.1 → 1.0.2e, 3.5.9
Releases before 18.4a ship OpenSSL 3.2.1, which is affected; fixed from 18.4a, which ships OpenSSL 3.5.9. OpenSSL no longer assesses 3.2 (end of life), but lists the older 3.0 or 1.1.1 and the newer 3.5 as affected.
Releases before 17.3 ship OpenSSL 1.1.1g, 17.3 and later ship OpenSSL 1.1.1q; both are affected. Line 17 is end of life; please update to a supported version (18.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 17.3, 1.1.1q from 17.3
Releases before 16.2 ship OpenSSL 1.0.2k, 16.2 and later ship OpenSSL 1.0.2u; both are affected. Line 16 is end of life; please update to a supported version (18.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 16.2, 1.0.2u from 16.2
Products and versions not listed here have not been checked.