PatchSiren cyber security CVE debrief
CVE-2026-8376 SHAY CVE debrief
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. The issue arises from Perl_study_chunk in regcomp_study.c checking the size of the joined substring buffer in characters rather than bytes, leading to an undersized SvGROW allocation and a subsequent copy writing past the end of the buffer.
- Vendor
- SHAY
- Product
- perl
- CVSS
- CRITICAL 9.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-05-26
- Original CVE updated
- 2026-09-08
- Advisory published
- 2026-05-26
- Advisory updated
- 2026-09-08
Who should care
Defenders responsible for Perl installations, especially those in environments where user-controlled input is compiled as regular expressions, should assess exposure and prioritize patching or mitigation.
Why it matters
This vulnerability in Perl could allow for code execution through exploitation, making it critical for defenders to assess exposure and prioritize patching or mitigation, especially in environments where user-controlled input is compiled as regular expressions.
- Potential for code execution through exploitation of this vulnerability
- Need for patching or mitigation to prevent exploitation
- Importance of input validation and sanitization to reduce risk
- Potential impact on systems using affected Perl versions
Technical summary
The vulnerability occurs in Perl_study_chunk in regcomp_study.c, where the size of the joined substring buffer is checked in characters rather than bytes. This leads to an undersized SvGROW allocation and a subsequent copy writing past the end of the buffer, causing a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds. The issue arises from Perl_study_chunk in regcomp_study.c checking the size of the joined substring buffer in characters rather than bytes, leading to an undersized SvGROW allocation and a subsequent copy writing past the end of the buffer. A caller that compiles an attacker-controlled regular expression on a 32-bit perl build triggers a heap
Defensive priority
Defenders should prioritize patching or mitigating this vulnerability, especially in environments where user-controlled input is compiled as regular expressions.
Recommended defensive actions
- Assess exposure and apply patches or updates to Perl installations
- Implement compensating controls, such as input validation and sanitization
- Monitor for potential exploitation attempts
- Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
Evidence notes
The CVE record and NVD entry provide details on the vulnerability, including its description, CVSS score, and affected versions. The vulnerability occurs in Perl_study_chunk in regcomp_study.c, where the size of the joined substring buffer is checked in characters rather than bytes. This leads to an undersized SvGROW allocation and a subsequent copy writing past the end of the buffer, causing a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds. Defenders should verify affected Perl
Sources and references
Verified primary and authoritative sources
-
CVE-2026-8376 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-8376
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-8376 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-8376
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/Perl/perl5/commit/5e7f119eb2bb1181be908701f22bf7068e722f1c.patch
9b29abf9-4ab0-4765-b253-1875cd9b441e - Patch
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.