CVE-2026-31789
Fixed in a distro release EPSS <1%CVSS 5.8
Issue summary: Converting an excessively large OCTET STRING value to a hexadecimal string leads to a heap buffer overflow on 32 bit platforms. Impact summary: A heap buffer overflow may lead to a crash or possibly an attacker controlled code execution or other undefined behavior. If an attacker can supply a crafted X.509 certificate with an excessively large OCTET STRING value in extensions such as the Subject Key Identifier (SKID) or Authority Key Identifier (AKID) which are being converted to hex, the size of the buffer needed for the result is calculated as multiplication of the input length by 3. On 32 bit platforms, this multiplication may overflow resulting in the allocation of a smaller buffer and a heap buffer overflow. Applications and services that print or log contents of untrusted X.509 certificates are vulnerable to this issue. As the certificates would have to have sizes of over 1 Gigabyte, printing or logging such certificates is a fairly unlikely operation and only 32 bit platforms are affected, this issue was assigned Low severity. The FIPS modules in 3.6, 3.5, 3.4, 3.3 and 3.0 are not affected by this issue, as the affected code is outside the OpenSSL FIPS module boundary.
Products: OpenSSL, Siemens SIMATIC CN 4100
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Alpine 3.20 | openssl | 3.3.7-r0 |
| Alpine 3.21 | openssl | 3.3.7-r0 |
| Alpine 3.22 | openssl | 3.5.6-r0 |
| Alpine 3.23 | openssl | 3.5.6-r0 |
| Alpine 3.24 | openssl | 3.5.6-r0 |
| Chainguard | libcrypto3 | 3.6.2-r0 |
| Chainguard | libcrypto3-2.34 | 3.6.2-r0 |
| Chainguard | openssl | 3.6.2-r0 |
| Chainguard | openssl-provider-fips-3.4.0 | 0 |
| Chainguard | openssl-provider-fips-3.4.0-dbg | 0 |
| Chainguard | openssl-provider-fips-3.6.0 | 0 |
| Chainguard | openssl-provider-fips-3.6.0-dbg | 0 |
| Debian 12 | openssl | 3.0.19-1~deb12u2 |
| Debian 13 | openssl | 3.5.5-1~deb13u2 |
| Debian 14 | openssl | 3.6.2-1 |
| Red Hat hummingbird 1 | openssl | 0:3.5.6-0.1.hum1 |
| Red Hat hummingbird 1 | openssl-config-fips | 0:3.5.6-0.1.hum1 |
| Red Hat hummingbird 1 | openssl-devel | 0:3.5.6-0.1.hum1 |
| Red Hat hummingbird 1 | openssl-devel-engine | 0:3.5.6-0.1.hum1 |
| Red Hat hummingbird 1 | openssl-libs | 0:3.5.6-0.1.hum1 |
| Red Hat hummingbird 1 | openssl-perl | 0:3.5.6-0.1.hum1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | openssl-1_0_0 | 1.0.2p-150000.3.105.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | openssl-1_1 | 1.1.1l-150400.7.90.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | openssl-3 | 3.0.8-150400.4.81.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | openssl-1_0_0 | 1.0.2p-150000.3.105.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | openssl-1_1 | 1.1.1l-150400.7.90.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | openssl-3 | 3.0.8-150400.4.81.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | openssl-1_1 | 1.1.1l-150500.17.51.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | openssl-3 | 3.0.8-150500.5.60.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | openssl-1_1 | 1.1.1l-150500.17.51.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | openssl-3 | 3.0.8-150500.5.60.1 |
| SUSE Linux Enterprise Micro 5.2 | openssl-1_1 | 1.1.1d-150200.11.109.1 |
| SUSE Linux Enterprise Micro 5.3 | openssl-1_1 | 1.1.1l-150400.7.90.1 |
| SUSE Linux Enterprise Micro 5.3 | openssl-3 | 3.0.8-150400.4.81.1 |
| SUSE Linux Enterprise Micro 5.4 | openssl-1_1 | 1.1.1l-150400.7.90.1 |
| SUSE Linux Enterprise Micro 5.4 | openssl-3 | 3.0.8-150400.4.81.1 |
| SUSE Linux Enterprise Micro 5.5 | openssl-1_1 | 1.1.1l-150500.17.51.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | openssl-1_1 | 1.1.1w-150700.11.16.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | openssl-3 | 3.2.3-150700.5.31.1 |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | openssl-1_1 | 1.1.1w-150700.11.16.1 |
| SUSE Linux Enterprise Module for Legacy 15 SP7 | openssl-1_0_0 | 1.0.2p-150000.3.105.1 |
| SUSE Linux Enterprise Module for Legacy 15 SP7 | openssl-1_1 | 1.1.1w-150700.11.16.1 |
| SUSE Linux Enterprise Server 12 SP5-LTSS | openssl-1_0_0 | 1.0.2p-3.106.1 |
| SUSE Linux Enterprise Server 12 SP5-LTSS | openssl-1_1 | 1.1.1d-2.125.1 |
| SUSE Linux Enterprise Server 15 SP4-LTSS | openssl-1_0_0 | 1.0.2p-150000.3.105.1 |
| SUSE Linux Enterprise Server 15 SP4-LTSS | openssl-1_1 | 1.1.1l-150400.7.90.1 |
| SUSE Linux Enterprise Server 15 SP4-LTSS | openssl-3 | 3.0.8-150400.4.81.1 |
| SUSE Linux Enterprise Server 15 SP5-LTSS | openssl-1_0_0 | 1.0.2p-150000.3.105.1 |
| SUSE Linux Enterprise Server 15 SP5-LTSS | openssl-1_1 | 1.1.1l-150500.17.51.1 |
| SUSE Linux Enterprise Server 15 SP5-LTSS | openssl-3 | 3.0.8-150500.5.60.1 |
| SUSE Linux Enterprise Server 15 SP6-LTSS | openssl-1_0_0 | 1.0.2p-150000.3.105.1 |
| SUSE Linux Enterprise Server 15 SP6-LTSS | openssl-1_1 | 1.1.1w-150600.5.26.2 |
| SUSE Linux Enterprise Server 15 SP6-LTSS | openssl-3 | 3.1.4-150600.5.45.1 |
| SUSE Linux Enterprise Server 16.0 | openssl-3 | 3.5.0-160000.7.1 |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | openssl-1_0_0 | 1.0.2p-3.106.1 |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | openssl-1_1 | 1.1.1d-2.125.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | openssl-1_0_0 | 1.0.2p-150000.3.105.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | openssl-1_1 | 1.1.1l-150400.7.90.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | openssl-3 | 3.0.8-150400.4.81.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | openssl-1_0_0 | 1.0.2p-150000.3.105.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | openssl-1_1 | 1.1.1l-150500.17.51.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | openssl-3 | 3.0.8-150500.5.60.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | openssl-1_0_0 | 1.0.2p-150000.3.105.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | openssl-1_1 | 1.1.1w-150600.5.26.2 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | openssl-3 | 3.1.4-150600.5.45.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | openssl-3 | 3.5.0-160000.7.1 |
| SUSE Linux Micro 6.0 | openssl-3 | 3.1.4-12.1 |
| SUSE Linux Micro 6.1 | openssl-3 | 3.1.4-slfo.1.1_9.1 |
| SUSE Linux Micro 6.2 | openssl-3 | 3.5.0-160000.7.1 |
| Ubuntu 22.04 LTS | openssl | 3.0.2-0ubuntu1.23 |
| Ubuntu 24.04 LTS | edk2 | no fix |
| Ubuntu 24.04 LTS | openssl | 3.0.13-0ubuntu3.9 |
| Ubuntu 25.10 | edk2 | no fix |
| Ubuntu 25.10 | openssl | 3.5.3-1ubuntu3.3 |
| Ubuntu 26.04 LTS | edk2 | no fix |
| Ubuntu 26.04 LTS | edk2-hwe | no fix |
| Ubuntu 26.04 LTS | openssl | 3.5.5-1ubuntu3 |
| Ubuntu 26.10 | edk2 | no fix |
| Ubuntu 26.10 | edk2-hwe | no fix |
| Ubuntu 26.10 | openssl | 3.5.5-1ubuntu3 |
| Ubuntu Pro FIPS-preview 22.04 LTS | openssl | no fix |
| Ubuntu Pro FIPS-preview 22.04 LTS | openssl-fips | no fix |
| Ubuntu Pro FIPS-updates 22.04 LTS | openssl | no fix |
| Ubuntu Pro FIPS-updates 22.04 LTS | openssl-fips | no fix |
| Ubuntu Pro FIPS-updates 24.04 LTS | openssl-fips | 3.0.13-0ubuntu3.12+Fips1 |
| Wolfi | libcrypto3 | 3.6.2-r0 |
| Wolfi | openssl | 3.6.2-r0 |
| openSUSE Leap 15.6 | openssl-1_0_0 | 1.0.2p-150000.3.105.1 |
| openSUSE Leap 15.6 | openssl-3 | 3.1.4-150600.5.45.1 |
| openSUSE Leap 16.0 | openssl-3 | 3.5.0-160000.7.1 |
| openSUSE Tumbleweed | openssl-3 | 3.5.3-4.1 |