CVE-2026-8376: perl Integer Overflow to Buffer Overflow
Vulnerability summary
CVE-2026-8376 is a critical (CVSS 9.8) Integer Overflow to Buffer Overflow vulnerability in perl. EPSS estimates a 0.48% chance of exploitation in the next 30 days, higher than 40.4% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 9 · Related 9Timeline
- 25-05-2026PublishedVulnerability first disclosed.
- 08-09-2026Last modifiedVulnerability information updated.
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 metrics
6 scores · 6 sources · 1 version- CVE.orgCNA7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · ChainguardEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
EPSS trend
Probability
0.48%
Chance of exploitation in the next 30 days
Percentile
40%
Versus all other CVEs
30-day change
+0.04 pp
From 0.44% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard5 products
- miniperl< 5.42.2-r3
- perl< 5.42.2-r3
- perl-dev< 5.42.2-r3
- perl-doc< 5.42.2-r3
- perl-utils< 5.42.2-r3
Wolfi5 products
- miniperl< 5.42.2-r3
- perl< 5.42.2-r3
- perl-dev< 5.42.2-r3
- perl-doc< 5.42.2-r3
- perl-utils< 5.42.2-r3
Debian1 product
- perl< 5.36.0-7+deb12u4 | < 5.40.1-6+deb13u1 | < 5.40.1-8
Mageia1 product
- perl< 5.36.0-1.3.mga9
Perl1 product
- perl≤ 5.43.10
Ubuntu1 product
- perl< 5.18.2-2ubuntu1.7+esm7 | < 5.26.1-6ubuntu0.7+esm2 | < 5.30.0-9ubuntu0.5+esm2 | < 5.34.0-3ubuntu1.7 | < 5.38.2-3.2ubuntu0.3 | < 5.40.1-6ubuntu0.1 | < 5.40.1-7ubuntu0.1
6 vendors · 14 products
References
15 linksShow all 15 references
- github.com/Perl/perl5PACKAGE