CVE-2026-8376: CWE-680 Integer Overflow to Buffer Overflow
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 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
This vulnerability in Perl (CVE-2026-8376) involves an integer overflow during the calculation of buffer size when compiling regular expressions containing repeated fixed strings on 32-bit builds up to version 5.43.10. The integer overflow leads to allocation of an undersized heap buffer, which is then overflowed by out-of-bounds writes, causing memory corruption. The issue is classified under CWE-680 (Integer Overflow to Buffer Overflow). The CVSS 3.1 base score is 7.3, indicating high severity. There is no confirmed patch or official remediation available at this time, and no known exploits have been reported in the wild.
Potential Impact
Successful exploitation can lead to memory corruption on affected 32-bit Perl builds, potentially causing denial of service or other impacts related to corrupted memory. The vulnerability affects confidentiality, integrity, and availability as indicated by the CVSS vector (C:L/I:L/A:L). However, no active exploitation has been observed.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when processing untrusted regular expressions with repeated fixed strings on 32-bit Perl builds up to version 5.43.10.
CVE-2026-8376: CWE-680 Integer Overflow to Buffer Overflow
Description
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 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.
CVSS v3.1
Score 7.3high
Affected software
pkg:github/perlRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in Perl (CVE-2026-8376) involves an integer overflow during the calculation of buffer size when compiling regular expressions containing repeated fixed strings on 32-bit builds up to version 5.43.10. The integer overflow leads to allocation of an undersized heap buffer, which is then overflowed by out-of-bounds writes, causing memory corruption. The issue is classified under CWE-680 (Integer Overflow to Buffer Overflow). The CVSS 3.1 base score is 7.3, indicating high severity. There is no confirmed patch or official remediation available at this time, and no known exploits have been reported in the wild.
Potential Impact
Successful exploitation can lead to memory corruption on affected 32-bit Perl builds, potentially causing denial of service or other impacts related to corrupted memory. The vulnerability affects confidentiality, integrity, and availability as indicated by the CVSS vector (C:L/I:L/A:L). However, no active exploitation has been observed.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when processing untrusted regular expressions with repeated fixed strings on 32-bit Perl builds up to version 5.43.10.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-05-12T08:15:41.456Z
- State
- PUBLISHED
Threat ID: 6a14e85ba5ae1af1aa0191bb
Added to database: 05/26/2026, 00:24:59 UTC
Last enriched: 06/29/2026, 22:48:31 UTC
Last updated: 09/11/2026, 22:23:30 UTC
Views: 138
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.