Integer overflow in perl
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- Partial Red Hat: 8 fixed, 6 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | perl | before 5.40.5-RC1; 5.41.0 to before 5.42.3-RC1; 5.43.0 to before 5.43.10 | 5.40.5-RC1, 5.42.3-RC1, 5.43.10 | Patch available | CNA |
- perl Vendor— Affected before 5.40.5-RC1; 5.41.0 to before 5.42.3-RC1; 5.43.0 to before 5.43.10 Fixed in 5.40.5-RC1, 5.42.3-RC1, 5.43.10 Patch available CNA
Remediation
- Fix · CNA perl Fixed in 5.40.5-RC1, 5.42.3-RC1, 5.43.10
Red Hat 8 advisories
- RHSA-2026:79357 Released 2026-10-08 · Red Hat rating ImportantRed Hat Cost Management On-Premise container image update
- Red Hat Cost Management On-Premise 1 registry.redhat.io/costmanagement/costmanagement-ui-rhel10
- RHSA-2026:71446 Released 2026-09-29 · Red Hat rating ImportantOpenShift Container Platform 4.22.16 bug fix and security update
- Red Hat OpenShift Container Platform 4.22 rhcos-aarch64-4.22.9.8.202609221802-0, rhcos-ppc64le-4.22.9.8.202609221802-0, rhcos-s390x-4.22.9.8.202609221802-0 +1
- RHSA-2026:67956 Released 2026-09-16 · Red Hat rating ImportantRed Hat Update Infrastructure 5.3 security update
- Red Hat Update Infrastructure 5 registry.redhat.io/rhui5/cds-kubernetes-rhel9, registry.redhat.io/rhui5/cds-rhel9, registry.redhat.io/rhui5/haproxy-rhel9 +2
Show 5 more Red Hat advisories
- RHSA-2026:67278 Released 2026-09-14 · Red Hat rating Moderateperl:5.32 security update
- Red Hat Enterprise Linux AppStream (v. 8) perl-4:5.32.1-475.module+el8.10.0+24767+f69b15b5.aarch64::perl:5.32, perl-4:5.32.1-475.module+el8.10.0+24767+f69b15b5.ppc64le::perl:5.32, perl-4:5.32.1-475.module+el8.10.0+24767+f69b15b5.s390x::perl:5.32 +47
- RHSA-2026:67155 Released 2026-09-14 · Red Hat rating Moderateperl security update
- Red Hat Enterprise Linux AppStream (v. 9) perl-4:5.32.1-484.el9_8, perl-Attribute-Handlers-1.01-484.el9_8, perl-AutoLoader-5.74-484.el9_8 +47
- RHSA-2026:67156 Released 2026-09-14 · Red Hat rating Moderateperl security update
- Red Hat Enterprise Linux AppStream (v. 10) perl-4:5.40.2-515.el10_2, perl-Attribute-Handlers-1.03-515.el10_2, perl-AutoLoader-5.74-515.el10_2 +47
- RHSA-2026:67162 Released 2026-09-14 · Red Hat rating Moderateperl security update
- Red Hat Enterprise Linux AppStream (v. 8) perl-4:5.26.3-423.el8_10.1, perl-Attribute-Handlers-0.99-423.el8_10.1, perl-Devel-Peek-1.26-423.el8_10.1 +16
- Red Hat Enterprise Linux BaseOS (v. 8) perl-4:5.26.3-423.el8_10.1, perl-Errno-1.28-423.el8_10.1, perl-IO-1.38-423.el8_10.1 +5
- RHSA-2026:39997 Released 2026-07-15 · Red Hat rating ModerateRed Hat Hardened Images RPMs Security Update
- Red Hat Hardened Images perl-4:5.42.2-524.3.hum1@aarch64, perl-4:5.42.2-524.3.hum1@src, perl-4:5.42.2-524.3.hum1@x86_64 +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix yet |
| Red Hat Enterprise Linux 7 | Affected | No fix yet |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet |
| Red Hat Cost Management On-Premise 1 | Fixed | RHSA-2026:79357 |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2026:67156 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2026:67162, RHSA-2026:67278 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2026:67155 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2026:67162 |
| Red Hat Hardened Images | Fixed | RHSA-2026:39997 |
| Red Hat OpenShift Container Platform 4.22 | Fixed | RHSA-2026:71446 |
| Red Hat Update Infrastructure 5 | Fixed | RHSA-2026:67956 |
Not affected: 1 product
- Red Hat Update Infrastructure 5
Timeline
- 2026-10-02 Threatist record created from CVE-2026-13221
- 2026-10-03 Alias added: GHSA-whhx-pv66-xhgq
- 2026-10-09 Fix available: RHSA-2026:79357 · Red Hat
- 2026-10-09 Fix available: Red Hat Cost Management On-Premise 1 · Red Hat
- 2026-10-16 Affected versions changed · Red Hat
- 2026-10-30 Affected versions changed · Red Hat
References
More Perl vulnerabilities
- TI-2022-24100 In Perl 5.34.0, function S_find_uninit_var in sv.c has a stack-based crash that can lead… CVSS 3.1CRITICAL 9.8
- TI-2012-05140 The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl… CVSS 2.0HIGH 7.5
- TI-2018-12932 Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular… CVSS 3.0CRITICAL 9.8
- TI-2018-12931 Perl before 5.26.3 and 5.28.x before 5.28.1 has a buffer overflow via a crafted regular… CVSS 3.0CRITICAL 9.8
- TI-2018-05049 Heap-based buffer overflow in the pack function in Perl before 5.26.2 allows… CVSS 3.0CRITICAL 9.8
- TI-2017-09493 Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl… CVSS 3.0CRITICAL 9.8
Sources
- CVE-2026-13221 · CVE Program
- CVE-2026-13221 · NVD
- FIRST EPSS
- GHSA-whhx-pv66-xhgq · GitHub Advisory Database · CC BY 4.0
- CVE-2026-13221 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences