Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.8
CVE-2026-8376: Perl versions through 5.43.10 allow a heap overflow when compiling regex
CVE-2026-8376
Summary
A specific type of regular expression can cause a memory overflow in 32-bit versions of Perl, potentially leading to a crash or security issue. This affects any system running a 32-bit Perl version up to 5.43.10. To stay secure, update to a newer version of Perl, such as 5.44.0 or later, which fixes this issue.
What to do
No fix is available yet. Check with your software vendor for updates.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| perl | perl |
<= 5.43.10 cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:* |
Original title
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 ...
Original 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.
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.
Vulnerability type
CWE-680
Published: 26 May 2026 · Updated: 20 Jul 2026 · First seen: 26 May 2026