CVE-2024-28122 json
JWX vulnerable to a denial of service attack using compressed JWE message
published 2024-03-08 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-0939 , GHSA-hj3v-m684-v259 , GO-2024-2632
- cvss
- 6.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/lestrrat-go/jwx/v2 2.0.21
- go github.com/lestrrat-go/jwx 1.2.29
- lestrrat-go jwx 1.2.29, 2.0.21
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-28122 updated cvss 6.8
jwx: denial of service attack using compressed JWE message
-
Red Hat OpenShift Service Mesh 2 openshift-service-mesh/pilot-rhel8, openshift-service-mesh/proxyv2-rhel8, openshift-service-mesh/istio-cni-rhel8not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.57% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/lestrrat-go/jwx/security/advisories/GHSA-hj3v-m684-v259 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H |
| GitHub | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/lestrrat-go/jwx/v2 | <2.0.21 |
2.0.21 |
| go | github.com/lestrrat-go/jwx | <1.2.29 |
1.2.29 |
Affected products
- lestrrat-go jwx
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
github.com
/lestrrat-go/jwx/commit/d01027d74c7376d66037a10f4f64af9af26a7e34
web, patch
-
github.com
/lestrrat-go/jwx/commit/d43f2ceb7f0c13714dfe8854d6439766e86faa76
web, patch
-
github.com
/lestrrat-go/jwx/security/advisories/GHSA-hj3v-m684-v259
web, exploit, vendor-advisory, advisory
-
github.com
/lestrrat-go/jwx/releases/tag/v1.2.29
web, product, release-notes
-
github.com
/lestrrat-go/jwx/releases/tag/v2.0.21
web, product, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2024-28122
advisory
-
github.com
/lestrrat-go/jwx
package
Sources
- CVE List CVE-2024-28122
- GitHub Advisory GHSA-hj3v-m684-v259
- NVD CVE-2024-28122
- OSV GO-2024-2632
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.