CVE-2026-8376 Memory corruption in perl:perl

High 7.3 Published Updated

Heap buffer overflow in Perl regex compilation on 32-bit builds allows attackers to execute code or cause denial of service via crafted regular expressions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-8376?

CVE-2026-8376 is a high-severity memory corruption vulnerability in perl:perl, published on 25 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-680

Which versions are affected by CVE-2026-8376?

It affects 1 product.

Products include Perl Perl.

How do I fix CVE-2026-8376?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-8376 being exploited?

There is no known exploitation of CVE-2026-8376 in the wild and no public exploit code.

Sources

Also known as AZL-87357, CLSA-2026-1780135768, CLSA-2026-1780136761, CLSA-2026-1780136870, CLSA-2026-1780391238, CLSA-2026-1780391418 and 22 more.

Is CVE-2026-8376 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free