Skip to main content

Crypt::JWT CVE-2026-136796

HIGH
Unchecked Input for Loop Condition (CWE-606)
2026-11-25 CPANSec
7.5
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft token selecting PBES2 with huge p2c
  2. Exploit
    Send to application calling decode_jwt with symmetric key
  3. Execution
    PBKDF2 runs unbounded iterations before integrity check
  4. Impact
    CPU exhausted, service denied

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Unchecked input for loop condition
Exploitation Conditions

The application must call decode_jwt with a symmetric key AND must not restrict accepted_alg to exclude PBES2 key-management algorithms; when both hold, an attacker-supplied token can select PBES2 and set an arbitrarily large p2c iteration count that decode_jwt feeds to PBKDF2 without a range check, deriving the key before any integrity check - so no valid signature or authentication is required. Limiting factors: deployments that pass only asymmetric keys, or that pin accepted_alg to a non-PBES2 allowlist, are not exposed; impact is resource exhaustion (availability), not code execution or data disclosure.

Impact

The signals point to a genuine but bounded denial-of-service issue rather than a top-tier emergency. CVSS 7.5 reflects an easy remote trigger (AV:N/AC:L/PR:N/UI:N): a single crafted token forces the server to run PBKDF2 with an attacker-chosen iteration count, before any integrity check, so no valid signature or credential is needed. However, the input CVSS vector is internally inconsistent - it marks C:N/I:H/A:N (integrity impact, no availability impact), while the description, CWE-606 (Unchecked Input for Loop Condition), and the patch (a $MAX_PBES2_ITER=30,000,000 cap) all describe CPU exhaustion, which is an availability impact. Treat the 'I:H' label as mislabeled; the real impact is availability/DoS. Corroborating the lower urgency: EPSS is only 0.30% (15th percentile), there is no CISA KEV listing and no public exploit identified, and the vendor-priority Decision label is 'this_week' (not act_now/emergency). Exploitability also depends on a precondition - the application must call decode_jwt with a symmetric key and must not restrict accepted_alg to exclude PBES2 - which narrows the exposed population. Net: a real, patch-this-week DoS that is trivial to exploit where the precondition holds, but not a confirmed-exploited, data-exposing, or high-EPSS threat.

Exploit ScenarioDerived

An attacker crafts a JWT whose header selects a PBES2 key-management algorithm (e.g. PBES2-HS256+A128KW) with an enormous p2c iteration count and submits it to an endpoint that validates tokens via decode_jwt using a symmetric key. Because p2c is passed to PBKDF2 without a range check and the key is derived before any integrity check, the server performs a vast number of iterations and exhausts CPU - a single unauthenticated request can cause this. No public PoC is referenced; the AV:N/AC:L/PR:N vector means the token can be sent remotely with low effort and no authentication.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

CPU exhaustion in Perl's Crypt::JWT before 0.037_1 lets an unauthenticated remote attacker force excessive PBKDF2 work by supplying a JWE token that selects a PBES2 key-management algorithm with an arbitrarily large p2c iteration count. The module passes p2c to PBKDF2 without a range check and derives the key before any integrity check, so a valid signature is not required; the assessed impact is availability only under CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (score 7.5). Applications are exposed only when decode_jwt is called with a symmetric key and accepted_alg does not exclude PBES2; no public exploit was identified at time of analysis, EPSS is low at 0.30% (15th percentile), and the vuln.today decision label is this_week.

RemediationAI

Vendor-released patch: Crypt::JWT 0.037_1, with the 0.038 CPAN release referenced at https://metacpan.org/release/MIK/Crypt-JWT-0.038/changes; fixing commits are https://github.com/DCIT/perl-Crypt-JWT/commit/13057ef8f51ddde66f1013e4eab2e0664d69d284.patch and https://github.com/DCIT/perl-Crypt-JWT/commit/18b20fed11ae5d72c8ad298fb0d9f023e47ec953.patch, and the advisory is https://seclists.org/oss-sec/2026/q4/892. If upgrading is not possible, pin accepted_alg to an explicit allowlist that excludes PBES2, or call decode_jwt only with asymmetric keys; both workarounds remove the vulnerable PBES2 path but will reject legitimate PBES2 tokens and may break interoperability. The fix also introduces MAX_PBES2_ITER of 30,000,000, MAX_PBES2_SALT_LEN of 200,000, and a 5 MiB inflated-payload limit, so backporting those checks is an alternative if the full upgrade cannot be applied.

