CVE-2026-8376: CWE-680 Integer Overflow to Buffer Overflow in SHAY perl
Perl versions through 5.43.10 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds. Perl_study_chunk in regcomp_study.c checked the size of the joined substring buffer in characters rather than bytes. For a quantified fixed substring with a large minimum count, the byte length mincount * l could overflow SSize_t, producing an undersized SvGROW allocation; the subsequent copy writes past the end of the buffer. A caller that compiles an attacker-controlled regular expression on a 32-bit perl build triggers a heap buffer overflow at compile time.
AI Analysis
Technical Summary
CVE-2026-8376 is a heap buffer overflow vulnerability in Perl (versions through 5.43.10) on 32-bit architectures. The flaw exists in the Perl_study_chunk function within regcomp_study.c, which calculates the size of a buffer for a repeated fixed substring incorrectly by measuring characters rather than bytes. When a large minimum repetition count is specified, the multiplication can overflow the SSize_t type, causing the SvGROW allocation to be too small. This leads to a heap buffer overflow during the compilation of attacker-controlled regular expressions.
Potential Impact
An attacker who can supply a crafted regular expression to a vulnerable 32-bit Perl build can trigger a heap buffer overflow at compile time. This may lead to memory corruption, potentially allowing code execution or denial of service. However, no known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid compiling untrusted regular expressions on 32-bit Perl builds. Monitor official SHAY or Perl project advisories for updates.
CVE-2026-8376: CWE-680 Integer Overflow to Buffer Overflow in SHAY perl
Description
Perl versions through 5.43.10 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds. Perl_study_chunk in regcomp_study.c checked the size of the joined substring buffer in characters rather than bytes. For a quantified fixed substring with a large minimum count, the byte length mincount * l could overflow SSize_t, producing an undersized SvGROW allocation; the subsequent copy writes past the end of the buffer. A caller that compiles an attacker-controlled regular expression on a 32-bit perl build triggers a heap buffer overflow at compile time.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-8376 is a heap buffer overflow vulnerability in Perl (versions through 5.43.10) on 32-bit architectures. The flaw exists in the Perl_study_chunk function within regcomp_study.c, which calculates the size of a buffer for a repeated fixed substring incorrectly by measuring characters rather than bytes. When a large minimum repetition count is specified, the multiplication can overflow the SSize_t type, causing the SvGROW allocation to be too small. This leads to a heap buffer overflow during the compilation of attacker-controlled regular expressions.
Potential Impact
An attacker who can supply a crafted regular expression to a vulnerable 32-bit Perl build can trigger a heap buffer overflow at compile time. This may lead to memory corruption, potentially allowing code execution or denial of service. However, no known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid compiling untrusted regular expressions on 32-bit Perl builds. Monitor official SHAY or Perl project advisories for updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-05-12T08:15:41.456Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a14e85ba5ae1af1aa0191bb
Added to database: 5/26/2026, 12:24:59 AM
Last enriched: 5/26/2026, 12:39:54 AM
Last updated: 5/26/2026, 3:45:36 AM
Views: 4
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.