CVE-2026-31789 Heap Buffer Overflow in Hexadecimal Conversion
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- OpenSSLUbuntuDebianRed Hat
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.
Upgrade path
47 packages: 16 fixed, 31 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux nodejs24(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| azure linux qemu(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| azure linux rust(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| redhat openssl(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat openssl(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat openssl(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat openssl(Red Hat jboss_core_services 1) | All versions | No fix listed | No fix yet |
| redhat openssl(Red Hat rhel_els 6) | All versions | No fix listed | No fix yet |
| redhat openssl(Red Hat rhel_els 7) | All versions | No fix listed | No fix yet |
| redhat/compat-openssl10(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/compat-openssl11(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/edk2(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/edk2(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/edk2(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/mingw-openssl(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-8(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/ovmf(Red Hat rhel_els 7) | All versions | No fix listed | No fix yet |
| redhat/shim(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/shim(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/shim(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/shim-unsigned-aarch64(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/shim-unsigned-aarch64(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/shim-unsigned-x64(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/shim-unsigned-x64(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/shim-unsigned-x64(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| ubuntu/edk2(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/edk2(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/edk2(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/edk2-hwe(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
… and 17 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| OpenSSL(Azure Linux:3.0) | < 3.3.5-5 | 3.3.5-5 |
| azure linux nodejs24(Azure Linux:3.0) | All versions | No fix listed |
| azure linux qemu(Azure Linux:3.0) | All versions | No fix listed |
| azure linux rust(Azure Linux:3.0) | All versions | No fix listed |
| OpenSSL | >= 3.6.0, < 3.6.2 | 3.6.2 |
| OpenSSL | >= 3.5.0, < 3.5.6 | 3.5.6 |
| OpenSSL | >= 3.4.0, < 3.4.5 | 3.4.5 |
| OpenSSL | >= 3.3.0, < 3.3.7 | 3.3.7 |
| OpenSSL | >= 3.0.0, < 3.0.20 | 3.0.20 |
| Siemens SIMATIC CN 4100 | < V5.0 | V5.0 |
| debian/openssl(Debian:12) | < 3.0.19-1~deb12u2 | 3.0.19-1~deb12u2 |
| debian/openssl(Debian:12) | = 3.0.10-1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.10-1~deb12u1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.11-1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.11-1~deb12u1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.11-1~deb12u2 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.12-1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.12-2 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.13-1~deb12u1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.13-1~deb12u2 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.14-1~deb12u1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.14-1~deb12u2 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.15-1~deb12u1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.16-1~deb12u1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.17-1~deb12u1 | No fix listed |
Show 87 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/openssl(Debian:12) | = 3.0.17-1~deb12u2 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.17-1~deb12u3 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.18-1~deb12u1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.18-1~deb12u2 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.19-1~deb12u1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.9-1 | No fix listed |
| debian/openssl(Debian:13) | < 3.5.5-1~deb13u2 | 3.5.5-1~deb13u2 |
| debian/openssl(Debian:13) | = 3.5.1-1 | No fix listed |
| debian/openssl(Debian:13) | = 3.5.1-1+deb13u1 | No fix listed |
| debian/openssl(Debian:13) | = 3.5.2-1 | No fix listed |
| debian/openssl(Debian:13) | = 3.5.3-1 | No fix listed |
| debian/openssl(Debian:13) | = 3.5.4-1 | No fix listed |
| debian/openssl(Debian:13) | = 3.5.4-1~deb13u1 | No fix listed |
| debian/openssl(Debian:13) | = 3.5.4-1~deb13u2 | No fix listed |
| debian/openssl(Debian:13) | = 3.5.5-1~deb13u1 | No fix listed |
| debian/openssl(Debian:14) | < 3.6.2-1 | 3.6.2-1 |
| debian/openssl(Debian:14) | = 3.5.1-1 | No fix listed |
| debian/openssl(Debian:14) | = 3.5.2-1 | No fix listed |
| debian/openssl(Debian:14) | = 3.5.3-1 | No fix listed |
| debian/openssl(Debian:14) | = 3.5.4-1 | No fix listed |
| debian/openssl(Debian:14) | = 3.5.4-1~deb13u1 | No fix listed |
| debian/openssl(Debian:14) | = 3.5.4-1~deb13u2 | No fix listed |
| debian/openssl(Debian:14) | = 3.5.5-1 | No fix listed |
| debian/openssl(Debian:14) | = 3.5.5-1~deb13u1 | No fix listed |
| debian/openssl(Debian:14) | = 3.5.5-1~deb13u2 | No fix listed |
| debian/openssl(Debian:14) | = 3.5.6-1~deb13u1 | No fix listed |
| debian/openssl(Debian:14) | = 3.5.6-1~deb13u2 | No fix listed |
| debian/openssl(Debian:14) | = 3.5.7-1~deb13u1 | No fix listed |
| debian/openssl(Debian:14) | = 3.5.7-1~deb13u2 | No fix listed |
| debian/openssl(Debian:14) | = 3.5.7-1~deb13u3 | No fix listed |
| debian/openssl(Debian:14) | = 3.6.0-1 | No fix listed |
| debian/openssl(Debian:14) | = 3.6.0-2 | No fix listed |
| debian/openssl(Debian:14) | = 3.6.0~~alpha1-1 | No fix listed |
| debian/openssl(Debian:14) | = 3.6.0~~beta1-1 | No fix listed |
| debian/openssl(Debian:14) | = 3.6.1-1 | No fix listed |
| debian/openssl(Debian:14) | = 3.6.1-2 | No fix listed |
| debian/openssl(Debian:14) | = 3.6.1-3 | No fix listed |
| redhat/openssl-main(Red Hat:hummingbird:1) | < 3.5.6-0.1.hum1 | 3.5.6-0.1.hum1 |
| redhat/edk2(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat openssl(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/shim(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/shim-unsigned-aarch64(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/shim-unsigned-x64(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat openssl(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat openssl(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/ovmf(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/compat-openssl10(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/edk2(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/mingw-openssl(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat openssl(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/shim(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/shim-unsigned-x64(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/compat-openssl11(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/edk2(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat openssl(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/shim(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/shim-unsigned-aarch64(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/shim-unsigned-x64(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat openssl(Red Hat:jboss_core_services:1) | All versions | No fix listed |
| redhat/rhoai/odh-core-bff-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-dashboard-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-kf-notebook-controller-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-agent-ops-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-automl-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-autorag-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-eval-hub-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-gen-ai-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-maas-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-mlflow-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-model-registry-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-notebook-controller-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-8(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:4) | All versions | No fix listed |
| ubuntu/openssl(Ubuntu:22.04) | < 3.0.2-0ubuntu1.23 | 3.0.2-0ubuntu1.23 |
| ubuntu/edk2(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/openssl(Ubuntu:24.04) | < 3.0.13-0ubuntu3.9 | 3.0.13-0ubuntu3.9 |
| ubuntu/edk2(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/edk2-hwe(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/openssl(Ubuntu:26.04) | < 3.5.5-1ubuntu3 | 3.5.5-1ubuntu3 |
| ubuntu/edk2(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/edk2-hwe(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/openssl(Ubuntu:26.10) | < 3.5.5-1ubuntu3 | 3.5.5-1ubuntu3 |
| alpine/openssl(Alpine:v3.20) | >= 3.3.0, < 3.3.7-r0 | 3.3.7-r0 |
| alpine/openssl(Alpine:v3.21) | >= 3.3.0, < 3.3.7-r0 | 3.3.7-r0 |
| alpine/openssl(Alpine:v3.22) | >= 3.5.0, < 3.5.6-r0 | 3.5.6-r0 |
| alpine/openssl(Alpine:v3.23) | >= 3.5.0, < 3.5.6-r0 | 3.5.6-r0 |
| alpine/openssl(Alpine:v3.24) | >= 3.5.0, < 3.5.6-r0 | 3.5.6-r0 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- OpenSSL Advisory vendor-advisory
- 3.6.2 git commit patch
- 3.5.6 git commit patch
- 3.4.5 git commit patch
- 3.3.7 git commit patch
- 3.0.20 git commit patch
- cert-portal.siemens.com
- Debian Security Tracker CVE-2026-31789 vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:7261 patch vendor-advisory
- Red Hat Bugzilla 2451095 issue-tracking
- www.cve.org
- nvd.nist.gov
- Ubuntu CVE tracker vendor-advisory
- USN-8155-1 vendor-advisory
- security.alpinelinux.org vendor-advisory
- Release and Advisory Timeline vendor-advisory
- Security advisory list (json) vendor-advisory