Skip to content
OpenAdvisories
Medium · 5.8 CVE-2026-31789 EUVD-2026-19968GHSA-j79m-9jxq-788r

Heap Buffer Overflow in Hexadecimal Conversion

Published Apr 7, 2026 · Updated May 12, 2026 · Assigned by openssl

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 products

VendorProductAffectedFixed
OpenSSL OpenSSL 3.6.0 – < 3.6.2, 3.5.0 – < 3.5.6, 3.4.0 – < 3.4.5, 3.3.0 – < 3.3.7, 3.0.0 – < 3.0.20 3.6.2

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 openssl 3.6.2-1 —
Debian 13 openssl 3.5.5-1~deb13u2 —
Debian 12 openssl 3.0.19-1~deb12u2 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 edk2 +1 No fix yet —
Ubuntu 26.10 openssl 3.5.5-1ubuntu3 —
Ubuntu 26.04 LTS edk2 +1 No fix yet —
Ubuntu 26.04 LTS openssl 3.5.5-1ubuntu3 —
Ubuntu 25.10 edk2 No fix yet —
Ubuntu 25.10 openssl 3.5.3-1ubuntu3.3 —
Ubuntu 24.04 LTS edk2 No fix yet —
Ubuntu 24.04 LTS openssl 3.0.13-0ubuntu3.9 —
Ubuntu 22.04 LTS openssl 3.0.2-0ubuntu1.23 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS-updates 24.04 LTS openssl-fips 3.0.13-0ubuntu3.12+Fips1 —
Ubuntu Pro FIPS-updates 22.04 LTS openssl +1 No fix yet —
Ubuntu Pro FIPS-preview 22.04 LTS openssl +1 No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 openssl +5 3.5.6-0.1.hum1 RHSA-2026:7261
ReleasePackageFixed inAdvisory
SLES 15 SP7 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES 15 SP7 openssl-1_1 1.1.1w-150700.11.16.1 SUSE-SU-2026:1386-1
SLES 15 SP7 openssl-3 3.2.3-150700.5.31.1 SUSE-SU-2026:1375-1
SLES 15 SP6 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES 15 SP6 openssl-1_1 1.1.1w-150600.5.26.2 SUSE-SU-2026:1577-1
SLES 15 SP6 openssl-3 3.1.4-150600.5.45.1 SUSE-SU-2026:1215-1
SLES 15 SP5 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES 15 SP5 openssl-1_1 1.1.1l-150500.17.51.1 SUSE-SU-2026:1290-1
SLES 15 SP5 openssl-3 3.0.8-150500.5.60.1 SUSE-SU-2026:1213-1
SLES 15 SP4 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES 15 SP4 openssl-1_1 1.1.1l-150400.7.90.1 SUSE-SU-2026:1257-1
SLES 15 SP4 openssl-3 3.0.8-150400.4.81.1 SUSE-SU-2026:1214-1
SLES 12 SP5 openssl-1_0_0 1.0.2p-3.106.1 SUSE-SU-2026:1256-1
SLES 12 SP5 openssl-1_1 1.1.1d-2.125.1 SUSE-SU-2026:1255-1
Show 14 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 openssl-3 3.5.0-160000.7.1 SUSE-SU-2026:21186-1
SLES for SAP 15 SP6 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES for SAP 15 SP6 openssl-1_1 1.1.1w-150600.5.26.2 SUSE-SU-2026:1577-1
SLES for SAP 15 SP6 openssl-3 3.1.4-150600.5.45.1 SUSE-SU-2026:1215-1
SLES for SAP 15 SP5 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES for SAP 15 SP5 openssl-1_1 1.1.1l-150500.17.51.1 SUSE-SU-2026:1290-1
SLES for SAP 15 SP5 openssl-3 3.0.8-150500.5.60.1 SUSE-SU-2026:1213-1
SLES for SAP 15 SP4 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLES for SAP 15 SP4 openssl-1_1 1.1.1l-150400.7.90.1 SUSE-SU-2026:1257-1
SLES for SAP 15 SP4 openssl-3 3.0.8-150400.4.81.1 SUSE-SU-2026:1214-1
SLES 16.0 openssl-3 3.5.0-160000.7.1 SUSE-SU-2026:21186-1
SLE Micro 6.2 openssl-3 3.5.0-160000.7.1 SUSE-SU-2026:21107-1
SLE Micro 6.1 openssl-3 3.1.4-slfo.1.1_9.1 SUSE-SU-2026:21037-1
SLE Micro 6.0 openssl-3 3.1.4-12.1 SUSE-SU-2026:21065-1
SLE Micro 5.5 openssl-1_1 1.1.1l-150500.17.51.1 SUSE-SU-2026:1290-1
SLE Micro 5.4 openssl-1_1 1.1.1l-150400.7.90.1 SUSE-SU-2026:1257-1
SLE Micro 5.4 openssl-3 3.0.8-150400.4.81.1 SUSE-SU-2026:1214-1
SLE Micro 5.3 openssl-1_1 1.1.1l-150400.7.90.1 SUSE-SU-2026:1257-1
SLE Micro 5.3 openssl-3 3.0.8-150400.4.81.1 SUSE-SU-2026:1214-1
SLE Micro 5.2 openssl-1_1 1.1.1d-150200.11.109.1 SUSE-SU-2026:1216-1
SLE HPC 15 SP5 openssl-1_1 1.1.1l-150500.17.51.1 SUSE-SU-2026:1290-1
SLE HPC 15 SP5 openssl-3 3.0.8-150500.5.60.1 SUSE-SU-2026:1213-1
SLE HPC 15 SP4 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
SLE HPC 15 SP4 openssl-1_1 1.1.1l-150400.7.90.1 SUSE-SU-2026:1257-1
SLE HPC 15 SP4 openssl-3 3.0.8-150400.4.81.1 SUSE-SU-2026:1214-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed openssl-3 3.5.3-4.1 openSUSE-SU-2026:10533-1
openSUSE Leap 16.0 openssl-3 3.5.0-160000.7.1 openSUSE-SU-2026:20525-1
openSUSE Leap 15.6 openssl-1_0_0 1.0.2p-150000.3.105.1 SUSE-SU-2026:1291-1
openSUSE Leap 15.6 openssl-3 3.1.4-150600.5.45.1 SUSE-SU-2026:1215-1
ReleasePackageFixed inAdvisory
Alpine v3.24 openssl 3.5.6-r0 —
Alpine v3.23 openssl 3.5.6-r0 —
Alpine v3.22 openssl 3.5.6-r0 —
Alpine v3.21 openssl 3.3.7-r0 —
Alpine v3.20 openssl 3.3.7-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 openssl 3.3.5-5 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling openssl +1 3.6.2-r0 —

Advisories 23

References