CVE-2026-13221
Last modified
CVE-2026-13221 is a critical-severity vulnerability rated 9.1/10 on the CVSS scale. Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.10 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). EPSS estimates a 0.43% chance of exploitation in the next 30 days.
Description
Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.10 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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Perl | Perl | <= 5.43.9 |
References
- https://github.com/Perl/perl5/issues/23388Issue Tracking
- https://www.openwall.com/lists/oss-security/2026/07/13/5Mailing List, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-13221?
How severe is CVE-2026-13221?
How do I fix CVE-2026-13221?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-13214The OCPP 1.6 client in subsys/net/lib/ocpp/ocpp_j.c contains…9.8
- CVE-2026-13215The Zephyr ext2 filesystem driver fails to validate the s_lo…6.8
- CVE-2026-13216The virtio PCI driver (drivers/virtio/virtio_pci.c) parses a…6.1
- CVE-2026-13217The OCPP 1.6 client in subsys/net/lib/ocpp/ocpp.c reconstruc…5.9
- CVE-2026-13218A flaw was found in KubeVirt's virt-handler network cache ha…4.2
- CVE-2026-1322GitLab has remediated an issue in GitLab CE/EE affecting all…8.1
- CVE-2026-13222Our payment integration with Oppwa-based payment methods did…6.3
- CVE-2026-13223Our payment integration with Computop-based payment methods …6.3
- CVE-2026-13225Malicious HTML content could be injected into the email addr…5.3
- CVE-2026-13226The Groundhogg — CRM, Newsletters, and Marketing Automation …6.5
- CVE-2026-13227An Improper Authorization vulnerability exists in ERPNext ve…7.1
- CVE-2026-13228The LatePoint – Calendar Booking Plugin for Appointments and…8.8
Are you affected by CVE-2026-13221?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
