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

Published Jul 13, 2026
·
Updated

Last updated 27 August 2026

Other sources

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 Smeasurestruct leading to an out-of-bounds heap read in pack and unpack.

Smeasurestruct 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 SSizet 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.

MITRE

Perl versions through 5.43.10 have an integer overflow in Smeasurestruct leading to an out-of-bounds heap read in pack and unpack

Microsoft

Affected Software

4 affected componentsFixes available
Perl Perl<=5.43.10
Perl Perl<=5.43.10
Microsoft azl3 perl 5.38.2-512<5.38.2-513
5.38.2-513
debian/perl<=5.32.1-4+deb11u3, <=5.32.1-4+deb11u5, <=5.36.0-7+deb12u3, <=5.36.0-7+deb12u2, <=5.40.1-6
5.42.3-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.38.2-513
  2. Upgrade

    Upgrade debian/perl to a version that resolves this vulnerability.

    Fixed in 5.42.3-1
  3. Upgrade

    Upgrade Perl to a version that resolves this vulnerability.

    Fixed in 5.40.5-RC1
  4. Upgrade

    Upgrade Perl to a version that resolves this vulnerability.

    Fixed in 5.42.3-RC1
  5. Upgrade

    Upgrade Perl to a version that resolves this vulnerability.

    Fixed in 5.44.0
  6. Compensating control

    If upgrading is not immediately possible, mitigate by preventing untrusted templates from being processed by Perl pack/unpack (only allow trusted inputs for pack/unpack template strings with @, X, and x position codes).

Event History

Jul 13, 2026
CVE Published
via MITRE·03:38 PM
Data Sourced
via MITRE·03:38 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·05:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 15, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:01 AM
Affected Software
Updated
via Microsoft·08:01 AM
DescriptionSeverity
Aug 25, 2026
Data Sourced
via Launchpad·08:11 PM
Description
Aug 26, 2026
Data Sourced
via Debian·08:12 PM
DescriptionAffected Software
Aug 28, 2026
Data Sourced
via Ubuntu·08:13 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-57432?

The severity of CVE-2026-57432 is rated at 57, indicating a moderate risk level.

2

What are the implications of CVE-2026-57432 for Perl users?

CVE-2026-57432 allows for an integer overflow leading to out-of-bounds heap read, potentially allowing malicious exploitation.

3

How do I fix CVE-2026-57432?

To fix CVE-2026-57432, upgrade to Perl version 5.43.11 or later which contains the necessary patches.

4

Which versions of Perl are affected by CVE-2026-57432?

Perl versions through 5.43.10 are affected by CVE-2026-57432.

5

What causes the vulnerability in CVE-2026-57432?

The vulnerability in CVE-2026-57432 is caused by an integer overflow in S_measure_struct that lacks an overflow check.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203