PerlApplication

CVE-2026-13221

CRITICAL · 9.1 CVSS v3.1 Published 2026-07-13
Fix available
A fix is available. Upgrade to after 5.43.9 or later.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click 5 weeks old

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Perl versions through 5.43.9 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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Perl versions through 5.43.9 contain a critical flaw in the regex engine where alternations exceeding 65535 fixed string branches cause a 16-bit field overflow when compiling into a trie structure. This silently truncates the match decision table without any warning, resulting in both false positive and false negative matches that can bypass or block access controls.

MitigationUpgrade Perl to a version beyond 5.43.9 that addresses this overflow, or refactor regex patterns to avoid having more than 65535 alternation branches.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
PerlApplication
Affected:<= 5.43.9

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Determine installed Perl version
    Run 'perl -v' or 'perl --version' and locate the version number in the output
    Affected if Version is 5.43.9 or lower (the vulnerable range)
  2. Identify regex patterns using alternations
    Search codebase for regex patterns containing multiple '|' alternation operators, especially in configuration files, application code, or data-driven regex definitions
    Affected if Any regex contains more than 65535 distinct alternation branches
  3. Count alternation branches in suspect patterns
    For each regex with many alternations, parse or count the number of fixed string branches to determine if the count exceeds 65535
    Affected if Any single regex pattern has more than 65535 alternation branches (the overflow threshold)
  4. Test regex behavior if potentially affected
    Create a test regex with exactly 65536 alternation branches and verify match behavior matches expected results, or inspect trie compilation warnings
    Affected if Matches produce unexpected results or the trie structure silently truncates without warning

A user is affected if they have Perl version 5.43.9 or lower AND are using regex patterns with more than 65535 alternation branches in their application or configuration.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Upgrade available Upgrade to a release after 5.43.9
Interim mitigation

Upgrade Perl to a version beyond 5.43.9 that addresses this overflow, or refactor regex patterns to avoid having more than 65535 alternation branches.

Fix this in Perl Scoped from the published advisory
  • Consultation8.0 h
  • Implementation12.0 h
  • Testing6.0 h
  • Review / QA4.0 h
30.0 hours of engineering $5,380
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $8,608.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-13221 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-13221 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data