Skip to content
Heist/ feed
HighFix available

DEBIAN-CVE-2026-57432

Type: advisorySource: OSV1 source record

Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have an integer overflow in S_measure_struct leading to an out-of-bounds heap read in pack and unpack. S_measure_struct adds each item's size times its repeat count to a running total with no overflow check, so a large repeat count in a pack or unpack template wraps the signed SSize_t total negative. The @, X, and x position codes then guard their moves with a signed length comparison that passes when the length is negative, advancing the buffer pointer out of bounds. A template derived from untrusted input can read heap memory past the buffer and return it to the caller.

Announced Source revision 1
Original source ↗

DEBIAN-CVE-2026-57432

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-57432

perl

Source reference: /affected/0/package/name

Affected versions
5.36.0-7

Source reference: /affected/0/versions

5.36.0-7+deb12u1

Source reference: /affected/0/versions

5.36.0-7+deb12u2

Source reference: /affected/0/versions

5.36.0-7+deb12u3

Source reference: /affected/0/versions

Fixed versions
5.36.0-7+deb12u4

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

perl

Source reference: /affected/1/package/name

Affected versions
5.40.1-6

Source reference: /affected/1/versions

Fixed versions
5.40.1-6+deb13u1

Source reference: /affected/1/ranges

Prerequisites
Not stated in this record

perl

Source reference: /affected/2/package/name

Affected versions
5.40.1-6

Source reference: /affected/2/versions

5.40.1-7

Source reference: /affected/2/versions

Fixed versions
5.40.1-8

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": "5.36.0-7+deb12u4"
          }
        ]
      }
    ],
    "package": {
      "name": "perl",
      "purl": "pkg:deb/debian/perl?arch=source&distro=bookworm",
      "ecosystem": "Debian:12"
    },
    "versions": [
      "5.36.0-7",
      "5.36.0-7+deb12u1",
      "5.36.0-7+deb12u2",
      "5.36.0-7+deb12u3"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-57432.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "5.40.1-6+deb13u1"
          }
        ]
      }
    ],
    "package": {
      "name": "perl",
      "purl": "pkg:deb/debian/perl?arch=source&distro=trixie",
      "ecosystem": "Debian:13"
    },
    "versions": [
      "5.40.1-6"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-57432.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "5.40.1-8"
          }
        ]
      }
    ],
    "package": {
      "name": "perl",
      "purl": "pkg:deb/debian/perl?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "5.40.1-6",
      "5.40.1-7"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-57432.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]
Related CVEs
CVE-2026-57432

Source reference: /upstream

Publisher severity

high

Source reference: /severity/0/score

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