CVEBrief

Home / Perl / Perl / CVE-2026-13221

CVE-2026-13221: is it exploited, and which versions of Perl are affected and fixed?

CVE-2026-13221 is an integer overflow vulnerability in Perl. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: perl before 5.40.5-RC1, perl from 5.41.0 before 5.42.3-RC1 and perl from 5.43.0 before 5.43.10 (CVE record by CPANSec). Fixed in 5.40.5-RC1, 5.42.3-RC1 and 5.43.10 (CVE record by CPANSec). Severity: Critical (9.1, CVSS 3.1, from CISA-ADP).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:09 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 15:09 UTC
Affected
perl before 5.40.5-RC1, perl from 5.41.0 before 5.42.3-RC1 and perl from 5.43.0 before 5.43.10
CVE record by CPANSec
Fixed in
5.40.5-RC1, 5.42.3-RC1 and 5.43.10
CVE record by CPANSec
Severity
Critical 9.1
CVSS 3.1 from CISA-ADP
Exploit odds (EPSS)
0.54% in 30 days
higher than 47% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is 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 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.

From the CVE record by CPANSec, last updated November 10, 2026, 12:40 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
perlbefore 5.40.5-RC1
from 5.41.0 before 5.42.3-RC1
from 5.43.0 before 5.43.10
5.40.5-RC1, 5.42.3-RC1, 5.43.10

As the CVE record by CPANSec states it, last updated November 10, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
perlperlthrough 5.43.9application

NVD analysis (status Modified), last modified November 10, 2026, 13:18 UTC.

How severe is CVE-2026-13221?

ScoreVersionVectorSource
Critical 9.1CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HCISA-ADP
Critical 9.1CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2026-13221 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, July 14, 2026)
EPSS
0.54% probability of exploitation activity in the next 30 days, percentile 46.7 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

How do I fix it? (from the CVE record)

Upgrade to Perl 5.40.5, 5.42.3 or 5.44.0 or later, or apply the upstream patch.

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
June 24, 2026
Published
July 13, 2026, 15:40 UTC
CVE record updated
November 10, 2026, 12:40 UTC by CPANSec
NVD
Modified, last modified November 10, 2026, 13:18 UTC
Last checked
CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:09 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect Perl?

Every CVE in Perl

Questions about CVE-2026-13221

Is CVE-2026-13221 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.54% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of Perl are affected by CVE-2026-13221?

perl before 5.40.5-RC1, perl from 5.41.0 before 5.42.3-RC1 and perl from 5.43.0 before 5.43.10, per the CVE record by CPANSec. The tables above give every range the sources list.

Which version fixes CVE-2026-13221?

5.40.5-RC1, 5.42.3-RC1 and 5.43.10, per the CVE record by CPANSec. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-13221?

Critical (9.1, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.

Where is the official record of CVE-2026-13221?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.