Skip to content
OpenAdvisories
Unscored CVE-2026-8748 EUVD-2026-135885

Crypt::JWT versions before 0.037_1 for Perl compare HMAC signatures and JWE authentication tags in non-constant time

Published Nov 25, 2026 · Assigned by CPANSec

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.

Affected products

VendorProductAffectedFixed
— Crypt-JWT < 0.037_1 0.037_1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libcrypt-jwt-perl 0.038-1 —
Debian 13 libcrypt-jwt-perl No fix yet —
Debian 12 libcrypt-jwt-perl No fix yet —

References