Skip to content
Heist/ feed
UnratedFix available

DEBIAN-CVE-2026-31789

Type: advisorySource: OSV1 source record

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.

Announced Source revision 1
Original source ↗

DEBIAN-CVE-2026-31789

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-31789

openssl

Source reference: /affected/0/package/name

Affected versions
3.0.10-1

Source reference: /affected/0/versions

3.0.10-1~deb12u1

Source reference: /affected/0/versions

3.0.11-1

Source reference: /affected/0/versions

3.0.11-1~deb12u1

Source reference: /affected/0/versions

3.0.11-1~deb12u2

Source reference: /affected/0/versions

3.0.12-1

Source reference: /affected/0/versions

3.0.12-2

Source reference: /affected/0/versions

3.0.13-1~deb12u1

Source reference: /affected/0/versions

3.0.13-1~deb12u2

Source reference: /affected/0/versions

3.0.14-1~deb12u1

Source reference: /affected/0/versions

3.0.14-1~deb12u2

Source reference: /affected/0/versions

3.0.15-1~deb12u1

Source reference: /affected/0/versions

3.0.16-1~deb12u1

Source reference: /affected/0/versions

3.0.17-1~deb12u1

Source reference: /affected/0/versions

3.0.17-1~deb12u2

Source reference: /affected/0/versions

3.0.17-1~deb12u3

Source reference: /affected/0/versions

3.0.18-1~deb12u1

Source reference: /affected/0/versions

3.0.18-1~deb12u2

Source reference: /affected/0/versions

3.0.19-1~deb12u1

Source reference: /affected/0/versions

3.0.9-1

Source reference: /affected/0/versions

Fixed versions
3.0.19-1~deb12u2

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

openssl

Source reference: /affected/1/package/name

Affected versions
3.5.1-1

Source reference: /affected/1/versions

3.5.1-1+deb13u1

Source reference: /affected/1/versions

3.5.2-1

Source reference: /affected/1/versions

3.5.3-1

Source reference: /affected/1/versions

3.5.4-1

Source reference: /affected/1/versions

3.5.4-1~deb13u1

Source reference: /affected/1/versions

3.5.4-1~deb13u2

Source reference: /affected/1/versions

3.5.5-1~deb13u1

Source reference: /affected/1/versions

Fixed versions
3.5.5-1~deb13u2

Source reference: /affected/1/ranges

Prerequisites
Not stated in this record

openssl

Source reference: /affected/2/package/name

Affected versions
3.5.1-1

Source reference: /affected/2/versions

3.5.2-1

Source reference: /affected/2/versions

3.5.3-1

Source reference: /affected/2/versions

3.5.4-1

Source reference: /affected/2/versions

3.5.4-1~deb13u1

Source reference: /affected/2/versions

3.5.4-1~deb13u2

Source reference: /affected/2/versions

3.5.5-1

Source reference: /affected/2/versions

3.5.5-1~deb13u1

Source reference: /affected/2/versions

3.5.5-1~deb13u2

Source reference: /affected/2/versions

3.5.6-1~deb13u1

Source reference: /affected/2/versions

3.5.6-1~deb13u2

Source reference: /affected/2/versions

3.5.7-1~deb13u1

Source reference: /affected/2/versions

3.5.7-1~deb13u2

Source reference: /affected/2/versions

3.5.7-1~deb13u3

Source reference: /affected/2/versions

3.6.0-1

Source reference: /affected/2/versions

3.6.0-2

Source reference: /affected/2/versions

3.6.0~~alpha1-1

Source reference: /affected/2/versions

3.6.0~~beta1-1

Source reference: /affected/2/versions

3.6.1-1

Source reference: /affected/2/versions

3.6.1-2

Source reference: /affected/2/versions

3.6.1-3

Source reference: /affected/2/versions

Fixed versions
3.6.2-1

Source reference: /affected/2/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "3.0.19-1~deb12u2"
          }
        ]
      }
    ],
    "package": {
      "name": "openssl",
      "purl": "pkg:deb/debian/openssl?arch=source&distro=bookworm",
      "ecosystem": "Debian:12"
    },
    "versions": [
      "3.0.10-1",
      "3.0.10-1~deb12u1",
      "3.0.11-1",
      "3.0.11-1~deb12u1",
      "3.0.11-1~deb12u2",
      "3.0.12-1",
      "3.0.12-2",
      "3.0.13-1~deb12u1",
      "3.0.13-1~deb12u2",
      "3.0.14-1~deb12u1",
      "3.0.14-1~deb12u2",
      "3.0.15-1~deb12u1",
      "3.0.16-1~deb12u1",
      "3.0.17-1~deb12u1",
      "3.0.17-1~deb12u2",
      "3.0.17-1~deb12u3",
      "3.0.18-1~deb12u1",
      "3.0.18-1~deb12u2",
      "3.0.19-1~deb12u1",
      "3.0.9-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-31789.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "3.5.5-1~deb13u2"
          }
        ]
      }
    ],
    "package": {
      "name": "openssl",
      "purl": "pkg:deb/debian/openssl?arch=source&distro=trixie",
      "ecosystem": "Debian:13"
    },
    "versions": [
      "3.5.1-1",
      "3.5.1-1+deb13u1",
      "3.5.2-1",
      "3.5.3-1",
      "3.5.4-1",
      "3.5.4-1~deb13u1",
      "3.5.4-1~deb13u2",
      "3.5.5-1~deb13u1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-31789.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "3.6.2-1"
          }
        ]
      }
    ],
    "package": {
      "name": "openssl",
      "purl": "pkg:deb/debian/openssl?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "3.5.1-1",
      "3.5.2-1",
      "3.5.3-1",
      "3.5.4-1",
      "3.5.4-1~deb13u1",
      "3.5.4-1~deb13u2",
      "3.5.5-1",
      "3.5.5-1~deb13u1",
      "3.5.5-1~deb13u2",
      "3.5.6-1~deb13u1",
      "3.5.6-1~deb13u2",
      "3.5.7-1~deb13u1",
      "3.5.7-1~deb13u2",
      "3.5.7-1~deb13u3",
      "3.6.0-1",
      "3.6.0-2",
      "3.6.0~~alpha1-1",
      "3.6.0~~beta1-1",
      "3.6.1-1",
      "3.6.1-2",
      "3.6.1-3"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-31789.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#56356 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement