Skip to content
OpenAdvisories
Medium ALAS2-2026-4026 2 CVEs

Moderate: perl security update (Amazon Linux 2)

Published Oct 26, 2026 · Updated Oct 26, 2026

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: 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. 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. CVE-2026-15534: Perl versions through 5.45.1 have out-of-bounds heap reads and writes during regular expression matching via an undersized superlinear cache in S_regmatch. The regex engine's superlinear cache holds one bit per subject position for each participating WHILEM node, so the bit count is the subject length plus one times the number of nodes. Nothing checks that product for positive overflow of the signed 32-bit count: a 286331153 byte subject matched against a pattern with 15 participating nodes stores the count as 14, leaving a two byte cache. The cache is then indexed from the real match position and node number, so reads go past the end of the allocation, and on failure CACHEsayNO sets a bit past it. A caller that matches an attacker controlled subject of this size against a pattern of this shape can crash the process or corrupt heap memory.

Fixed packages 19

ReleasePackageFixed in
Amazon Linux · 2 perl 4:5.16.3-299.amzn2.0.6
Amazon Linux · 2 perl-core 0:5.16.3-299.amzn2.0.6
Amazon Linux · 2 perl-CPAN 0:1.9800-299.amzn2.0.6
Amazon Linux · 2 perl-debuginfo 4:5.16.3-299.amzn2.0.6
Amazon Linux · 2 perl-devel 4:5.16.3-299.amzn2.0.6
Amazon Linux · 2 perl-ExtUtils-CBuilder 1:0.28.2.6-299.amzn2.0.6
Amazon Linux · 2 perl-ExtUtils-Embed 0:1.30-299.amzn2.0.6
Amazon Linux · 2 perl-ExtUtils-Install 0:1.58-299.amzn2.0.6
Amazon Linux · 2 perl-IO-Zlib 1:1.10-299.amzn2.0.6
Amazon Linux · 2 perl-libs 4:5.16.3-299.amzn2.0.6
Amazon Linux · 2 perl-Locale-Maketext-Simple 1:0.21-299.amzn2.0.6
Amazon Linux · 2 perl-macros 4:5.16.3-299.amzn2.0.6
Amazon Linux · 2 perl-Module-CoreList 1:2.76.02-299.amzn2.0.6
Amazon Linux · 2 perl-Module-Loaded 1:0.08-299.amzn2.0.6
Amazon Linux · 2 perl-Object-Accessor 1:0.42-299.amzn2.0.6
Amazon Linux · 2 perl-Package-Constants 1:0.02-299.amzn2.0.6
Amazon Linux · 2 perl-Pod-Escapes 1:1.04-299.amzn2.0.6
Amazon Linux · 2 perl-tests 4:5.16.3-299.amzn2.0.6
Amazon Linux · 2 perl-Time-Piece 0:1.20.1-299.amzn2.0.6

Vulnerabilities 2

  • Medium 5.7

    Perl versions through 5.45.1 have out-of-bounds heap reads and writes during regular expression matching via an undersized superlinear cache in S_regmatch

    Perl versions through 5.45.1 have out-of-bounds heap reads and writes during regular expression matching via an undersized superlinear cache in S_regmatch. The regex engine's superlinear cache holds one bit per subject position for each participating WHILEM n…

  • Medium 5.3

    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 …

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-15534.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-19487.html