CVE-2026-57432: 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

High 8.4 EPSS 0.2% Perl

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.

What do these terms mean? CVE · CVSS score · exploited (KEV) · EPSS · backported fix · all terms

What to do now

  1. Check whether you run Perl and which version (commands below).
  2. Install the fixed version for your system: see “Patch it” below.
  3. Restart long-running Perl daemons (e.g. spamd, amavisd, munin-node)

Affected and fixed versions

Affected:

Patch it

Use the commands for your system. Distribution packages often keep an older version number with the fix backported, so compare with the fixed package versions in the table below, not only with the upstream version.

Debian
sudo apt update
sudo apt install --only-upgrade perl perl-base
Ubuntu
sudo apt update
sudo apt install --only-upgrade perl perl-base
RHEL, AlmaLinux, Rocky, Oracle
sudo dnf upgrade --refresh perl-interpreter perl-libs
Fedora
sudo dnf upgrade --refresh perl-interpreter perl-libs
SUSE / openSUSE
sudo zypper refresh
sudo zypper update perl perl-base
Amazon Linux
sudo dnf upgrade --releasever=latest perl-interpreter perl-libs
Arch Linux
sudo pacman -Syu
Alpine
apk update && apk upgrade perl
FreeBSD
pkg update && pkg upgrade perl5 (lang/perl5.42; or perl5.40)

General update steps for every system are on the Linux and Unix & BSD pages; after updating, see which services to restart.

Fix status in Linux distributions

ReleasePackageStatusFixed version / advisory
Debian 12perlfixed5.36.0-7+deb12u4
Debian 13perlfixed5.40.1-6+deb13u1
Debian testingperlfixed5.40.1-8
Red Hat Enterprise Linux 9perlfix deferred
Red Hat Enterprise Linux 8perlfix deferred
Red Hat Enterprise Linux 8perl:5.32/perlfix deferred
Red Hat Enterprise Linux 7perlfix deferred
Red Hat Enterprise Linux 6perlfix deferred
Red Hat Enterprise Linux 10perlfix deferred

From the Debian security tracker, Ubuntu CVE tracker and Red Hat Security Data API, refreshed every few hours.

Sources

Page generated automatically from official sources on 2026-11-03 18:05 UTC. Always confirm with your vendor's advisory.