CVE-2026-19487
published medium CVSS 3.1 · 5.3Perl 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
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | perl5.9.4 to < 5.41.9 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)V3.1.7 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)V3.1.7 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)V3.1.7 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-4026 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3279 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bookworm | perl | Advisory build | 5.36.0-7+deb12u4 | DLA-4821-1 |
| Ubuntu | bionic | perl | Advisory build | 5.26.1-6ubuntu0.7+esm4 | USN-8736-1 |
Show 46 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)V3.1.7 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)V3.1.7 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Amazon Linux | AL2 | perlaarch64 | Listed in advisory | Not stated | ALAS2-2026-4026 |
| Ubuntu | focal | perl | Advisory build | 5.30.0-9ubuntu0.5+esm4 | USN-8736-1 |
| Ubuntu | jammy | perl | Advisory build | 5.34.0-3ubuntu1.9 | USN-8736-1 |
| Ubuntu | noble | perl | Advisory build | 5.38.2-3.2ubuntu0.6 | USN-8736-2 |
| Ubuntu | resolute | perl | Advisory build | 5.40.1-7ubuntu0.2 | USN-8736-1 |
| Ubuntu | trusty | perl | Advisory build | 5.18.2-2ubuntu1.7+esm9 | USN-8736-1 |
| Ubuntu | xenial | perl | Advisory build | 5.22.1-9ubuntu0.9+esm4 | USN-8736-1 |
| Ubuntu | bionic | libperl5.26 | Advisory build | 5.26.1-6ubuntu0.7+esm4 | USN-8736-1 |
| Ubuntu | bionic | perl-base | Advisory build | 5.26.1-6ubuntu0.7+esm4 | USN-8736-1 |
| Ubuntu | bionic | perl-debug | Advisory build | 5.26.1-6ubuntu0.7+esm4 | USN-8736-1 |
| Ubuntu | bionic | perl-modules-5.26 | Advisory build | 5.26.1-6ubuntu0.7+esm4 | USN-8736-1 |
| Ubuntu | focal | libperl5.30 | Advisory build | 5.30.0-9ubuntu0.5+esm4 | USN-8736-1 |
| Ubuntu | focal | perl-base | Advisory build | 5.30.0-9ubuntu0.5+esm4 | USN-8736-1 |
| Ubuntu | focal | perl-debug | Advisory build | 5.30.0-9ubuntu0.5+esm4 | USN-8736-1 |
| Ubuntu | focal | perl-modules-5.30 | Advisory build | 5.30.0-9ubuntu0.5+esm4 | USN-8736-1 |
| Ubuntu | jammy | libperl5.34 | Advisory build | 5.34.0-3ubuntu1.9 | USN-8736-1 |
| Ubuntu | jammy | perl-base | Advisory build | 5.34.0-3ubuntu1.9 | USN-8736-1 |
| Ubuntu | jammy | perl-debug | Advisory build | 5.34.0-3ubuntu1.9 | USN-8736-1 |
| Ubuntu | jammy | perl-modules-5.34 | Advisory build | 5.34.0-3ubuntu1.9 | USN-8736-1 |
| Ubuntu | noble | libperl5.38t64 | Advisory build | 5.38.2-3.2ubuntu0.6 | USN-8736-2 |
| Ubuntu | noble | perl-base | Advisory build | 5.38.2-3.2ubuntu0.6 | USN-8736-2 |
| Ubuntu | noble | perl-debug | Advisory build | 5.38.2-3.2ubuntu0.6 | USN-8736-2 |
| Ubuntu | noble | perl-modules-5.38 | Advisory build | 5.38.2-3.2ubuntu0.6 | USN-8736-2 |
| Ubuntu | resolute | libperl5.40 | Advisory build | 5.40.1-7ubuntu0.2 | USN-8736-1 |
| Ubuntu | resolute | perl-base | Advisory build | 5.40.1-7ubuntu0.2 | USN-8736-1 |
| Ubuntu | resolute | perl-debug | Advisory build | 5.40.1-7ubuntu0.2 | USN-8736-1 |
| Ubuntu | resolute | perl-modules-5.40 | Advisory build | 5.40.1-7ubuntu0.2 | USN-8736-1 |
| Ubuntu | trusty | libcgi-fast-perl | Advisory build | 5.18.2-2ubuntu1.7+esm9 | USN-8736-1 |
| Ubuntu | trusty | libperl5.18 | Advisory build | 5.18.2-2ubuntu1.7+esm9 | USN-8736-1 |
| Ubuntu | trusty | perl-base | Advisory build | 5.18.2-2ubuntu1.7+esm9 | USN-8736-1 |
| Ubuntu | trusty | perl-debug | Advisory build | 5.18.2-2ubuntu1.7+esm9 | USN-8736-1 |
| Ubuntu | trusty | perl-modules | Advisory build | 5.18.2-2ubuntu1.7+esm9 | USN-8736-1 |
| Ubuntu | xenial | libperl5.22 | Advisory build | 5.22.1-9ubuntu0.9+esm4 | USN-8736-1 |
| Ubuntu | xenial | perl-base | Advisory build | 5.22.1-9ubuntu0.9+esm4 | USN-8736-1 |
| Ubuntu | xenial | perl-debug | Advisory build | 5.22.1-9ubuntu0.9+esm4 | USN-8736-1 |
| Ubuntu | xenial | perl-modules-5.22 | Advisory build | 5.22.1-9ubuntu0.9+esm4 | USN-8736-1 |
| Amazon Linux | AL2 | perli686 | Listed in advisory | Not stated | ALAS2-2026-4026 |
| Amazon Linux | AL2 | perlnoarch | Listed in advisory | Not stated | ALAS2-2026-4026 |
| Amazon Linux | AL2 | perlsrc | Listed in advisory | Not stated | ALAS2-2026-4026 |
| Amazon Linux | AL2 | perlx86_64 | Listed in advisory | Not stated | ALAS2-2026-4026 |
| Amazon Linux | AL2023 | perlaarch64 | Listed in advisory | Not stated | ALAS2023-2026-3279 |
| Amazon Linux | AL2023 | perlnoarch | Listed in advisory | Not stated | ALAS2023-2026-3279 |
| Amazon Linux | AL2023 | perlsrc | Listed in advisory | Not stated | ALAS2023-2026-3279 |
| Amazon Linux | AL2023 | perlx86_64 | Listed in advisory | Not stated | ALAS2023-2026-3279 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| perl | 5.9.4 to < 5.41.9 (affected · custom)Default: unaffected | CPANSec · cna | |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | V3.1.7 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | V3.1.7 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | V3.1.7 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | V3.1.7 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | V3.1.7 and later (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
1- CWE-670 CWE-670 Always-Incorrect Control Flow Implementation
References
4Provider assertions
4CPANSec · cna
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
siemens-SADP · adp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e6e548d1e3667e7c473813bd6217993ca467496393687e175897cf56175ff11e
- Ingested
- 10 Nov 2026, 12:46:15 UTC
- Source record
- Official CVE record