CVE-2026-8376
Reported by cpansec · Published May 25, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perl | Wolfi | 5.42.2-r3 |
| perl-AutoSplit | Amazon Linux | 5.74-477.amzn2023.0.9 |
| perl-open | Amazon Linux | 1.12-477.amzn2023.0.9 |
| perl-diagnostics | Amazon Linux | 1.37-477.amzn2023.0.9 |
| perl-Term-ReadLine | Amazon Linux | 1.17-477.amzn2023.0.9 |
| perl-Package-Constants | Amazon Linux | 1:0.02-299.amzn2.0.4 |
| perl-FindBin | Amazon Linux | 1.51-477.amzn2023.0.9 |
| perl-Net | Amazon Linux | 1.02-477.amzn2023.0.9 |
| perl-DBM_Filter | Amazon Linux | 0.06-477.amzn2023.0.9 |
| perl-vars | Amazon Linux | 1.05-477.amzn2023.0.9 |
| perl | Chainguard | 5.42.2-r3 |
| perl-encoding-warnings | Amazon Linux | 0.13-477.amzn2023.0.9 |
77 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0, 5.41.0, 5.43.0 | ||
| wolfi | perl | 0 |
| amazon:2023 | perl-AutoSplit | 0 |
| amazon:2023 | perl-open | 0 |
| amazon:2023 | perl-diagnostics | 0 |
| amazon:2023 | perl-Term-ReadLine | 0 |
| amazon:2 | perl-Package-Constants | 0 |
| amazon:2023 | perl-FindBin | 0 |
| amazon:2023 | perl-Net | 0 |
| amazon:2023 | perl-DBM_Filter | 0 |
| amazon:2023 | perl-vars | 0 |
| chainguard | perl | 0 |
| amazon:2023 | perl-encoding-warnings | 0 |
| amazon:2023 | perl-I18N-Collate | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | 3.1.7 |
| 5.41.0, 5.43.0, 0 | ||
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | 3.1.7 |
| amazon:2023 | perl-Hash-Util-FieldHash | 0 |
| amazon:2023 | perl-Config-Extensions | 0 |
| amazon:2023 | perl-Time | 0 |
…and 110 more
Timeline
- May 22, 2026 CVE Published
- May 26, 2026 EPSS Score (30 in total, the first dated here)
- Jun 2, 2026 Security Advisory (3 in total, the first dated here)
- Aug 11, 2026 Distribution Patch
- Nov 10, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-8376
vulnetix vdb fixes CVE-2026-8376
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-8376/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart