CVE-2026-19487

EUVD-2026-58110
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
5.3 MEDIUM
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Base Score
CVSS 3.x
EPSS Score
Percentile: 48.49%
Early Detection
Affected products identified ahead of NVD analysis through intelligence sources (CNA/ADP records, vendor advisories, Enginsight analysis).
VendorProductVersionSource
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP \(6ES7518-4AX00-1AB0\)
V3.1.7 ≤
𝑥
< *
ADP
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP \(6ES7518-4AX00-1AC0\)
V3.1.7 ≤
𝑥
< *
ADP
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP \(6ES7518-4FX00-1AB0\)
V3.1.7 ≤
𝑥
< *
ADP
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP \(6ES7518-4FX00-1AC0\)
V3.1.7 ≤
𝑥
< *
ADP
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP \(6AG1518-4AX00-4AC0\)
V3.1.7 ≤
𝑥
< *
ADP
Debian logo
Debian Releases
Debian Product
Codename
perl
bookworm
vulnerable
bookworm (security)
5.36.0-7+deb12u4
fixed
forky
5.42.3-1
fixed
sid
5.42.3-1
fixed
trixie
5.40.1-6+deb13u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
perl
bionic
Fixed 5.26.1-6ubuntu0.7+esm4
released
focal
Fixed 5.30.0-9ubuntu0.5+esm4
released
jammy
Fixed 5.34.0-3ubuntu1.9
released
noble
Fixed 5.38.2-3.2ubuntu0.6
released
resolute
Fixed 5.40.1-7ubuntu0.2
released
trusty
Fixed 5.18.2-2ubuntu1.7+esm9
released
xenial
Fixed 5.22.1-9ubuntu0.9+esm4
released
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
perl
Amazon Linux 2
4:5.16.3-299.amzn2.0.6
fixed
Amazon Linux 2023
4:5.32.1-477.amzn2023.0.11
fixed
perl-Attribute-Handlers
Amazon Linux 2023
0:1.01-477.amzn2023.0.11
fixed
perl-AutoLoader
Amazon Linux 2023
0:5.74-477.amzn2023.0.11
fixed
perl-AutoSplit
Amazon Linux 2023
0:5.74-477.amzn2023.0.11
fixed
perl-B
Amazon Linux 2023
0:1.80-477.amzn2023.0.11
fixed
perl-B-debuginfo
Amazon Linux 2023
0:1.80-477.amzn2023.0.11
fixed
perl-Benchmark
Amazon Linux 2023
0:1.23-477.amzn2023.0.11
fixed
perl-CPAN
Amazon Linux 2
0:1.9800-299.amzn2.0.6
fixed
perl-Class-Struct
Amazon Linux 2023
0:0.66-477.amzn2023.0.11
fixed
perl-Config-Extensions
Amazon Linux 2023
0:0.03-477.amzn2023.0.11
fixed
perl-DBM_Filter
Amazon Linux 2023
0:0.06-477.amzn2023.0.11
fixed
perl-Devel-Peek
Amazon Linux 2023
0:1.28-477.amzn2023.0.11
fixed
perl-Devel-Peek-debuginfo
Amazon Linux 2023
0:1.28-477.amzn2023.0.11
fixed
perl-Devel-SelfStubber
Amazon Linux 2023
0:1.06-477.amzn2023.0.11
fixed
perl-DirHandle
Amazon Linux 2023
0:1.05-477.amzn2023.0.11
fixed
perl-Dumpvalue
Amazon Linux 2023
0:2.27-477.amzn2023.0.11
fixed
perl-DynaLoader
Amazon Linux 2023
0:1.47-477.amzn2023.0.11
fixed
perl-English
Amazon Linux 2023
0:1.11-477.amzn2023.0.11
fixed
perl-Errno
Amazon Linux 2023
0:1.30-477.amzn2023.0.11
fixed
perl-ExtUtils-CBuilder
Amazon Linux 2
1:0.28.2.6-299.amzn2.0.6
fixed
perl-ExtUtils-Constant
Amazon Linux 2023
0:0.25-477.amzn2023.0.11
fixed
perl-ExtUtils-Embed
Amazon Linux 2
0:1.30-299.amzn2.0.6
fixed
Amazon Linux 2023
0:1.35-477.amzn2023.0.11
fixed
perl-ExtUtils-Install
Amazon Linux 2
0:1.58-299.amzn2.0.6
fixed
perl-ExtUtils-Miniperl
Amazon Linux 2023
0:1.09-477.amzn2023.0.11
fixed
perl-Fcntl
Amazon Linux 2023
0:1.13-477.amzn2023.0.11
fixed
perl-Fcntl-debuginfo
Amazon Linux 2023
0:1.13-477.amzn2023.0.11
fixed
perl-File-Basename
Amazon Linux 2023
0:2.85-477.amzn2023.0.11
fixed
perl-File-Compare
Amazon Linux 2023
0:1.100.600-477.amzn2023.0.11
fixed
perl-File-Copy
Amazon Linux 2023
0:2.34-477.amzn2023.0.11
fixed
perl-File-DosGlob
Amazon Linux 2023
0:1.12-477.amzn2023.0.11
fixed
perl-File-DosGlob-debuginfo
Amazon Linux 2023
0:1.12-477.amzn2023.0.11
fixed
perl-File-Find
Amazon Linux 2023
0:1.37-477.amzn2023.0.11
fixed
perl-File-stat
Amazon Linux 2023
0:1.09-477.amzn2023.0.11
fixed
perl-FileCache
Amazon Linux 2023
0:1.10-477.amzn2023.0.11
fixed
perl-FileHandle
Amazon Linux 2023
0:2.03-477.amzn2023.0.11
fixed
perl-FindBin
Amazon Linux 2023
0:1.51-477.amzn2023.0.11
fixed
perl-GDBM_File
Amazon Linux 2023
0:1.18-477.amzn2023.0.11
fixed
perl-GDBM_File-debuginfo
Amazon Linux 2023
0:1.18-477.amzn2023.0.11
fixed
perl-Getopt-Std
Amazon Linux 2023
0:1.12-477.amzn2023.0.11
fixed
perl-Hash-Util
Amazon Linux 2023
0:0.23-477.amzn2023.0.11
fixed
perl-Hash-Util-FieldHash
Amazon Linux 2023
0:1.20-477.amzn2023.0.11
fixed
perl-Hash-Util-FieldHash-debuginfo
Amazon Linux 2023
0:1.20-477.amzn2023.0.11
fixed
perl-Hash-Util-debuginfo
Amazon Linux 2023
0:0.23-477.amzn2023.0.11
fixed
perl-I18N-Collate
Amazon Linux 2023
0:1.02-477.amzn2023.0.11
fixed
perl-I18N-LangTags
Amazon Linux 2023
0:0.44-477.amzn2023.0.11
fixed
perl-I18N-Langinfo
Amazon Linux 2023
0:0.19-477.amzn2023.0.11
fixed
perl-I18N-Langinfo-debuginfo
Amazon Linux 2023
0:0.19-477.amzn2023.0.11
fixed
perl-IO
Amazon Linux 2023
0:1.43-477.amzn2023.0.11
fixed
perl-IO-Zlib
Amazon Linux 2
1:1.10-299.amzn2.0.6
fixed
perl-IO-debuginfo
Amazon Linux 2023
0:1.43-477.amzn2023.0.11
fixed
perl-IPC-Open3
Amazon Linux 2023
0:1.21-477.amzn2023.0.11
fixed
perl-Locale-Maketext-Simple
Amazon Linux 2
1:0.21-299.amzn2.0.6
fixed
Amazon Linux 2023
1:0.21-477.amzn2023.0.11
fixed
perl-Math-Complex
Amazon Linux 2023
0:1.59-477.amzn2023.0.11
fixed
perl-Memoize
Amazon Linux 2023
0:1.03-477.amzn2023.0.11
fixed
perl-Module-CoreList
Amazon Linux 2
1:2.76.02-299.amzn2.0.6
fixed
perl-Module-Loaded
Amazon Linux 2
1:0.08-299.amzn2.0.6
fixed
Amazon Linux 2023
1:0.08-477.amzn2023.0.11
fixed
perl-NDBM_File
Amazon Linux 2023
0:1.15-477.amzn2023.0.11
fixed
perl-NDBM_File-debuginfo
Amazon Linux 2023
0:1.15-477.amzn2023.0.11
fixed
perl-NEXT
Amazon Linux 2023
0:0.67-477.amzn2023.0.11
fixed
perl-Net
Amazon Linux 2023
0:1.02-477.amzn2023.0.11
fixed
perl-ODBM_File
Amazon Linux 2023
0:1.16-477.amzn2023.0.11
fixed
perl-ODBM_File-debuginfo
Amazon Linux 2023
0:1.16-477.amzn2023.0.11
fixed
perl-Object-Accessor
Amazon Linux 2
1:0.42-299.amzn2.0.6
fixed
perl-Opcode
Amazon Linux 2023
0:1.48-477.amzn2023.0.11
fixed
perl-Opcode-debuginfo
Amazon Linux 2023
0:1.48-477.amzn2023.0.11
fixed
perl-POSIX
Amazon Linux 2023
0:1.94-477.amzn2023.0.11
fixed
perl-POSIX-debuginfo
Amazon Linux 2023
0:1.94-477.amzn2023.0.11
fixed
perl-Package-Constants
Amazon Linux 2
1:0.02-299.amzn2.0.6
fixed
perl-Pod-Escapes
Amazon Linux 2
1:1.04-299.amzn2.0.6
fixed
perl-Pod-Functions
Amazon Linux 2023
0:1.13-477.amzn2023.0.11
fixed
perl-Pod-Html
Amazon Linux 2023
0:1.25-477.amzn2023.0.11
fixed
perl-Safe
Amazon Linux 2023
0:2.41-477.amzn2023.0.11
fixed
perl-Search-Dict
Amazon Linux 2023
0:1.07-477.amzn2023.0.11
fixed
perl-SelectSaver
Amazon Linux 2023
0:1.02-477.amzn2023.0.11
fixed
perl-SelfLoader
Amazon Linux 2023
0:1.26-477.amzn2023.0.11
fixed
perl-Symbol
Amazon Linux 2023
0:1.08-477.amzn2023.0.11
fixed
perl-Sys-Hostname
Amazon Linux 2023
0:1.23-477.amzn2023.0.11
fixed
perl-Sys-Hostname-debuginfo
Amazon Linux 2023
0:1.23-477.amzn2023.0.11
fixed
perl-Term-Complete
Amazon Linux 2023
0:1.403-477.amzn2023.0.11
fixed
perl-Term-ReadLine
Amazon Linux 2023
0:1.17-477.amzn2023.0.11
fixed
perl-Test
Amazon Linux 2023
0:1.31-477.amzn2023.0.11
fixed
perl-Text-Abbrev
Amazon Linux 2023
0:1.02-477.amzn2023.0.11
fixed
perl-Thread
Amazon Linux 2023
0:3.05-477.amzn2023.0.11
fixed
perl-Thread-Semaphore
Amazon Linux 2023
0:2.13-477.amzn2023.0.11
fixed
perl-Tie
Amazon Linux 2023
0:4.6-477.amzn2023.0.11
fixed
perl-Tie-File
Amazon Linux 2023
0:1.06-477.amzn2023.0.11
fixed
perl-Tie-Memoize
Amazon Linux 2023
0:1.1-477.amzn2023.0.11
fixed
perl-Time
Amazon Linux 2023
0:1.03-477.amzn2023.0.11
fixed
perl-Time-Piece
Amazon Linux 2
0:1.20.1-299.amzn2.0.6
fixed
Amazon Linux 2023
0:1.3401-477.amzn2023.0.11
fixed
perl-Time-Piece-debuginfo
Amazon Linux 2023
0:1.3401-477.amzn2023.0.11
fixed
perl-Unicode-UCD
Amazon Linux 2023
0:0.75-477.amzn2023.0.11
fixed
perl-User-pwent
Amazon Linux 2023
0:1.03-477.amzn2023.0.11
fixed
perl-autouse
Amazon Linux 2023
0:1.11-477.amzn2023.0.11
fixed
perl-base
Amazon Linux 2023
0:2.27-477.amzn2023.0.11
fixed
perl-blib
Amazon Linux 2023
0:1.07-477.amzn2023.0.11
fixed
perl-core
Amazon Linux 2
0:5.16.3-299.amzn2.0.6
fixed
perl-debugger
Amazon Linux 2023
0:1.56-477.amzn2023.0.11
fixed
perl-debuginfo
Amazon Linux 2
4:5.16.3-299.amzn2.0.6
fixed
Amazon Linux 2023
4:5.32.1-477.amzn2023.0.11
fixed
perl-debugsource
Amazon Linux 2023
4:5.32.1-477.amzn2023.0.11
fixed
perl-deprecate
Amazon Linux 2023
0:0.04-477.amzn2023.0.11
fixed
perl-devel
Amazon Linux 2
4:5.16.3-299.amzn2.0.6
fixed
Amazon Linux 2023
4:5.32.1-477.amzn2023.0.11
fixed
perl-diagnostics
Amazon Linux 2023
0:1.37-477.amzn2023.0.11
fixed
perl-doc
Amazon Linux 2023
0:5.32.1-477.amzn2023.0.11
fixed
perl-encoding-warnings
Amazon Linux 2023
0:0.13-477.amzn2023.0.11
fixed
perl-fields
Amazon Linux 2023
0:2.27-477.amzn2023.0.11
fixed
perl-filetest
Amazon Linux 2023
0:1.03-477.amzn2023.0.11
fixed
perl-if
Amazon Linux 2023
0:0.60.800-477.amzn2023.0.11
fixed
perl-interpreter
Amazon Linux 2023
4:5.32.1-477.amzn2023.0.11
fixed
perl-interpreter-debuginfo
Amazon Linux 2023
4:5.32.1-477.amzn2023.0.11
fixed
perl-less
Amazon Linux 2023
0:0.03-477.amzn2023.0.11
fixed
perl-lib
Amazon Linux 2023
0:0.65-477.amzn2023.0.11
fixed
perl-libnetcfg
Amazon Linux 2023
4:5.32.1-477.amzn2023.0.11
fixed
perl-libs
Amazon Linux 2
4:5.16.3-299.amzn2.0.6
fixed
Amazon Linux 2023
4:5.32.1-477.amzn2023.0.11
fixed
perl-libs-debuginfo
Amazon Linux 2023
4:5.32.1-477.amzn2023.0.11
fixed
perl-locale
Amazon Linux 2023
0:1.09-477.amzn2023.0.11
fixed
perl-macros
Amazon Linux 2
4:5.16.3-299.amzn2.0.6
fixed
Amazon Linux 2023
4:5.32.1-477.amzn2023.0.11
fixed
perl-meta-notation
Amazon Linux 2023
0:5.32.1-477.amzn2023.0.11
fixed
perl-mro
Amazon Linux 2023
0:1.23-477.amzn2023.0.11
fixed
perl-mro-debuginfo
Amazon Linux 2023
0:1.23-477.amzn2023.0.11
fixed
perl-open
Amazon Linux 2023
0:1.12-477.amzn2023.0.11
fixed
perl-overload
Amazon Linux 2023
0:1.31-477.amzn2023.0.11
fixed
perl-overloading
Amazon Linux 2023
0:0.02-477.amzn2023.0.11
fixed
perl-ph
Amazon Linux 2023
0:5.32.1-477.amzn2023.0.11
fixed
perl-sigtrap
Amazon Linux 2023
0:1.09-477.amzn2023.0.11
fixed
perl-sort
Amazon Linux 2023
0:2.04-477.amzn2023.0.11
fixed
perl-subs
Amazon Linux 2023
0:1.03-477.amzn2023.0.11
fixed
perl-tests
Amazon Linux 2
4:5.16.3-299.amzn2.0.6
fixed
Amazon Linux 2023
4:5.32.1-477.amzn2023.0.11
fixed
perl-utils
Amazon Linux 2023
0:5.32.1-477.amzn2023.0.11
fixed
perl-vars
Amazon Linux 2023
0:1.05-477.amzn2023.0.11
fixed
perl-vmsish
Amazon Linux 2023
0:1.04-477.amzn2023.0.11
fixed
Azure Linux logo
Azure Linux Releases
Azure Package
Release
perl
Azure Linux 3.0
0:5.38.2-516.azl3
fixed