Critical severity9.8NVD Advisory· Published May 26, 2026· Updated May 27, 2026
CVE-2026-8376
CVE-2026-8376
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 Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
12(expand)+ 1 more
- (no CPE)
- (no CPE)range: <=5.43.10
- osv-coords10 versionspkg:apk/chainguard/miniperlpkg:apk/chainguard/perlpkg:apk/chainguard/perl-devpkg:apk/chainguard/perl-docpkg:apk/chainguard/perl-utilspkg:apk/wolfi/miniperlpkg:apk/wolfi/perlpkg:apk/wolfi/perl-devpkg:apk/wolfi/perl-docpkg:apk/wolfi/perl-utils
< 5.42.2-r3+ 9 more
- (no CPE)range: < 5.42.2-r3
- (no CPE)range: < 5.42.2-r3
- (no CPE)range: < 5.42.2-r3
- (no CPE)range: < 5.42.2-r3
- (no CPE)range: < 5.42.2-r3
- (no CPE)range: < 5.42.2-r3
- (no CPE)range: < 5.42.2-r3
- (no CPE)range: < 5.42.2-r3
- (no CPE)range: < 5.42.2-r3
- (no CPE)range: < 5.42.2-r3
Patches
Vulnerability mechanics
References
2- github.com/Perl/perl5/commit/5e7f119eb2bb1181be908701f22bf7068e722f1c.patchnvdPatch
- www.openwall.com/lists/oss-security/2026/05/26/1nvdMailing ListThird Party Advisory
News mentions
0No linked articles in our index yet.