CVE-2026-8748: Crypt::JWT versions before 0.037_1 for Perl compare HMAC signatures and JWE authentication tags in non-constant time
Robert Rothenberg 25 Nov 2026 22:30 UTC
========================================================================
CVE-2026-8748 CPAN Security Group
========================================================================
CVE ID: CVE-2026-8748
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 compare HMAC signatures and
JWE authentication tags in non-constant time
Description
-----------
Crypt::JWT versions before 0.037_1 for Perl compare HMAC signatures and
JWE authentication tags in non-constant time.
decode_jwt compares HS256, HS384 and HS512 signatures, and the
authentication tag of A128CBC-HS256, A192CBC-HS384 and A256CBC-HS512
encrypted tokens, against the computed value with Perl's eq operator.
Its run time depends on the number of matching leading bytes.
An attacker who can submit many candidate tokens and measure the timing
precisely enough may recover the expected signature or tag byte by byte
and forge a token that verifies.
Problem types
-------------
- CWE-208 Observable Timing Discrepancy
Solutions
---------
Upgrade to Crypt-JWT 0.038 or later.
References
----------
https://github.com/DCIT/perl-Crypt-JWT/commit/0dfc0af5cc1f28b799720fa12a5dcaa3f31fd095.patch
https://metacpan.org/release/MIK/Crypt-JWT-0.038/changes