cve.bz

CVE-2026-8376 perl perl: Integer Overflow to Buffer Overflow

9.8 criticalEPSS 0.6%Fix available

Critical (9.8) in perl perl. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 41st percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-05-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-680 Integer Overflow to Buffer Overflow
Published
Modified
Assigned by
CPANSec (CNA)
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-8376 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-8376?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-8376?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-8376 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
perl:perlthrough 5.43.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12perl5.36.0-7+deb12u4DEBIAN-CVE-2026-8376 DLA-4821-1
Debian13perl5.40.1-6+deb13u1DEBIAN-CVE-2026-8376
Debian14perl5.40.1-8DEBIAN-CVE-2026-8376
Ubuntu22.04:LTSperl5.34.0-3ubuntu1.7UBUNTU-CVE-2026-8376
Ubuntu24.04:LTSperl5.38.2-3.2ubuntu0.3UBUNTU-CVE-2026-8376
Ubuntu25.10perl5.40.1-6ubuntu0.1UBUNTU-CVE-2026-8376 USN-8467-2
Ubuntu26.04:LTSperl5.40.1-7ubuntu0.1UBUNTU-CVE-2026-8376
UbuntuPro:14.04:LTSperl5.18.2-2ubuntu1.7+esm7UBUNTU-CVE-2026-8376 USN-8467-1
UbuntuPro:16.04:LTSperl5.22.1-9ubuntu0.9+esm2USN-8467-1
UbuntuPro:18.04:LTSperl5.26.1-6ubuntu0.7+esm2UBUNTU-CVE-2026-8376 USN-8467-1
UbuntuPro:20.04:LTSperl5.30.0-9ubuntu0.5+esm2UBUNTU-CVE-2026-8376 USN-8467-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 13 moreperl5.26.1-150300.17.23.1SUSE-SU-2026:3558-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5perl5.18.2-12.35.1SUSE-SU-2026:3540-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0perl5.42.0-160000.3.1SUSE-SU-2026:22847-1
SUSELinux Micro 6.0perl5.38.2-5.1SUSE-SU-2026:23008-1
SUSELinux Micro 6.1perl5.38.2-slfo.1.1_3.1SUSE-SU-2026:23075-1
SUSELinux Micro 6.2perl5.42.0-160000.3.1SUSE-SU-2026:22929-1
openSUSELeap 16.0perl5.42.0-160000.3.1openSUSE-SU-2026:21411-1
Alpinev3.24perl5.42.3-r0ALPINE-CVE-2026-8376
Azure Linux3perl5.38.2-512AZL-87357

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Successful exploitation requires a specific application design where untrusted, attacker-controlled input is directly compiled as a regular expression by Perl.

The vulnerability is strictly limited to 32-bit architectures.

Standard 64-bit deployments are not affected by this specific integer overflow flaw, significantly reducing the likelihood of exploitation in modern enterprise environments.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10perlNot affected
Red Hat Enterprise Linux 6perlOut of support scope
Red Hat Enterprise Linux 7perlOut of support scope
Red Hat Enterprise Linux 8perlNot affected
Red Hat Enterprise Linux 8perl:5.32/perlNot affected
Red Hat Enterprise Linux 9perlNot affected
Red Hat Hardened ImagesperlNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-8376.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-295-11Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP2026-10-13Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.7, SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.7, SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.7 and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-680 (11).

References

Check your stackJSON