Vulnerability · Published Aug 9, 2026 · Assigned by CPANSec

CVE-2026-15534Perl versions through 5.45.1 have out-of-bounds heap reads and writes during regular expression matching via an undersized superlinear cache in S_regmatch

Medium 5.7

In plain English

A medium-severity integer overflow in perl. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 6% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.7Medium
Exploit odds (30 days)0.2%top 94.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Perl versions through 5.45.1 have out-of-bounds heap reads and writes during regular expression matching via an undersized superlinear cache in S_regmatch. The regex engine's superlinear cache holds one bit per subject position for each participating WHILEM node, so the bit count is the subject length plus one times the number of nodes. Nothing checks that product for positive overflow of the signed 32-bit count: a 286331153 byte subject matched against a pattern with 15 participating nodes stores the count as 14, leaving a two byte cache. The cache is then indexed from the real match position and node number, so reads go past the end of the allocation, and on failure CACHEsayNO sets a bit past it. A caller that matches an attacker controlled subject of this size against a pattern of this shape can crash the process or corrupt heap memory.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12perlno fix listedDEBIAN-CVE-2026-15534
Debian:13perlno fix listedDEBIAN-CVE-2026-15534
Debian:14perlno fix listedDEBIAN-CVE-2026-15534
Ubuntu:22.04:LTSperl5.34.0-3ubuntu1.9USN-8736-1
Ubuntu:22.04:LTSperl5.34.0-3ubuntu1.9UBUNTU-CVE-2026-15534
Ubuntu:24.04:LTSperl5.38.2-3.2ubuntu0.6UBUNTU-CVE-2026-15534
Ubuntu:24.04:LTSperl5.38.2-3.2ubuntu0.6USN-8736-2
Ubuntu:26.04:LTSperl5.40.1-7ubuntu0.2USN-8736-1
Ubuntu:26.04:LTSperl5.40.1-7ubuntu0.2UBUNTU-CVE-2026-15534
Ubuntu:26.10perlno fix listedUBUNTU-CVE-2026-15534

Affected products (as reported)

VendorProductVersions
perl 0 – through 5.45.1

Weakness: CWE-190, CWE-125, CWE-787 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

References