CVE Wiki Pixee · CVE intelligence
← All CVEs

CVE-2026-13221

Critical · CVSS 9.1

Perl (perl5) — Integer overflow in regex trie compilation leading to silent incorrect match results (CWE-190)

CVSS
9.1
nvd
EPSS
KEV
No
Class
oss containerizable
CWE-190

Description

Perl versions through 5.43.9 produce silently incorrect regular expression matches when an alternation of more than 65535 fixed string branches is compiled into a trie in Perl_study_chunk. When such branches are combined into a trie, the delta between the first branch and the shared tail is stored in a 16-bit field. A branch count above 65535 overflows the field, and the trie's match decision table is truncated with no warning or error. A pattern of this shape produces false positive matches (matching strings it should not) and false negative matches (failing to match strings it should). When such a pattern gates an access or filtering decision, the result is wrong.

Search profile — drives PoC discovery

Symbols Perl_study_chunktriealternation6553516-bit fielddeltabranch count overflowmatch decision table truncationfixed string branchesperl5
Keywords CVE-2026-13221Perl regex trie integer overflowPerl_study_chunk overflowperl5 alternation 65535 trieperl regex false positive false negativeCWE-190 perl regexperl5 trie branch count overflowperl regex match bypass03f74bbbd3a68350d926ee93d56ee4808c28c4c7perl5 issue 23388
Versions: through 5.43.9

References

Status: enriched · ingested 2026-07-14T18:00:20.000Z · profiled 2026-07-14T18:30:20.000Z