CVE-2026-8376
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
14cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:*range: <=5.43.10
- (no CPE)
- osv-coords11 versionspkg:apk/wolfi/perl-devpkg:apk/chainguard/perl-docpkg:apk/wolfi/perl-docpkg:apk/chainguard/perl-devpkg:apk/chainguard/perlpkg:apk/wolfi/perlpkg:apk/wolfi/miniperlpkg:rpm/opensuse/perl&distro=openSUSE%20Leap%2016.0pkg:apk/chainguard/miniperlpkg:apk/wolfi/perl-utilspkg:apk/chainguard/perl-utils
< 5.42.2-r3+ 10 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.0-160000.3.1
- (no CPE)range: < 5.42.2-r3
- (no CPE)range: < 5.42.2-r3
- (no CPE)range: < 5.42.2-r3
- Range: <5.40.5-RC1, 5.41.0 to <5.42.3-RC1, 5.43.0 to <5.43.11
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.