← Vulnerability feed

Vulnerability record · CVE-2026-8376 · published 26 May 2026

CVE-2026-8376: Perl vulnerability

Perl · Perl

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.

9.8 CVSS 3.1 Critical EPSS 0.48% · top 61.0% CWE-680 · CWE-680
9.8CVSS 3.1 base score
0.48%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References
8 Sep 2026Last modified by NVD

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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-8376 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-4176Perl vulnerabilityPerl versions from 5.9.4 before 5.40.4-RC1, from 5.41.0 before 5.42.2-RC1, from 5.43.0 before 5.43.9 contain a vulnerable version of Compress::Raw::Z…EPSS 0.81%9.8CVE-2022-48522Perl out-of-bounds write vulnerabilityIn Perl 5.34.0, function S_find_uninit_var in sv.c has a stack-based crash that can lead to remote code execution or local privilege escalation.EPSS 2.6%9.8CVE-2018-18311Perl integer overflow vulnerabilityPerl before 5.26.3 and 5.28.x before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.EPSS 12%9.8CVE-2018-18314Perl memory buffer overflow vulnerabilityPerl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations.EPSS 6.1%9.8CVE-2018-18312Perl memory buffer overflow vulnerabilityPerl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.EPSS 12%9.8CVE-2018-6797Debian linux out-of-bounds write vulnerabilityAn issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes w…EPSS 6.5%9.8CVE-2018-6913Debian linux out-of-bounds write vulnerabilityHeap-based buffer overflow in the pack function in Perl before 5.26.2 allows context-dependent attackers to execute arbitrary code via a large item c…EPSS 11%9.8CVE-2017-12814Perl memory buffer overflow vulnerabilityStack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before 5.26.1-RC1 on Windows allows…EPSS 7.0%

Source: NIST National Vulnerability Database (record CVE-2026-8376), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.