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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | perl | no fix listed | DEBIAN-CVE-2026-15534 |
| Debian:13 | perl | no fix listed | DEBIAN-CVE-2026-15534 |
| Debian:14 | perl | no fix listed | DEBIAN-CVE-2026-15534 |
| Ubuntu:22.04:LTS | perl | 5.34.0-3ubuntu1.9 | USN-8736-1 |
| Ubuntu:22.04:LTS | perl | 5.34.0-3ubuntu1.9 | UBUNTU-CVE-2026-15534 |
| Ubuntu:24.04:LTS | perl | 5.38.2-3.2ubuntu0.6 | UBUNTU-CVE-2026-15534 |
| Ubuntu:24.04:LTS | perl | 5.38.2-3.2ubuntu0.6 | USN-8736-2 |
| Ubuntu:26.04:LTS | perl | 5.40.1-7ubuntu0.2 | USN-8736-1 |
| Ubuntu:26.04:LTS | perl | 5.40.1-7ubuntu0.2 | UBUNTU-CVE-2026-15534 |
| Ubuntu:26.10 | perl | no fix listed | UBUNTU-CVE-2026-15534 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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