CVE-2026-136796: Crypt::JWT versions before 0.037_1 for Perl allow CPU exhaustion via an unbounded PBES2 iteration count
Crypt::JWT versions before 0.0371 for Perl allow CPU exhaustion via an unbounded PBES2 iteration count.
For a token using a PBES2 key management algorithm, decodejwt passes the p2c header parameter to PBKDF2 as the iteration count without a range check, and derives the key before any integrity check. Unless acceptedalg rules it out, a token can select PBES2 whenever decodejwt is given a symmetric key.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Crypt-JWTto a version that resolves this vulnerability.Fixed in 0.038
Event History
Frequently Asked Questions
Who is exposed to this denial-of-service condition?
Applications using affected Crypt::JWT versions that call decode_jwt with a symmetric key are exposed if their accepted_alg policy permits PBES2 key-management algorithms. An attacker can submit a token that selects PBES2 unless that algorithm family is explicitly ruled out.
What must an attacker provide to trigger excessive CPU use?
The attacker needs to supply a token using a PBES2 key-management algorithm with a very large p2c header value. The library passes p2c directly to PBKDF2 as its iteration count and performs key derivation before verifying token integrity.
What can be done before upgrading?
Configure accepted_alg to reject PBES2 key-management algorithms where they are not required. This prevents attacker-controlled tokens from selecting PBES2 when decode_jwt is used with a symmetric key.
How can I determine whether my deployment is affected?
Check whether Crypt::JWT is older than 0.037_1 and whether application decode_jwt calls use a symmetric key. Also review accepted_alg settings to determine whether PBES2 is permitted.