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.

Project Subscriptions

No data.

Advisories

No advisories yet.

Fixes

Solution

Upgrade to Crypt-JWT 0.038 or later.


Workaround

No workaround given by the vendor.

History

Wed, 25 Nov 2026 22:30:00 +0000

Type Values Removed Values Added
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.
Title Crypt::JWT versions before 0.037_1 for Perl compare HMAC signatures and JWE authentication tags in non-constant time
Weaknesses CWE-208
References

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-11-25T22:26:18.178Z

Reserved: 2026-05-16T13:48:15.542Z

Link: CVE-2026-8748

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-25T23:17:26.517

Modified: 2026-11-25T23:17:26.517

Link: CVE-2026-8748

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-26T11:30:22Z

Weaknesses