CVE-2026-31789
openssl: OpenSSL: Heap buffer overflow on 32-bit systems from large X.509 certificate processing
Overview
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.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-787
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | AppBundler | >=1.0.0, <1.0.1 | 1.0.1 |
| Julia | Openresty_jll | >=1.27.1+0 | No fix yet |
| Julia | OpenSSL_jll | >=3.0.8+0, <3.0.20+0>=3.5.0+0, <3.5.6+0 | 3.0.20+03.5.6+0 |
Open a package to see all its vulnerabilities.
Operating systems · 69 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | openssl | 0:3.3.5-5.azl3 |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | openssl +4 | 3.0.18-3.ph4 |
| 5.0 | openssl +5 | 3.0.18-3.ph5 |
Red Hat 3 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | aavmf +9 | affected |
| 8 | compat-openssl10 +18 | affected |
| 9 | compat-openssl11 +17 | affected |
SUSE Linux Enterprise 6 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | libopenssl-1-0-0-devel +7 | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| 12.5 | libopenssl-1-1-devel +6 | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| 15.4 | libopenssl-1-0-0-devel +4 | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| 15.4 | libopenssl-1-1-devel +6 | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| 15.4 | libopenssl-3-devel +2 | 3.0.8-150400.4.81.1 | SUSE-SU-2026:1214-1 |
| 15.5 | libopenssl-1-0-0-devel +4 | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
9 more rows
SUSE Linux Enterprise Micro 7 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.2 | libopenssl-1-1-devel +3 | 1.1.1d-150200.11.109.1 | SUSE-SU-2026:1216-1 |
| 5.3 | libopenssl-1-1-devel +3 | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| 5.3 | libopenssl3 | 3.0.8-150400.4.81.1 | SUSE-SU-2026:1214-1 |
| 5.4 | libopenssl-1-1-devel +3 | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| 5.4 | libopenssl3 | 3.0.8-150400.4.81.1 | SUSE-SU-2026:1214-1 |
| 5.5 | libopenssl-1-1-devel +3 | 1.1.1l-150500.17.51.1 | SUSE-SU-2026:1290-1 |
3 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | openssl | 3.5.6-r0 |
| 3.23 | openssl | 3.5.6-r0 |
| 3.24 | openssl | 3.5.6-r0 |
| edge | openssl | 3.5.6-r0 |
chainguard 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl-provider-fips-3-4-0 +1 | not affected | |
| openssl-3-5 | 3.5.6-r0 | |
| libcrypto3-2-34 +1 | 3.6.2-r0 |
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | openssl | 3.0.19-1~deb12u2 |
| 13 | openssl | 3.5.5-1~deb13u2 |
| 14 | openssl | 3.6.2-1 |
echo 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl | 3.0.19-1~deb12u2 | |
| openssl-3-0-9 | 3.0.9+e1 | |
| openssl-3-1-0 | 3.1.0+e1 | |
| openssl-3-5-0 | 3.5.0+e1 |
minimos 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl-3-0 | 3.0.20-r0 | |
| openssl | 3.5.6-r0 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libopenssl-3-devel +9 | 3.5.3-4.1 | openSUSE-SU-2026:10533-1 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | libopenssl-3-devel +6 | 3.5.0-160000.7.1 | openSUSE-SU-2026:20525-1 |
root.io alpine 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.23 | rootio-openssl | 3.5.6-r0 |
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-openssl | 3.0.19-1~deb12u2 |
seal Red Hat 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | openssl +1 | 1:1.0.2k-25.el7_9+sp999 |
| 7 | openssl +1 | 1:1.0.2k-26.el7_9+sp999 |
| 8 | openssl +1 | 1:1.1.1k-14.el8_6+sp999 |
| 9 | openssl +1 | 1:3.2.2-6.el9_5+sp999 |
seal alpine 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl +1 | 3.3.2-r45341999 | |
| openssl | 3.3.3-r0000 | |
| seal-openssl | 3.3.3-r053413 |
seal debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssl +1 | 3.0.11-1~deb12u2+sp999 | |
| openssl +1 | 3.0.13-0ubuntu3.4+sp999 | |
| openssl +1 | 3.0.16-1~deb12u1+sp999 | |
| openssl +1 | 3.0.2-0ubuntu1.19+sp999 | |
| openssl +1 | 3.0.2-0ubuntu1.20+sp999 | |
| openssl +1 | 3.5.4-1~deb13u1+sp999 |
ubuntu 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | openssl | 3.0.2-0ubuntu1.23 |
| 24.04 | edk2 | affected |
| 24.04 | openssl | 3.0.13-0ubuntu3.9 |
| 26.04 | edk2 | affected |
| 26.04 | openssl | 3.5.5-1ubuntu3 |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssl | 3.6.2-r0 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-31789
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-032379.html
- github.com https://github.com/advisories/GHSA-j79m-9jxq-788r
- github.com https://github.com/openssl/openssl/commit/364f095b80601db632b0def6a33316967f863bde
- github.com https://github.com/openssl/openssl/commit/7a9087efd769f362ad9c0e30c7baaa6bbfa65ecf
- github.com https://github.com/openssl/openssl/commit/945b935ac66cc7f1a41f1b849c7c25adb5351f49
- github.com https://github.com/openssl/openssl/commit/a24216018e1ede8ff01a4ff5afff7dfbd443e2f9
- github.com https://github.com/openssl/openssl/commit/a91e537d16d74050dbde50bb0dfb1fe9930f0521
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-31789
- openssl-library.org https://openssl-library.org/news/secadv/20260407.txt
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.