CVE-2026-19487
Reported by cpansec · Published August 13, 2026
Perl versions from 5.9.4 before 5.41.9 produce incorrect regular expression match results when a stale failure flag ends the Aho-Corasick prescan early in S_find_byclass. The prescan walks the subject for positions where the full pattern could match, and the engine tries it from the leftmost one recorded. A failing transition sets the failed flag, and a later successful transition does not clear it, so the prescan reads the stale flag as a failure and stops before it can record a candidate that starts earlier. It takes a subject where one candidate is recorded and a later character then forces a fallback through a fail link that succeeds. Example: "ABCDE" =~ m/ABCF|BCDE|C/; # matches C at offset 2, not BCDE "ABCDE" =~ m/ABCF|BCDE|C(G)/; # no match, BCDE missed An alternation like this can miss input it should match, or match it on the wrong branch, so an access or filtering decision made from the result can be wrong.
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-Time | Amazon Linux | 1.03-477.amzn2023.0.11 |
| perl-File-stat | Amazon Linux | 1.09-477.amzn2023.0.11 |
| perl-sort | Amazon Linux | 2.04-477.amzn2023.0.11 |
| perl-Locale-Maketext-Simple | Amazon Linux | 1:0.21-477.amzn2023.0.11, 1:0.21-299.amzn2.0.6 |
| perl-IPC-Open3 | Amazon Linux | 1.21-477.amzn2023.0.11 |
| perl-English | Amazon Linux | 1.11-477.amzn2023.0.11 |
| perl-Math-Complex | Amazon Linux | 1.59-477.amzn2023.0.11 |
| perl-lib | Amazon Linux | 0.65-477.amzn2023.0.11 |
| perl-vmsish | Amazon Linux | 1.04-477.amzn2023.0.11 |
| perl-Package-Constants | Amazon Linux | 1:0.02-299.amzn2.0.6 |
| perl-autouse | Amazon Linux | 1.11-477.amzn2023.0.11 |
| perl-ExtUtils-Constant | Amazon Linux | 0.25-477.amzn2023.0.11 |
78 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 5.9.4 | ||
| amazon:2023 | perl-Time | 0 |
| amazon:2023 | perl-File-stat | 0 |
| amazon:2023 | perl-sort | 0 |
| amazon:2 | perl-Locale-Maketext-Simple | 0 |
| amazon:2023 | perl-IPC-Open3 | 0 |
| amazon:2023 | perl-English | 0 |
| amazon:2023 | perl-Math-Complex | 0 |
| amazon:2023 | perl-lib | 0 |
| amazon:2023 | perl-vmsish | 0 |
| amazon:2 | perl-Package-Constants | 0 |
| amazon:2023 | perl-autouse | 0 |
| amazon:2023 | perl-ExtUtils-Constant | 0 |
| amazon:2023 | perl-NEXT | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | 3.1.7 |
| amazon:2023 | perl-base | 0 |
| amazon:2 | perl | 0 |
| amazon:2023 | perl-Class-Struct | 0 |
| amazon:2023 | perl-filetest | 0 |
| amazon:2023 | perl-ODBM_File | 0 |
…and 106 more
Timeline
- Aug 13, 2026 CVE Published
- Aug 15, 2026 Coalition ESS Score
- Aug 20, 2026 Security Advisory
- Aug 24, 2026 EPSS Score (30 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-19487
vulnetix vdb fixes CVE-2026-19487
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-19487/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart