CVE-2026-57432: CWE-190 Integer Overflow or Wraparound in SHAY perl
Perl versions up to 5.43.10 contain an integer overflow vulnerability in the S_measure_struct function used by pack and unpack operations. This overflow can cause out-of-bounds heap reads when processing crafted templates with large repeat counts. An attacker supplying a malicious template could cause the program to read memory beyond the intended buffer, potentially exposing sensitive data.
AI Analysis
Technical Summary
CVE-2026-57432 is an integer overflow vulnerability in Perl (SHAY project) versions up to 5.43.10. The flaw exists in the S_measure_struct function, which calculates the total size of items in pack/unpack templates by multiplying each item's size by its repeat count without checking for overflow. A large repeat count causes the signed size total to wrap negative, allowing certain position codes (@, X, x) to incorrectly advance the buffer pointer out of bounds. This results in an out-of-bounds heap read, enabling an attacker to read memory beyond the buffer when using a crafted template derived from untrusted input.
Potential Impact
Successful exploitation allows an attacker to read heap memory beyond the intended buffer boundaries, potentially leaking sensitive information. The vulnerability has a high CVSS score (8.4) reflecting its impact on confidentiality, integrity, and availability. There is no indication of remote exploitation without local access (attack vector is local), and no known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted input with pack/unpack templates that could trigger large repeat counts. Monitor vendor communications for official patches or mitigations.
CVE-2026-57432: CWE-190 Integer Overflow or Wraparound in SHAY perl
Description
Perl versions up to 5.43.10 contain an integer overflow vulnerability in the S_measure_struct function used by pack and unpack operations. This overflow can cause out-of-bounds heap reads when processing crafted templates with large repeat counts. An attacker supplying a malicious template could cause the program to read memory beyond the intended buffer, potentially exposing sensitive data.
CVSS v3.1
Score 8.4high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-57432 is an integer overflow vulnerability in Perl (SHAY project) versions up to 5.43.10. The flaw exists in the S_measure_struct function, which calculates the total size of items in pack/unpack templates by multiplying each item's size by its repeat count without checking for overflow. A large repeat count causes the signed size total to wrap negative, allowing certain position codes (@, X, x) to incorrectly advance the buffer pointer out of bounds. This results in an out-of-bounds heap read, enabling an attacker to read memory beyond the buffer when using a crafted template derived from untrusted input.
Potential Impact
Successful exploitation allows an attacker to read heap memory beyond the intended buffer boundaries, potentially leaking sensitive information. The vulnerability has a high CVSS score (8.4) reflecting its impact on confidentiality, integrity, and availability. There is no indication of remote exploitation without local access (attack vector is local), and no known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted input with pack/unpack templates that could trigger large repeat counts. Monitor vendor communications for official patches or mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-06-24T13:09:26.322Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a55134768715ace437935a7
Added to database: 07/13/2026, 16:33:11 UTC
Last enriched: 07/20/2026, 19:20:01 UTC
Last updated: 08/26/2026, 10:52:09 UTC
Views: 131
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.