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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/lestrrat-go/jwx | 1.2.29 | GHSA-hj3v-m684-v259 |
| Go | github.com/lestrrat-go/jwx | 1.2.29 | GO-2024-2632 |
| Go | github.com/lestrrat-go/jwx/v2 | 2.0.21 | GHSA-hj3v-m684-v259 |
| Go | github.com/lestrrat-go/jwx/v2 | 2.0.21 | GO-2024-2632 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/lestrrat-go/jwx/security/advisories/GHSA-hj3v-m684-v259 x_refsource_CONFIRM
- https://github.com/lestrrat-go/jwx/releases/tag/v1.2.29 x_refsource_MISC
- https://github.com/lestrrat-go/jwx/releases/tag/v2.0.21 x_refsource_MISC