Affected ProductsAI

Crypt::JWT for Perl versions before 0.037_1 are affected. The vulnerable configuration is any application that calls decode_jwt with a symmetric key and does not restrict accepted_alg to exclude PBES2 key-management algorithms; deployments that pass only asymmetric keys or pin accepted_alg to a non-PBES2 allowlist are not exposed. No CPE strings were provided in the input; vendor patch references are the GitHub commits 13057ef8f51ddde66f1013e4eab2e0664d69d284 and 18b20fed11ae5d72c8ad298fb0d9f023e47ec953, the CPAN 0.038 changes page at https://metacpan.org/release/MIK/Crypt-JWT-0.038/changes, and the oss-security advisory at https://seclists.org/oss-sec/2026/q4/892.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Crypt::JWT is a Perl module for encoding and decoding JSON Web Tokens and JSON Web Encryption objects. In the vulnerable path, decode_jwt processes a JWE protected header and, when a PBES2 key-management algorithm is selected, passes the attacker-controlled p2c header value directly to PBKDF2 as the iteration count; because key derivation occurs before any integrity verification, an oversized p2c causes unbounded CPU consumption. This is CWE-606 (Unchecked Input for Loop Condition): the iteration count is used as a loop bound without validation. The fix commit adds a MAX_PBES2_ITER guard of 30,000,000 plus p2s and inflate limits, and the issue is bounded to availability impact under the assessed vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H; deployments passing only asymmetric keys or pinning accepted_alg to exclude PBES2 are not exposed. The supplied tag says Information Disclosure, but the assessed vector and the described effect are availability-only.

Know when Perl gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 7.5 HIGH

Remote unauthenticated token triggers unbounded PBKDF2 before the integrity check (AV:N/AC:L/PR:N/UI:N); impact is CPU exhaustion, so A:H with C:N/I:N, not the input's I:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

3
CVSS changed
Dec 02, 2026 - 18:22 NVD
7.5 (HIGH)
CVE Published
Nov 25, 2026 - 22:27 cve.org
HIGH 7.5
CVE Published
Nov 25, 2026 - 22:27 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Crypt::JWT versions before 0.037_1 for Perl allow CPU exhaustion via an unbounded PBES2 iteration count.

For a token using a PBES2 key management algorithm, decode_jwt passes the p2c header parameter to PBKDF2 as the iteration count without a range check, and derives the key before any integrity check. Unless accepted_alg rules it out, a token can select PBES2 whenever decode_jwt is given a symmetric key.

Executive ViewAI

Why It Matters

CVE-2026-136796 is a high-severity CPU exhaustion vulnerability in the Perl module Crypt::JWT (versions before 0.037_1). An unauthenticated remote attacker can supply a crafted JWE token with an extremely large PBKDF2 iteration count, causing excessive CPU consumption and potential denial of service. Applications that use this module to decode tokens with symmetric keys and do not exclude PBES2 algorithms are at risk. Leadership should prioritize remediation on internet-facing services to prevent service disruptions.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 85% exploitable
Prevalence
Low
de facto Perl JWT library, but Perl's limited web-service footprint
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Perl

View all
CVE-2012-6329 HIGH POC
7.5 Jan 04

The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand

CVE-2017-12814 CRITICAL POC
9.8 Sep 28

Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before

CVE-2015-8608 CRITICAL POC
9.8 Feb 07

The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of

CVE-2018-18314 CRITICAL POC
9.8 Dec 07

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated

CVE-2018-18312 CRITICAL POC
9.8 Dec 05

Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid

CVE-2026-13221 CRITICAL POC
9.1 Jul 13

Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a

CVE-2018-18313 CRITICAL POC
9.1 Dec 07

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa

CVE-2016-2381 HIGH
7.5 Apr 08

Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e

CVE-2023-31484 HIGH POC
8.1 Apr 29

CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS

CVE-2016-6185 HIGH POC
7.8 Aug 02

The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig

CVE-2018-12015 HIGH POC
7.5 Jun 07

In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha

CVE-2020-10543 HIGH
8.2 Jun 05

Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy