CVE-2026-13221 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 bra...
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
30 packages: 15 fixed, 15 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux perl(Azure Linux 4.0) | All versions | No fix listed | No fix yet |
| redhat/costmanagement/costmanagement-ui-rhel10:1791460851(Red Hat cost_management_on_premise 1 el10) | All versions | No fix listed | No fix yet |
| redhat/devspaces/code-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-8(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-9(Red Hat openshift 5) | All versions | No fix listed | No fix yet |
| redhat/perl(Red Hat rhel_els 6) | All versions | No fix listed | No fix yet |
| redhat/perl(Red Hat rhel_els 7) | All versions | No fix listed | No fix yet |
| redhat/perl:5.32-8100020260826134600.651ee29f(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhui5/rhua-rhel9:1789478095(Red Hat rhui 5 el9) | All versions | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.7 | No fix listed | No fix yet |
| alpine/perl(Alpine v3.24) | < 5.42.2-r1 | 5.42.2-r1 | Fixed |
| azure linux perl(Azure Linux 3.0) | < 5.38.2-513 | 5.38.2-513 | Fixed |
| cpan perl | < 5.40.5-RC1; >= 5.41.0, < 5.42.3-RC1; >= 5.43.0, < 5.43.10 | 5.40.5-RC1, 5.42.3-RC1, 5.43.10 | Fixed |
| debian/perl(Debian 12) | < 5.36.0-7+deb12u4; = 5.36.0-7; = 5.36.0-7+deb12u1; = 5.36.0-7+deb12u2 +1 more | 5.36.0-7+deb12u4 | Fixed |
| debian/perl(Debian 13) | < 5.40.1-6+deb13u1; = 5.40.1-6 | 5.40.1-6+deb13u1 | Fixed |
| debian/perl(Debian 14) | < 5.42.3-1; = 5.40.1-6; = 5.40.1-7; = 5.40.1-8 +6 more | 5.42.3-1 | Fixed |
| perl | <= 5.43.9 | after 5.43.9 | Fixed |
| redhat/openshift/ose-rhel-coreos(Red Hat openshift 4.22 el9) | < 9:4.22.9.8.202609221802-0 | 9:4.22.9.8.202609221802-0 | Fixed |
| redhat/perl(Red Hat enterprise_linux 10.2) | < 4:5.40.2-515.el10_2 | 4:5.40.2-515.el10_2 | Fixed |
| redhat/perl(Red Hat enterprise_linux 8) | < 4:5.26.3-423.el8_10.1 | 4:5.26.3-423.el8_10.1 | Fixed |
| redhat/perl(Red Hat enterprise_linux 9) | < 4:5.32.1-484.el9_8 | 4:5.32.1-484.el9_8 | Fixed |
| redhat/perl-main(Red Hat hummingbird 1) | < 0.02-524.3.hum1; < 5.42.2-524.3.hum1 | 0.02-524.3.hum1, 5.42.2-524.3.hum1 | Fixed |
| ubuntu/perl(Ubuntu 22.04) | < 5.34.0-3ubuntu1.8 | 5.34.0-3ubuntu1.8 | Fixed |
| ubuntu/perl(Ubuntu 24.04) | < 5.38.2-3.2ubuntu0.4 | 5.38.2-3.2ubuntu0.4 | Fixed |
| ubuntu/perl(Ubuntu 26.04) | < 5.40.1-7ubuntu0.3 | 5.40.1-7ubuntu0.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cpan perl | < 5.40.5-RC1 | 5.40.5-RC1 |
| cpan perl | >= 5.41.0, < 5.42.3-RC1 | 5.42.3-RC1 |
| cpan perl | >= 5.43.0, < 5.43.10 | 5.43.10 |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.7 | No fix listed |
| redhat/perl(Red Hat:enterprise_linux:10.2) | < 4:5.40.2-515.el10_2 | 4:5.40.2-515.el10_2 |
| redhat/perl(Red Hat:enterprise_linux:8) | < 4:5.26.3-423.el8_10.1 | 4:5.26.3-423.el8_10.1 |
| redhat/perl:5.32-8100020260826134600.651ee29f(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/perl(Red Hat:enterprise_linux:9) | < 4:5.32.1-484.el9_8 | 4:5.32.1-484.el9_8 |
| redhat/openshift/ose-rhel-coreos(Red Hat:openshift:4.22::el9) | < 9:4.22.9.8.202609221802-0 | 9:4.22.9.8.202609221802-0 |
| redhat/costmanagement/costmanagement-ui-rhel10:1791460851(Red Hat:cost_management_on_premise:1::el10) | All versions | No fix listed |
| redhat/perl-main(Red Hat:hummingbird:1) | < 0.02-524.3.hum1 | 0.02-524.3.hum1 |
| redhat/perl-main(Red Hat:hummingbird:1) | < 5.42.2-524.3.hum1 | 5.42.2-524.3.hum1 |
| redhat/rhui5/rhua-rhel9:1789478095(Red Hat:rhui:5::el9) | All versions | No fix listed |
| redhat/perl(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/perl(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-8(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:5) | All versions | No fix listed |
| redhat/devspaces/code-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| debian/perl(Debian:12) | < 5.36.0-7+deb12u4 | 5.36.0-7+deb12u4 |
| debian/perl(Debian:12) | = 5.36.0-7 | No fix listed |
Show 22 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/perl(Debian:12) | = 5.36.0-7+deb12u1 | No fix listed |
| debian/perl(Debian:12) | = 5.36.0-7+deb12u2 | No fix listed |
| debian/perl(Debian:12) | = 5.36.0-7+deb12u3 | No fix listed |
| debian/perl(Debian:13) | < 5.40.1-6+deb13u1 | 5.40.1-6+deb13u1 |
| debian/perl(Debian:13) | = 5.40.1-6 | No fix listed |
| debian/perl(Debian:14) | < 5.42.3-1 | 5.42.3-1 |
| debian/perl(Debian:14) | = 5.40.1-6 | No fix listed |
| debian/perl(Debian:14) | = 5.40.1-7 | No fix listed |
| debian/perl(Debian:14) | = 5.40.1-8 | No fix listed |
| debian/perl(Debian:14) | = 5.42.0-1 | No fix listed |
| debian/perl(Debian:14) | = 5.42.0-2 | No fix listed |
| debian/perl(Debian:14) | = 5.42.0-3 | No fix listed |
| debian/perl(Debian:14) | = 5.42.2-1 | No fix listed |
| debian/perl(Debian:14) | = 5.42.2-2 | No fix listed |
| debian/perl(Debian:14) | = 5.42.2-3 | No fix listed |
| ubuntu/perl(Ubuntu:22.04) | < 5.34.0-3ubuntu1.8 | 5.34.0-3ubuntu1.8 |
| alpine/perl(Alpine:v3.24) | < 5.42.2-r1 | 5.42.2-r1 |
| ubuntu/perl(Ubuntu:24.04) | < 5.38.2-3.2ubuntu0.4 | 5.38.2-3.2ubuntu0.4 |
| ubuntu/perl(Ubuntu:26.04) | < 5.40.1-7ubuntu0.3 | 5.40.1-7ubuntu0.3 |
| perl | <= 5.43.9 | No fix listed |
| azure linux perl(Azure Linux:3.0) | < 5.38.2-513 | 5.38.2-513 |
| azure linux perl(Azure Linux:4.0) | All versions | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- github.com patch
- github.com issue-tracking
- www.openwall.com mailing-list patch third-party-advisory
- cert-portal.siemens.com
- Red Hat CVE page vendor-advisory
- RHSA-2026:67156 patch vendor-advisory
- RHSA-2026:67162 patch vendor-advisory
- RHSA-2026:67278 patch vendor-advisory
- RHSA-2026:67155 patch vendor-advisory
- RHSA-2026:71446 patch vendor-advisory
- RHSA-2026:79357 patch vendor-advisory
- RHSA-2026:39997 patch vendor-advisory
- RHSA-2026:67956 patch vendor-advisory
- Red Hat Bugzilla 2499727 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-13221 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8675-1 vendor-advisory
- USN-8684-1 vendor-advisory
- USN-8675-2 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-43503 third-party-advisory