Vulnerability · Published Mar 9, 2024 · Assigned by GitHub_M

CVE-2024-28122 JWX vulnerable to a denial of service attack using compressed JWE message

Medium 6.8

In plain English

A medium-severity uncontrolled resource consumption in jwx from lestrrat-go. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)0.6%top 52.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

JWX is Go module implementing various JWx (JWA/JWE/JWK/JWS/JWT, otherwise known as JOSE) technologies. This vulnerability allows an attacker with a trusted public key to cause a Denial-of-Service (DoS) condition by crafting a malicious JSON Web Encryption (JWE) token with an exceptionally high compression ratio. This issue has been patched in versions 1.2.29 and 2.0.21.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/lestrrat-go/jwx1.2.29GHSA-hj3v-m684-v259
Gogithub.com/lestrrat-go/jwx1.2.29GO-2024-2632
Gogithub.com/lestrrat-go/jwx/v22.0.21GHSA-hj3v-m684-v259
Gogithub.com/lestrrat-go/jwx/v22.0.21GO-2024-2632

Affected products (as reported)

VendorProductVersions
lestrrat-go jwx >= 2.0.0, < 2.0.21>= 1.2.0, < 1.2.29

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H

References