cve.bz

CVE-2026-13221 perl perl: Year 2038 problem, Y2K38, Y2038, Epochalypse

9.1 criticalEPSS 0.5%Fix available

Critical (9.1) in perl perl. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 45th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-07-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
Assigned by
CPANSec (CNA)
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-13221 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-13221?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-13221?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-13221 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
perl:perlthrough 5.43.9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12perl5.36.0-7+deb12u4DEBIAN-CVE-2026-13221 DLA-4821-1
Debian13perl5.40.1-6+deb13u1DEBIAN-CVE-2026-13221
Debian14perl5.42.3-1DEBIAN-CVE-2026-13221
Ubuntu22.04:LTSperl5.34.0-3ubuntu1.8UBUNTU-CVE-2026-13221 USN-8675-1
Ubuntu24.04:LTSperl5.38.2-3.2ubuntu0.4UBUNTU-CVE-2026-13221 USN-8684-1
Ubuntu26.04:LTSperl5.40.1-7ubuntu0.3UBUNTU-CVE-2026-13221 USN-8675-2
UbuntuPro:14.04:LTSperl5.18.2-2ubuntu1.7+esm8UBUNTU-CVE-2026-13221 USN-8675-1
UbuntuPro:16.04:LTSperl5.22.1-9ubuntu0.9+esm3UBUNTU-CVE-2026-13221 USN-8675-1
UbuntuPro:18.04:LTSperl5.26.1-6ubuntu0.7+esm3UBUNTU-CVE-2026-13221 USN-8675-1
UbuntuPro:20.04:LTSperl5.30.0-9ubuntu0.5+esm3UBUNTU-CVE-2026-13221 USN-8675-1
Red Hatenterprise_linux:8::appstreamperl, perl-devel, perl-tests and 5 more4:5.26.3-423.el8_10.1RHSA-2026:67162
Red Hatenterprise_linux:8::appstreamperl, perl-libs, perl-devel and 7 more4:5.32.1-475.module+el8.10.0+24767+f69b15b5RHSA-2026:67278
Red Hatenterprise_linux:8::appstreamperl-Algorithm-Diff0:1.1903-10.module+el8.10.0+21354+3ad137bbRHSA-2026:67278
Red Hatenterprise_linux:8::appstreamperl-Archive-Tar0:2.38-5.module+el8.10.0+24544+66a14188RHSA-2026:67278
Red Hatenterprise_linux:8::appstreamperl-Archive-Zip0:1.68-3.module+el8.10.0+21354+3ad137bbRHSA-2026:67278
Red Hatenterprise_linux:8::appstreamperl-Attribute-Handlers0:0.99-423.el8_10.1RHSA-2026:67162
Red Hatenterprise_linux:8::appstreamperl-Attribute-Handlers0:1.01-475.module+el8.10.0+24767+f69b15b5RHSA-2026:67278
Red Hatenterprise_linux:8::appstreamperl-AutoSplit, perl-AutoLoader0:5.74-475.module+el8.10.0+24767+f69b15b5RHSA-2026:67278
Red Hatenterprise_linux:8::appstreamperl-B, perl-B-debuginfo0:1.80-475.module+el8.10.0+24767+f69b15b5RHSA-2026:67278
Red Hatenterprise_linux:8::appstreamperl-CPAN0:2.28-5.module+el8.10.0+21354+3ad137bbRHSA-2026:67278
Red Hatenterprise_linux:8::appstreamperl-CPAN-DistnameInfo0:0.12-13.module+el8.10.0+21354+3ad137bbRHSA-2026:67278
Red Hatenterprise_linux:8::appstreamperl-CPAN-Meta0:2.150010-397.module+el8.10.0+21354+3ad137bbRHSA-2026:67278
278 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Product Security has rated this vulnerability moderate as exploiting it requires local access as well as complex buffer overflows to get access to running arbitrary code. Also a successful attack will depend strongly on the script that is housing the vulnerable regular expression. No production script should implicitly trust data and make security decisions, so the impact for a successful exploitation is very low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10perl-4:5.40.2-515.el10_2Fixed 2026-09-14RHSA-2026:67156
Red Hat Enterprise Linux 8perl-4:5.26.3-423.el8_10.1Fixed 2026-09-14RHSA-2026:67162
Red Hat Enterprise Linux 8perl:5.32-8100020260826134600.651ee29fFixed 2026-09-14RHSA-2026:67278
Red Hat Enterprise Linux 9perl-4:5.32.1-484.el9_8Fixed 2026-09-14RHSA-2026:67155
Red Hat OpenShift Container Platform 4.22openshift/ose-rhel-coreos-9:4.22.9.8.202609221802-0Fixed 2026-09-29RHSA-2026:71446
Red Hat Cost Management On-Premise 1costmanagement/costmanagement-ui-rhel10:1791460851Fixed 2026-10-08RHSA-2026:79357
Red Hat Hardened Imagesperl-main-0.02-524.3.hum1Fixed 2026-07-15RHSA-2026:39997
Red Hat Hardened Imagesperl-main-5.42.2-524.3.hum1Fixed 2026-07-15RHSA-2026:39997
Red Hat Update Infrastructure 5rhui5/rhua-rhel9:1789478095Fixed 2026-09-16RHSA-2026:67956
Red Hat Enterprise Linux 6perlAffected
Red Hat Enterprise Linux 7perlAffected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9Affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Affected
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Affected
Red Hat OpenShift Dev Spacesdevspaces/code-rhel9Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-13221.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-295-11Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP2026-10-13Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.7, SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.7, SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.7 and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON