CVE-2026-31789
published medium CVSS 3.1 · 5.8Heap Buffer Overflow in Hexadecimal Conversion
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenSSL | — | OpenSSL3.6.0 to < 3.6.2 · 3.5.0 to < 3.5.6 · 3.4.0 to < 3.4.5 · 3.3.0 to < 3.3.7 · 3.0.0 to < 3.0.20 · Other versions: unaffected | Affected | Not stated | openssl |
| Siemens | — | SIMATIC CN 41000 to < V5.0 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Alpine Linux | edge | openssl | Fixed | 3.5.6-r0 | Package fix record |
| Debian | bookworm | openssl | Advisory build | 3.0.19-1~deb12u2 | DSA-6201-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_0_0-develaarch64 | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| Alpine Linux | v3.20 | openssl | Fixed | 3.3.7-r0 | Package fix record |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.21 | openssl | Fixed | 3.3.7-r0 | Package fix record |
| Alpine Linux | v3.22 | openssl | Fixed | 3.5.6-r0 | Package fix record |
| Alpine Linux | v3.23 | openssl | Fixed | 3.5.6-r0 | Package fix record |
| Alpine Linux | v3.24 | openssl | Fixed | 3.5.6-r0 | Package fix record |
| Debian | trixie | openssl | Advisory build | 3.5.5-1~deb13u2 | DSA-6201-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_0_0-develppc64le | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_0_0-devels390x | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_0_0-develx86_64 | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_0_0-devel-32bits390x | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_0_0-devel-32bitx86_64 | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_1-develaarch64 | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_1-develppc64le | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_1-devels390x | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_1-develx86_64 | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_1-devel-32bits390x | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl-1_1-devel-32bitx86_64 | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_0_0aarch64 | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_0_0ppc64le | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_0_0s390x | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_0_0x86_64 | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_0_0-32bits390x | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_0_0-32bitx86_64 | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_0_0-hmacaarch64 | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_0_0-hmacppc64le | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_0_0-hmacs390x | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_0_0-hmacx86_64 | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_0_0-hmac-32bits390x | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_0_0-hmac-32bitx86_64 | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1aarch64 | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1ppc64le | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1s390x | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1x86_64 | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1-32bits390x | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1-32bitx86_64 | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1-hmacaarch64 | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1-hmacppc64le | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1-hmacs390x | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1-hmacx86_64 | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1-hmac-32bits390x | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | libopenssl1_1-hmac-32bitx86_64 | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | openssl-1_0_0aarch64 | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | openssl-1_0_0ppc64le | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | openssl-1_0_0s390x | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | openssl-1_0_0x86_64 | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | openssl-1_0_0-docnoarch | Advisory build | 1.0.2p-3.106.1 | SUSE-SU-2026:1256-1 |
| SUSE / openSUSE | SLE-12-SP5 | openssl-1_1aarch64 | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | openssl-1_1ppc64le | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | openssl-1_1s390x | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-12-SP5 | openssl-1_1x86_64 | Advisory build | 1.1.1d-2.125.1 | SUSE-SU-2026:1255-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl-1_0_0-develaarch64 | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl-1_0_0-develppc64le | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl-1_0_0-devels390x | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl-1_0_0-develx86_64 | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl-1_1-develaarch64 | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl-1_1-develppc64le | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl-1_1-devels390x | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl-1_1-develx86_64 | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl-1_1-devel-32bitx86_64 | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl-3-develaarch64 | Advisory build | 3.0.8-150400.4.81.1 | SUSE-SU-2026:1214-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl-3-develppc64le | Advisory build | 3.0.8-150400.4.81.1 | SUSE-SU-2026:1214-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl-3-devels390x | Advisory build | 3.0.8-150400.4.81.1 | SUSE-SU-2026:1214-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl-3-develx86_64 | Advisory build | 3.0.8-150400.4.81.1 | SUSE-SU-2026:1214-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl10aarch64 | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl10ppc64le | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl10s390x | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl10x86_64 | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_0_0aarch64 | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_0_0ppc64le | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_0_0s390x | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_0_0x86_64 | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_0_0-hmacaarch64 | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_0_0-hmacppc64le | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_0_0-hmacs390x | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_0_0-hmacx86_64 | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_1aarch64 | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_1ppc64le | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_1s390x | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_1x86_64 | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_1-32bitx86_64 | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_1-hmacaarch64 | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_1-hmacppc64le | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_1-hmacs390x | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_1-hmacx86_64 | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl1_1-hmac-32bitx86_64 | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl3aarch64 | Advisory build | 3.0.8-150400.4.81.1 | SUSE-SU-2026:1214-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl3ppc64le | Advisory build | 3.0.8-150400.4.81.1 | SUSE-SU-2026:1214-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl3s390x | Advisory build | 3.0.8-150400.4.81.1 | SUSE-SU-2026:1214-1 |
| SUSE / openSUSE | SLE-15-SP4 | libopenssl3x86_64 | Advisory build | 3.0.8-150400.4.81.1 | SUSE-SU-2026:1214-1 |
| SUSE / openSUSE | SLE-15-SP4 | openssl-1_0_0aarch64 | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | openssl-1_0_0ppc64le | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | openssl-1_0_0s390x | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | openssl-1_0_0x86_64 | Advisory build | 1.0.2p-150000.3.105.1 | SUSE-SU-2026:1291-1 |
| SUSE / openSUSE | SLE-15-SP4 | openssl-1_1aarch64 | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | openssl-1_1ppc64le | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | openssl-1_1s390x | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
| SUSE / openSUSE | SLE-15-SP4 | openssl-1_1x86_64 | Advisory build | 1.1.1l-150400.7.90.1 | SUSE-SU-2026:1257-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.8 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenSSL | OpenSSL | 3.6.0 to < 3.6.2 (affected · semver)3.5.0 to < 3.5.6 (affected · semver)3.4.0 to < 3.4.5 (affected · semver)3.3.0 to < 3.3.7 (affected · semver)3.0.0 to < 3.0.20 (affected · semver)Default: unaffected | openssl · cna |
| Siemens | SIMATIC CN 4100 | 0 to < V5.0 (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
1- CWE-787 CWE-787 Out-of-bounds Write
References
7- https://cert-portal.siemens.com/productcert/html/ssa-032379.html
- 3.4.5 git commit https://github.com/openssl/openssl/commit/364f095b80601db632b0def6a33316967f863bde
- 3.3.7 git commit https://github.com/openssl/openssl/commit/7a9087efd769f362ad9c0e30c7baaa6bbfa65ecf
- 3.5.6 git commit https://github.com/openssl/openssl/commit/945b935ac66cc7f1a41f1b849c7c25adb5351f49
- 3.6.2 git commit https://github.com/openssl/openssl/commit/a24216018e1ede8ff01a4ff5afff7dfbd443e2f9
- 3.0.20 git commit https://github.com/openssl/openssl/commit/a91e537d16d74050dbde50bb0dfb1fe9930f0521
- OpenSSL Advisory https://openssl-library.org/news/secadv/20260407.txt
Provider assertions
3openssl · cna
Heap Buffer Overflow in Hexadecimal Conversion
siemens-SADP · adp
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f60e547d0bb15d778bd906aa0bab94d4ad120c1b3d0187c9a32e7c760db359a0
- Ingested
- 23 Sep 2026, 09:09:43 UTC
- Source record
- Official CVE record