Out-of-bounds Read in Perl
CVE-2026-57432
Perl versions through 5.43.10 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.
Vulnerability class: Buffer Overflow
EPSS: 0.002 (11.2th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.4 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
Weakness classification (CWE)
References
- 9b29abf9-4ab0-4765-b253-1875cd9b441e (Patch, patch)
- 9b29abf9-4ab0-4765-b253-1875cd9b441e (Patch, patch)
- af854a3a-2127-422b-91ae-364da2661108 (Patch, Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2026-57432?
- CVE-2026-57432 is a high-severity vulnerability in Perl, classified under Out-of-bounds Read. CVSS score: 8.4/10. Published 2026-07-13.
- How severe is CVE-2026-57432?
- High severity. CVSS v3 base score is 8.4 out of 10.