Crypt::JWT CVE-2026-136796
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft token selecting PBES2 with huge p2c
-
ExploitSend to application calling decode_jwt with symmetric key
-
ExecutionPBKDF2 runs unbounded iterations before integrity check
-
ImpactCPU 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
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.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand
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
The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of
Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated
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
Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a
Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa
Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e
CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig
In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB