ADVISORIES

Go Vulnerability Database

GO-2024-2632

JWX vulnerable to a denial of service attack using compressed JWE message in github.com/lestrrat-go/jwx

Details

An attacker with a trusted public key may cause a Denial-of-Service (DoS) condition by crafting a malicious JSON Web Encryption (JWE) token with an exceptionally high compression ratio. When this token is processed by the recipient, it results in significant memory allocation and processing time during decompression.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/lestrrat-go/jwx
All versions before 1.2.29 (fixed in 1.2.29)
Gogithub.com/lestrrat-go/jwx/v2
All versions before 2.0.21 (fixed in 2.0.21)

References