CVE-2026-31789
openssl: OpenSSL: Heap buffer overflow on 32-bit systems from large X.509 certificate processing
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Julia, Photon OS. Rated lower by Azure Linux (medium), Red Hat (low), Ubuntu (low).
Description
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| julia::Julia Ecosystem Security Advisories | AppBundler, OpenSSL_jll, Openresty_jll | 1.0.1 and 1 more |
| Photon OS 4.0 | openssl, openssl-c_rehash, openssl-devel and 2 more | 3.0.18-3.ph4 |
| Photon OS 5.0 | openssl, openssl-c_rehash, openssl-devel and 3 more | 3.0.18-3.ph5 |
| 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 |
| alpine edge | openssl | 3.5.6-r0 |
| Azure Linux 3.0 | openssl | 0:3.3.5-5.azl3 |
| chainguard | libcrypto3-2.34, openssl, openssl-provider-fips-3.4.0 and 1 more | 3.6.2-r0 and 1 more |
| debian 12 | openssl | 3.0.19-1~deb12u2 |
Show all 203 entries from 59 sources
| Source | Package | Fixed in |
|---|---|---|
| julia::Julia Ecosystem Security Advisories | AppBundler | 1.0.1 |
| julia::Julia Ecosystem Security Advisories | OpenSSL_jll | 3.0.20+0, 3.5.6+0 |
| julia::Julia Ecosystem Security Advisories | Openresty_jll | no fix listed |
| Photon OS 4.0 | openssl | 3.0.18-3.ph4 |
| Photon OS 4.0 | openssl-c_rehash | 3.0.18-3.ph4 |
| Photon OS 4.0 | openssl-devel | 3.0.18-3.ph4 |
| Photon OS 4.0 | openssl-docs | 3.0.18-3.ph4 |
| Photon OS 4.0 | openssl-perl | 3.0.18-3.ph4 |
| Photon OS 5.0 | openssl | 3.0.18-3.ph5 |
| Photon OS 5.0 | openssl-c_rehash | 3.0.18-3.ph5 |
| Photon OS 5.0 | openssl-devel | 3.0.18-3.ph5 |
| Photon OS 5.0 | openssl-docs | 3.0.18-3.ph5 |
| Photon OS 5.0 | openssl-libs | 3.0.18-3.ph5 |
| Photon OS 5.0 | openssl-perl | 3.0.18-3.ph5 |
| 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 |
| alpine edge | openssl | 3.5.6-r0 |
| Azure Linux 3.0 | openssl | 0:3.3.5-5.azl3 |
| 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.6.0 | 0 |
| debian 12 | openssl | 3.0.19-1~deb12u2 |
| debian 13 | openssl | 3.5.5-1~deb13u2 |
| debian 14 | openssl | 3.6.2-1 |
| echo | openssl | 3.0.19-1~deb12u2 |
| minimos | openssl | 3.5.6-r0 |
| minimos | openssl-3.0 | 3.0.20-r0 |
| rapidfort alma | rf-openssl | 1:3.5.6-11.rf |
| rapidfort alma | rf-openssl-devel | 1:3.5.6-11.rf |
| rapidfort alma | rf-openssl-libs | 1:3.5.6-11.rf |
| rapidfort alma | rf-openssl-perl | 1:3.5.6-11.rf |
| rapidfort alma 10 | edk2-aarch64 | no fix listed |
| rapidfort alma 10 | edk2-ovmf | no fix listed |
| rapidfort alma 10 | edk2-tools | no fix listed |
| rapidfort alma 10 | edk2-tools-doc | no fix listed |
| rapidfort alma 10 | mokutil | no fix listed |
| rapidfort alma 10 | openssl | no fix listed |
| rapidfort alma 10 | openssl-devel | no fix listed |
| rapidfort alma 10 | openssl-libs | no fix listed |
| rapidfort alma 10 | openssl-perl | no fix listed |
| rapidfort alma 10 | shim-unsigned-x64 | no fix listed |
| rapidfort alma 10 | shim-x64 | no fix listed |
| rapidfort alma 8 | edk2-aarch64 | no fix listed |
| rapidfort alma 8 | edk2-ovmf | no fix listed |
| rapidfort alma 8 | openssl | no fix listed |
| rapidfort alma 8 | openssl-devel | no fix listed |
| rapidfort alma 8 | openssl-libs | no fix listed |
| rapidfort alma 8 | openssl-perl | no fix listed |
| rapidfort alma 8 | shim-unsigned-x64 | no fix listed |
| rapidfort alma 8 | shim-x64 | no fix listed |
| rapidfort alma 9 | compat-openssl11 | no fix listed |
| rapidfort alma 9 | edk2-aarch64 | no fix listed |
| rapidfort alma 9 | edk2-ovmf | no fix listed |
| rapidfort alma 9 | edk2-tools | no fix listed |
| rapidfort alma 9 | edk2-tools-doc | no fix listed |
| rapidfort alma 9 | openssl | no fix listed |
| rapidfort alma 9 | openssl-devel | no fix listed |
| rapidfort alma 9 | openssl-libs | no fix listed |
| rapidfort alma 9 | openssl-perl | no fix listed |
| rapidfort alma 9 | shim-unsigned-x64 | no fix listed |
| rapidfort alma 9 | shim-x64 | no fix listed |
| rapidfort alpine 3.20 | openssl | 3.3.7-r0, 3.5.6-r0 |
| rapidfort alpine 3.21 | openssl | 3.3.7-r0, 3.5.6-r0 |
| rapidfort alpine 3.22 | openssl | 3.3.7-r0, 3.5.6-r0 |
| rapidfort alpine 3.23 | openssl | 3.5.6-r0 |
| rapidfort alpine 3.24 | openssl | 3.5.6-r0 |
| rapidfort amazon linux | rf-openssl | 3.5.6-11.rf |
| rapidfort amazon linux | rf-openssl-libs | 3.5.6-11.rf |
| rapidfort debian | rf-openssl | 0:3.5.5-12+rf.0, 0:3.5.8-10+rf.0 |
| rapidfort debian 12 | openssl | 0:3.0.19-1~deb12u2, 0:3.5.5-1~deb13u2, 0:3.6.2-1 |
| rapidfort debian 12 | rf-openssl | 0:3.0.19-1~deb12u2, 0:3.5.5-1~deb13u2, 0:3.6.2-1 |
| rapidfort debian 13 | openssl | 0:3.0.19-1~deb12u2, 0:3.5.5-1~deb13u2, 0:3.6.2-1 |
| rapidfort debian 13 | rf-openssl | 0:3.0.19-1~deb12u2, 0:3.5.5-1~deb13u2, 0:3.6.2-1 |
| rapidfort fedora 43 | openssl | 1:3.5.4-3.fc43 |
| rapidfort fedora 43 | openssl-devel | 1:3.5.4-3.fc43 |
| rapidfort fedora 43 | openssl-devel-engine | 1:3.5.4-3.fc43 |
| rapidfort fedora 43 | openssl-libs | 1:3.5.4-3.fc43 |
| rapidfort fedora 43 | openssl-perl | 1:3.5.4-3.fc43 |
| rapidfort fedora 43 | rf-openssl | 1:3.5.4-3.fc43 |
| rapidfort fedora 43 | rf-openssl-devel | 1:3.5.4-3.fc43 |
| rapidfort fedora 43 | rf-openssl-libs | 1:3.5.4-3.fc43 |
| rapidfort fedora 43 | rf-openssl-perl | 1:3.5.4-3.fc43 |
| rapidfort Oracle Linux | rf-openssl | 1:3.5.6-11.rf |
| rapidfort Oracle Linux | rf-openssl-devel | 1:3.5.6-11.rf |
| rapidfort Oracle Linux | rf-openssl-libs | 1:3.5.6-11.rf |
| rapidfort Oracle Linux | rf-openssl-perl | 1:3.5.6-11.rf |
| rapidfort Oracle Linux 10 | edk2-ovmf | no fix listed |
| rapidfort Oracle Linux 10 | mokutil | no fix listed |
| rapidfort Oracle Linux 10 | openssl | no fix listed |
| rapidfort Oracle Linux 10 | openssl-devel | no fix listed |
| rapidfort Oracle Linux 10 | openssl-libs | no fix listed |
| rapidfort Oracle Linux 10 | openssl-perl | no fix listed |
| rapidfort Oracle Linux 10 | shim-x64 | no fix listed |
| rapidfort Oracle Linux 9 | compat-openssl11 | no fix listed |
| rapidfort Oracle Linux 9 | edk2-ovmf | no fix listed |
| rapidfort Oracle Linux 9 | openssl | no fix listed |
| rapidfort Oracle Linux 9 | openssl-devel | no fix listed |
| rapidfort Oracle Linux 9 | openssl-libs | no fix listed |
| rapidfort Oracle Linux 9 | openssl-perl | no fix listed |
| rapidfort Oracle Linux 9 | shim | no fix listed |
| rapidfort Oracle Linux 9 | shim-x64 | no fix listed |
| rapidfort Red Hat | rf-openssl | 1:3.2.2-20.rf, 1:3.5.6-11.rf |
| rapidfort Red Hat | rf-openssl-devel | 1:3.5.6-11.rf |
| rapidfort Red Hat | rf-openssl-libs | 1:3.2.2-20.rf, 1:3.5.6-11.rf |
| rapidfort Red Hat | rf-openssl-perl | 1:3.5.6-11.rf |
| rapidfort Red Hat 10 | openssl | no fix listed |
| rapidfort Red Hat 10 | openssl-devel | no fix listed |
| rapidfort Red Hat 10 | openssl-libs | no fix listed |
| rapidfort Red Hat 10 | openssl-perl | no fix listed |
| rapidfort Red Hat 9 | openssl | no fix listed |
| rapidfort Red Hat 9 | openssl-devel | no fix listed |
| rapidfort Red Hat 9 | openssl-libs | no fix listed |
| rapidfort Red Hat 9 | openssl-perl | no fix listed |
| rapidfort rocky | rf-openssl | 1:3.5.6-11.rf, 1:3.5.8-11.rf |
| rapidfort rocky | rf-openssl-devel | 1:3.5.6-11.rf, 1:3.5.8-11.rf |
| rapidfort rocky | rf-openssl-libs | 1:3.5.6-11.rf, 1:3.5.8-11.rf |
| rapidfort rocky | rf-openssl-perl | 1:3.5.6-11.rf, 1:3.5.8-11.rf |
| rapidfort rocky 10 | edk2 | no fix listed |
| rapidfort rocky 10 | openssl | no fix listed |
| rapidfort rocky 10 | openssl-devel | no fix listed |
| rapidfort rocky 10 | openssl-libs | no fix listed |
| rapidfort rocky 10 | openssl-perl | no fix listed |
| rapidfort rocky 10 | shim-x64 | no fix listed |
| rapidfort rocky 8 | edk2 | no fix listed |
| rapidfort rocky 8 | openssl | no fix listed |
| rapidfort rocky 8 | openssl-devel | no fix listed |
| rapidfort rocky 8 | openssl-libs | no fix listed |
| rapidfort rocky 8 | openssl-perl | no fix listed |
| rapidfort rocky 8 | shim | no fix listed |
| rapidfort rocky 8 | shim-x64 | no fix listed |
| rapidfort rocky 9 | compat-openssl11 | no fix listed |
| rapidfort rocky 9 | edk2 | no fix listed |
| rapidfort rocky 9 | openssl | no fix listed |
| rapidfort rocky 9 | openssl-devel | no fix listed |
| rapidfort rocky 9 | openssl-libs | no fix listed |
| rapidfort rocky 9 | openssl-perl | no fix listed |
| rapidfort rocky 9 | shim | no fix listed |
| rapidfort rocky 9 | shim-x64 | no fix listed |
| rapidfort ubuntu | openssl | 0:3.5.6-10rfubu+rf.0 |
| rapidfort ubuntu | rf-openssl | 0:3.5.6-10rfubu+rf.0 |
| rapidfort ubuntu 20.04 | openresty-openssl3 | 3.5.6 |
| rapidfort ubuntu 20.04 | openssl | 0:3.0.13-0ubuntu3.9, 0:3.0.2-0ubuntu1.23 |
| rapidfort ubuntu 20.04 | rf-openssl | 0:3.0.13-0ubuntu3.9, 0:3.0.2-0ubuntu1.23 |
| rapidfort ubuntu 22.04 | openresty-openssl3 | 3.5.6 |
| rapidfort ubuntu 22.04 | openssl | 0:3.0.13-0ubuntu3.9, 0:3.0.2-0ubuntu1.23 |
| rapidfort ubuntu 22.04 | rf-openssl | 0:3.0.13-0ubuntu3.9, 0:3.0.2-0ubuntu1.23 |
| rapidfort ubuntu 24.04 | openresty-openssl3 | 3.5.6 |
| rapidfort ubuntu 24.04 | openssl | 0:3.0.13-0ubuntu3.9, 0:3.0.2-0ubuntu1.23 |
| rapidfort ubuntu 24.04 | rf-openssl | 0:3.0.13-0ubuntu3.9, 0:3.0.2-0ubuntu1.23 |
| Red Hat | AAVMF | no fix listed |
| Red Hat | OVMF | no fix listed |
| Red Hat | compat-openssl10 | no fix listed |
| Red Hat | compat-openssl11 | no fix listed |
| Red Hat | edk2 | no fix listed |
| Red Hat | edk2-aarch64 | no fix listed |
| Red Hat | edk2-ovmf | no fix listed |
| Red Hat | edk2-tools | no fix listed |
| Red Hat | edk2-tools-doc | no fix listed |
| Red Hat | jbcs-httpd24-openssl | no fix listed |
| Red Hat | mingw-openssl | no fix listed |
| Red Hat | mingw32-openssl | no fix listed |
| Red Hat | mingw64-openssl | no fix listed |
| Red Hat | openshift/ose-rhel-coreos-8 | no fix listed |
| Red Hat | openshift/ose-rhel-coreos-9 | no fix listed |
| Red Hat | openssl | no fix listed |
| Red Hat | openssl-devel | no fix listed |
| Red Hat | openssl-libs | no fix listed |
| Red Hat | openssl-perl | no fix listed |
| Red Hat | openssl-static | no fix listed |
| Red Hat | ovmf | no fix listed |
| Red Hat | shim | no fix listed |
| Red Hat | shim-aa64 | no fix listed |
| Red Hat | shim-ia32 | no fix listed |
| Red Hat | shim-unsigned-aarch64 | no fix listed |
| Red Hat | shim-unsigned-x64 | no fix listed |
| Red Hat | shim-x64 | no fix listed |
| root.io alpine 3.23 | rootio-openssl | 3.5.6-r0 |
| root.io debian 12 | rootio-openssl | 3.0.19-1~deb12u2 |
| seal alpine | openssl | 3.3.2-r45341999, 3.3.3-r0000 |
| seal alpine | seal-openssl | 3.3.2-r45341999, 3.3.3-r053413 |
| seal debian | openssl | 3.0.11-1~deb12u2+sp999, 3.0.13-0ubuntu3.4+sp999, 3.0.16-1~deb12u1+sp999, 3.0.2-0ubuntu1.19+sp999, 3.0.2-0ubuntu1.20+sp999, 3.5.4-1~deb13u1+sp999 |
| seal debian | seal-openssl | 3.0.11-1~deb12u2+sp999, 3.0.13-0ubuntu3.4+sp999, 3.0.16-1~deb12u1+sp999, 3.0.2-0ubuntu1.19+sp999, 3.0.2-0ubuntu1.20+sp999, 3.5.4-1~deb13u1+sp999 |
| seal Red Hat 6 | openssl | 1.0.1e-59.el6_10+sp999, 1.0.1e-61.el6_10+sp999 |
| seal Red Hat 6 | seal-openssl | 1.0.1e-59.el6_10+sp999, 1.0.1e-61.el6_10+sp999 |
| seal Red Hat 7 | openssl | 1:1.0.2k-25.el7_9+sp999, 1:1.0.2k-26.el7_9+sp999 |
| seal Red Hat 7 | seal-openssl | 1:1.0.2k-25.el7_9+sp999, 1:1.0.2k-26.el7_9+sp999 |
| seal Red Hat 8 | openssl | 1:1.1.1k-14.el8_6+sp999 |
| seal Red Hat 8 | seal-openssl | 1:1.1.1k-14.el8_6+sp999 |
| seal Red Hat 9 | openssl | 1:3.2.2-6.el9_5+sp999 |
| seal Red Hat 9 | seal-openssl | 1:3.2.2-6.el9_5+sp999 |
| ubuntu 22.04 | openssl | 3.0.2-0ubuntu1.23 |
| ubuntu 24.04 | edk2 | no fix listed |
| ubuntu 24.04 | openssl | 3.0.13-0ubuntu3.9 |
| ubuntu 25.10 | openssl | 3.5.3-1ubuntu3.3 |
| ubuntu 26.04 | edk2 | no fix listed |
| ubuntu 26.04 | openssl | 3.5.5-1ubuntu3 |
| ubuntu 26.10 | edk2 | no fix listed |
| ubuntu 26.10 | openssl | 3.5.5-1ubuntu3 |
| wolfi | openssl | 3.6.2-r0 |
References
- https://access.redhat.com/security/cve/CVE-2026-31789
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html
- https://github.com/advisories/GHSA-j79m-9jxq-788r
- https://github.com/openssl/openssl/commit/364f095b80601db632b0def6a33316967f863bde
- https://github.com/openssl/openssl/commit/7a9087efd769f362ad9c0e30c7baaa6bbfa65ecf
- https://github.com/openssl/openssl/commit/945b935ac66cc7f1a41f1b849c7c25adb5351f49
- https://github.com/openssl/openssl/commit/a24216018e1ede8ff01a4ff5afff7dfbd443e2f9
- https://github.com/openssl/openssl/commit/a91e537d16d74050dbde50bb0dfb1fe9930f0521