CVE-2026-19487

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

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.


We have discovered 24,772 live websites that are affected by CVE-2026-19487.

Run a Free Instant Scan




Affected Software

Product  Perl
Category Programming Languages
Vulnerable Domains24,772 live websites (92% of Perl install base)
Vulnerable Versions
  • from 5.9.4 through 5.41.9
Vulnerable Versions Count57 versions ( 83% of all versions)


Common Weakness Enumeration

CWE-670 Always-Incorrect Control Flow Implementation



Details

  • Published - Aug 13, 2026
  • Updated - Aug 13, 2026

Website Distribution by Country

Number of websites using CVE-2026-19487
United States7,174 websites



Russia3,736 websites
France1,902 websites
GB1,835 websites
Germany1,641 websites
Japan883 websites
China699 websites
Czech Republic646 websites
Canada559 websites
Hungary529 websites

Website Distribution by TLD

Number of websites using CVE-2026-19487
.com9,139 websites
.ru3,123 websites
.org1,606 websites
.net1,171 websites
.de1,102 websites
.co.uk685 websites
.edu606 websites
.cz459 websites
.fr439 websites
.at384 websites

Vulnerable Versions

Vulnerable versions are highlighted in red

Websites affected by CVE-2026-19487

Top websites that are affected by CVE-2026-19487. Please click on the "Contact us" link to get more information.
DomainCountryRankContacts
******.********.***.uk GB*,***
*****.com United States*,***
*****.********.edu United States*,***
*********.edu United States**,***
********************.org United States**,***
*********.com United States**,***
*********.com United States**,***
**********.com United States**,***
*******.*****.com United States**,***
*******.****************.com United States**,***
See full domain list

FAQ

CVE-2026-19487 is Always-Incorrect Control Flow Implementation in Perl
A total of 24,772 websites have been identified as vulnerable to CVE-2026-19487, based on global website indexing conducted by WebTechSurvey.
The Perl is affected by the CVE-2026-19487 vulnerability.
Perl versions up to 5.41.9 are vulnerable to CVE-2026-19487.
CVE-2026-19487 is resolved in version 5.41.9 of Perl.