CVE-2026-136795: Crypt::JWT versions before 0.037_1 for Perl allow memory exhaustion via unbounded inflation of zip DEF payloads
Crypt::JWT versions before 0.0371 for Perl allow memory exhaustion via unbounded inflation of zip DEF payloads.
When a token header sets "zip" to "DEF", decodejwt inflates the payload with no limit on the output size. A signed token is inflated after its signature verifies. An encrypted token is inflated after decryption, and with RSA-OAEP or ECDH-ES key management anyone who holds the recipient's public key can produce a token that decrypts.
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
Which token types can be exploited without the attacker possessing a signing key or shared encryption secret?
Encrypted tokens using RSA-OAEP or ECDH-ES key management can be produced by anyone who has the recipient's public key. The resulting token can decrypt and reach the unbounded DEF inflation path.
Are signed tokens exposed to unauthenticated attackers?
A signed token is inflated only after its signature verifies. An attacker would therefore need to provide a token with a valid signature to reach the vulnerable inflation step.
How can an application determine whether it is affected?
Applications are affected if they use Crypt::JWT before version 0.037_1 and call decode_jwt on tokens whose header can specify "zip":"DEF". Review token-processing paths for compressed JWS or JWE inputs, including tokens supplied by external clients or issuers.