Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-8376: CWE-680 Integer Overflow to Buffer Overflow in SHAY perl

0
Unknown
VulnerabilityCVE-2026-8376cvecve-2026-8376cwe-680
Published: Mon May 25 2026 (05/25/2026, 23:53:27 UTC)
Source: CVE Database V5
Vendor/Project: SHAY
Product: 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

AILast updated: 05/26/2026, 00:39:54 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses