Critical severity9.1OSV Advisory· Published Jul 13, 2026· Updated Jul 14, 2026
CVE-2026-13221
CVE-2026-13221
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.
Affected products
14v5.43.9, v5.43.8, v5.42.0, …+ 1 more
- (no CPE)range: v5.43.9, v5.43.8, v5.42.0, …
- (no CPE)range: <5.43.9
- osv-coords11 versionspkg:apk/chainguard/miniperlpkg:apk/chainguard/perlpkg:apk/chainguard/perl-devpkg:apk/chainguard/perl-docpkg:apk/chainguard/perl-utilspkg:apk/wolfi/miniperlpkg:apk/wolfi/perlpkg:apk/wolfi/perl-devpkg:apk/wolfi/perl-docpkg:apk/wolfi/perl-utilspkg:rpm/opensuse/perl&distro=openSUSE%20Leap%2016.0
< 5.44.0-r0+ 10 more
- (no CPE)range: < 5.44.0-r0
- (no CPE)range: < 5.44.0-r0
- (no CPE)range: < 5.44.0-r0
- (no CPE)range: < 5.44.0-r0
- (no CPE)range: < 5.44.0-r0
- (no CPE)range: < 5.44.0-r0
- (no CPE)range: < 5.44.0-r0
- (no CPE)range: < 5.44.0-r0
- (no CPE)range: < 5.44.0-r0
- (no CPE)range: < 5.44.0-r0
- (no CPE)range: < 5.42.0-160000.3.1
Patches
Vulnerability mechanics
References
3- www.openwall.com/lists/oss-security/2026/07/13/5nvdMailing ListPatchThird Party Advisory
- github.com/Perl/perl5/commit/03f74bbbd3a68350d926ee93d56ee4808c28c4c7.patchnvdPatch
- github.com/Perl/perl5/issues/23388nvdIssue Tracking
News mentions
1- Perl Ecosystem: Five Vulnerabilities Disclosed Together Affecting Core and ModulesVypr Intelligence · Jul 14, 2026