CVE-2026-136795: Crypt::JWT versions before 0.037_1 for Perl allow memory exhaustion via unbounded inflation of zip DEF payloads Robert Rothenberg 25 Nov 2026 22:29 UTC

========================================================================
CVE-2026-136795                                      CPAN Security Group
========================================================================

         CVE ID:  CVE-2026-136795

   Distribution:  Crypt-JWT
       Versions:  before 0.037_1
       MetaCPAN:  https://metacpan.org/dist/Crypt-JWT
       VCS Repo:  https://github.com/DCIT/perl-Crypt-JWT

Crypt::JWT versions before 0.037_1 for Perl allow memory exhaustion via
unbounded inflation of zip DEF payloads

Description
-----------
Crypt::JWT versions before 0.037_1 for Perl allow memory exhaustion via
unbounded inflation of zip DEF payloads.

When a token header sets "zip" to "DEF", decode_jwt 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.

Problem types
-------------
- CWE-409 Improper Handling of Highly Compressed Data (Data
   Amplification)

Solutions
---------
Upgrade to Crypt-JWT 0.038 or later.

References
----------
https://github.com/DCIT/perl-Crypt-JWT/commit/13057ef8f51ddde66f1013e4eab2e0664d69d284.patch
https://github.com/DCIT/perl-Crypt-JWT/commit/18b20fed11ae5d72c8ad298fb0d9f023e47ec953.patch
https://metacpan.org/release/MIK/Crypt-JWT-0.038/changes