Vulnerabilities / CVE-2026-31789

critical

CVE-2026-31789

openssl: OpenSSL: Heap buffer overflow on 32-bit systems from large X.509 certificate processing

Published Modified CWE 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat5.8CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:H
Julia9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

SourcePackageFixed in
julia::Julia Ecosystem Security AdvisoriesAppBundler, OpenSSL_jll, Openresty_jll1.0.1 and 1 more
Photon OS 4.0openssl, openssl-c_rehash, openssl-devel and 2 more3.0.18-3.ph4
Photon OS 5.0openssl, openssl-c_rehash, openssl-devel and 3 more3.0.18-3.ph5
alpine 3.20openssl3.3.7-r0
alpine 3.21openssl3.3.7-r0
alpine 3.22openssl3.5.6-r0
alpine 3.23openssl3.5.6-r0
alpine 3.24openssl3.5.6-r0
alpine edgeopenssl3.5.6-r0
Azure Linux 3.0openssl0:3.3.5-5.azl3
chainguardlibcrypto3-2.34, openssl, openssl-provider-fips-3.4.0 and 1 more3.6.2-r0 and 1 more
debian 12openssl3.0.19-1~deb12u2
Show all 203 entries from 59 sources
SourcePackageFixed in
julia::Julia Ecosystem Security AdvisoriesAppBundler1.0.1
julia::Julia Ecosystem Security AdvisoriesOpenSSL_jll3.0.20+0, 3.5.6+0
julia::Julia Ecosystem Security AdvisoriesOpenresty_jllno fix listed
Photon OS 4.0openssl3.0.18-3.ph4
Photon OS 4.0openssl-c_rehash3.0.18-3.ph4
Photon OS 4.0openssl-devel3.0.18-3.ph4
Photon OS 4.0openssl-docs3.0.18-3.ph4
Photon OS 4.0openssl-perl3.0.18-3.ph4
Photon OS 5.0openssl3.0.18-3.ph5
Photon OS 5.0openssl-c_rehash3.0.18-3.ph5
Photon OS 5.0openssl-devel3.0.18-3.ph5
Photon OS 5.0openssl-docs3.0.18-3.ph5
Photon OS 5.0openssl-libs3.0.18-3.ph5
Photon OS 5.0openssl-perl3.0.18-3.ph5
alpine 3.20openssl3.3.7-r0
alpine 3.21openssl3.3.7-r0
alpine 3.22openssl3.5.6-r0
alpine 3.23openssl3.5.6-r0
alpine 3.24openssl3.5.6-r0
alpine edgeopenssl3.5.6-r0
Azure Linux 3.0openssl0:3.3.5-5.azl3
chainguardlibcrypto3-2.343.6.2-r0
chainguardopenssl3.6.2-r0
chainguardopenssl-provider-fips-3.4.00
chainguardopenssl-provider-fips-3.6.00
debian 12openssl3.0.19-1~deb12u2
debian 13openssl3.5.5-1~deb13u2
debian 14openssl3.6.2-1
echoopenssl3.0.19-1~deb12u2
minimosopenssl3.5.6-r0
minimosopenssl-3.03.0.20-r0
rapidfort almarf-openssl1:3.5.6-11.rf
rapidfort almarf-openssl-devel1:3.5.6-11.rf
rapidfort almarf-openssl-libs1:3.5.6-11.rf
rapidfort almarf-openssl-perl1:3.5.6-11.rf
rapidfort alma 10edk2-aarch64no fix listed
rapidfort alma 10edk2-ovmfno fix listed
rapidfort alma 10edk2-toolsno fix listed
rapidfort alma 10edk2-tools-docno fix listed
rapidfort alma 10mokutilno fix listed
rapidfort alma 10opensslno fix listed
rapidfort alma 10openssl-develno fix listed
rapidfort alma 10openssl-libsno fix listed
rapidfort alma 10openssl-perlno fix listed
rapidfort alma 10shim-unsigned-x64no fix listed
rapidfort alma 10shim-x64no fix listed
rapidfort alma 8edk2-aarch64no fix listed
rapidfort alma 8edk2-ovmfno fix listed
rapidfort alma 8opensslno fix listed
rapidfort alma 8openssl-develno fix listed
rapidfort alma 8openssl-libsno fix listed
rapidfort alma 8openssl-perlno fix listed
rapidfort alma 8shim-unsigned-x64no fix listed
rapidfort alma 8shim-x64no fix listed
rapidfort alma 9compat-openssl11no fix listed
rapidfort alma 9edk2-aarch64no fix listed
rapidfort alma 9edk2-ovmfno fix listed
rapidfort alma 9edk2-toolsno fix listed
rapidfort alma 9edk2-tools-docno fix listed
rapidfort alma 9opensslno fix listed
rapidfort alma 9openssl-develno fix listed
rapidfort alma 9openssl-libsno fix listed
rapidfort alma 9openssl-perlno fix listed
rapidfort alma 9shim-unsigned-x64no fix listed
rapidfort alma 9shim-x64no fix listed
rapidfort alpine 3.20openssl3.3.7-r0, 3.5.6-r0
rapidfort alpine 3.21openssl3.3.7-r0, 3.5.6-r0
rapidfort alpine 3.22openssl3.3.7-r0, 3.5.6-r0
rapidfort alpine 3.23openssl3.5.6-r0
rapidfort alpine 3.24openssl3.5.6-r0
rapidfort amazon linuxrf-openssl3.5.6-11.rf
rapidfort amazon linuxrf-openssl-libs3.5.6-11.rf
rapidfort debianrf-openssl0:3.5.5-12+rf.0, 0:3.5.8-10+rf.0
rapidfort debian 12openssl0:3.0.19-1~deb12u2, 0:3.5.5-1~deb13u2, 0:3.6.2-1
rapidfort debian 12rf-openssl0:3.0.19-1~deb12u2, 0:3.5.5-1~deb13u2, 0:3.6.2-1
rapidfort debian 13openssl0:3.0.19-1~deb12u2, 0:3.5.5-1~deb13u2, 0:3.6.2-1
rapidfort debian 13rf-openssl0:3.0.19-1~deb12u2, 0:3.5.5-1~deb13u2, 0:3.6.2-1
rapidfort fedora 43openssl1:3.5.4-3.fc43
rapidfort fedora 43openssl-devel1:3.5.4-3.fc43
rapidfort fedora 43openssl-devel-engine1:3.5.4-3.fc43
rapidfort fedora 43openssl-libs1:3.5.4-3.fc43
rapidfort fedora 43openssl-perl1:3.5.4-3.fc43
rapidfort fedora 43rf-openssl1:3.5.4-3.fc43
rapidfort fedora 43rf-openssl-devel1:3.5.4-3.fc43
rapidfort fedora 43rf-openssl-libs1:3.5.4-3.fc43
rapidfort fedora 43rf-openssl-perl1:3.5.4-3.fc43
rapidfort Oracle Linuxrf-openssl1:3.5.6-11.rf
rapidfort Oracle Linuxrf-openssl-devel1:3.5.6-11.rf
rapidfort Oracle Linuxrf-openssl-libs1:3.5.6-11.rf
rapidfort Oracle Linuxrf-openssl-perl1:3.5.6-11.rf
rapidfort Oracle Linux 10edk2-ovmfno fix listed
rapidfort Oracle Linux 10mokutilno fix listed
rapidfort Oracle Linux 10opensslno fix listed
rapidfort Oracle Linux 10openssl-develno fix listed
rapidfort Oracle Linux 10openssl-libsno fix listed
rapidfort Oracle Linux 10openssl-perlno fix listed
rapidfort Oracle Linux 10shim-x64no fix listed
rapidfort Oracle Linux 9compat-openssl11no fix listed
rapidfort Oracle Linux 9edk2-ovmfno fix listed
rapidfort Oracle Linux 9opensslno fix listed
rapidfort Oracle Linux 9openssl-develno fix listed
rapidfort Oracle Linux 9openssl-libsno fix listed
rapidfort Oracle Linux 9openssl-perlno fix listed
rapidfort Oracle Linux 9shimno fix listed
rapidfort Oracle Linux 9shim-x64no fix listed
rapidfort Red Hatrf-openssl1:3.2.2-20.rf, 1:3.5.6-11.rf
rapidfort Red Hatrf-openssl-devel1:3.5.6-11.rf
rapidfort Red Hatrf-openssl-libs1:3.2.2-20.rf, 1:3.5.6-11.rf
rapidfort Red Hatrf-openssl-perl1:3.5.6-11.rf
rapidfort Red Hat 10opensslno fix listed
rapidfort Red Hat 10openssl-develno fix listed
rapidfort Red Hat 10openssl-libsno fix listed
rapidfort Red Hat 10openssl-perlno fix listed
rapidfort Red Hat 9opensslno fix listed
rapidfort Red Hat 9openssl-develno fix listed
rapidfort Red Hat 9openssl-libsno fix listed
rapidfort Red Hat 9openssl-perlno fix listed
rapidfort rockyrf-openssl1:3.5.6-11.rf, 1:3.5.8-11.rf
rapidfort rockyrf-openssl-devel1:3.5.6-11.rf, 1:3.5.8-11.rf
rapidfort rockyrf-openssl-libs1:3.5.6-11.rf, 1:3.5.8-11.rf
rapidfort rockyrf-openssl-perl1:3.5.6-11.rf, 1:3.5.8-11.rf
rapidfort rocky 10edk2no fix listed
rapidfort rocky 10opensslno fix listed
rapidfort rocky 10openssl-develno fix listed
rapidfort rocky 10openssl-libsno fix listed
rapidfort rocky 10openssl-perlno fix listed
rapidfort rocky 10shim-x64no fix listed
rapidfort rocky 8edk2no fix listed
rapidfort rocky 8opensslno fix listed
rapidfort rocky 8openssl-develno fix listed
rapidfort rocky 8openssl-libsno fix listed
rapidfort rocky 8openssl-perlno fix listed
rapidfort rocky 8shimno fix listed
rapidfort rocky 8shim-x64no fix listed
rapidfort rocky 9compat-openssl11no fix listed
rapidfort rocky 9edk2no fix listed
rapidfort rocky 9opensslno fix listed
rapidfort rocky 9openssl-develno fix listed
rapidfort rocky 9openssl-libsno fix listed
rapidfort rocky 9openssl-perlno fix listed
rapidfort rocky 9shimno fix listed
rapidfort rocky 9shim-x64no fix listed
rapidfort ubuntuopenssl0:3.5.6-10rfubu+rf.0
rapidfort ubunturf-openssl0:3.5.6-10rfubu+rf.0
rapidfort ubuntu 20.04openresty-openssl33.5.6
rapidfort ubuntu 20.04openssl0:3.0.13-0ubuntu3.9, 0:3.0.2-0ubuntu1.23
rapidfort ubuntu 20.04rf-openssl0:3.0.13-0ubuntu3.9, 0:3.0.2-0ubuntu1.23
rapidfort ubuntu 22.04openresty-openssl33.5.6
rapidfort ubuntu 22.04openssl0:3.0.13-0ubuntu3.9, 0:3.0.2-0ubuntu1.23
rapidfort ubuntu 22.04rf-openssl0:3.0.13-0ubuntu3.9, 0:3.0.2-0ubuntu1.23
rapidfort ubuntu 24.04openresty-openssl33.5.6
rapidfort ubuntu 24.04openssl0:3.0.13-0ubuntu3.9, 0:3.0.2-0ubuntu1.23
rapidfort ubuntu 24.04rf-openssl0:3.0.13-0ubuntu3.9, 0:3.0.2-0ubuntu1.23
Red HatAAVMFno fix listed
Red HatOVMFno fix listed
Red Hatcompat-openssl10no fix listed
Red Hatcompat-openssl11no fix listed
Red Hatedk2no fix listed
Red Hatedk2-aarch64no fix listed
Red Hatedk2-ovmfno fix listed
Red Hatedk2-toolsno fix listed
Red Hatedk2-tools-docno fix listed
Red Hatjbcs-httpd24-opensslno fix listed
Red Hatmingw-opensslno fix listed
Red Hatmingw32-opensslno fix listed
Red Hatmingw64-opensslno fix listed
Red Hatopenshift/ose-rhel-coreos-8no fix listed
Red Hatopenshift/ose-rhel-coreos-9no fix listed
Red Hatopensslno fix listed
Red Hatopenssl-develno fix listed
Red Hatopenssl-libsno fix listed
Red Hatopenssl-perlno fix listed
Red Hatopenssl-staticno fix listed
Red Hatovmfno fix listed
Red Hatshimno fix listed
Red Hatshim-aa64no fix listed
Red Hatshim-ia32no fix listed
Red Hatshim-unsigned-aarch64no fix listed
Red Hatshim-unsigned-x64no fix listed
Red Hatshim-x64no fix listed
root.io alpine 3.23rootio-openssl3.5.6-r0
root.io debian 12rootio-openssl3.0.19-1~deb12u2
seal alpineopenssl3.3.2-r45341999, 3.3.3-r0000
seal alpineseal-openssl3.3.2-r45341999, 3.3.3-r053413
seal debianopenssl3.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 debianseal-openssl3.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 6openssl1.0.1e-59.el6_10+sp999, 1.0.1e-61.el6_10+sp999
seal Red Hat 6seal-openssl1.0.1e-59.el6_10+sp999, 1.0.1e-61.el6_10+sp999
seal Red Hat 7openssl1:1.0.2k-25.el7_9+sp999, 1:1.0.2k-26.el7_9+sp999
seal Red Hat 7seal-openssl1:1.0.2k-25.el7_9+sp999, 1:1.0.2k-26.el7_9+sp999
seal Red Hat 8openssl1:1.1.1k-14.el8_6+sp999
seal Red Hat 8seal-openssl1:1.1.1k-14.el8_6+sp999
seal Red Hat 9openssl1:3.2.2-6.el9_5+sp999
seal Red Hat 9seal-openssl1:3.2.2-6.el9_5+sp999
ubuntu 22.04openssl3.0.2-0ubuntu1.23
ubuntu 24.04edk2no fix listed
ubuntu 24.04openssl3.0.13-0ubuntu3.9
ubuntu 25.10openssl3.5.3-1ubuntu3.3
ubuntu 26.04edk2no fix listed
ubuntu 26.04openssl3.5.5-1ubuntu3
ubuntu 26.10edk2no fix listed
ubuntu 26.10openssl3.5.5-1ubuntu3
wolfiopenssl3.6.2-r0

References

All 13 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.