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

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-08T15:06:53.000Z
- Modified: 2026-09-10T03:50:10.558Z
- Also known as: GHSA-hj3v-m684-v259, GO-2024-2632
- Related: CGA-4663-xr4j-4xxm
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- lestrrat-go jwx: >= 2.0.0, < 2.0.21; >= 1.2.0, < 1.2.29; from 2.0.0 before 2.0.21; from 1.2.0 before 1.2.29; before 1.2.29
- github.com/lestrrat-go/jwx/v2 (Go): before 2.0.21
- github.com/lestrrat-go/jwx (Go): before 1.2.29

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.8 Medium `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> (exploit, advisory, vendor-advisory, web)
- <https://github.com/lestrrat-go/jwx/releases/tag/v1.2.29> (product, release-notes, web)
- <https://github.com/lestrrat-go/jwx/releases/tag/v2.0.21> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28122> (advisory)
- <https://github.com/lestrrat-go/jwx/commit/d01027d74c7376d66037a10f4f64af9af26a7e34> (fix, web)
- <https://github.com/lestrrat-go/jwx/commit/d43f2ceb7f0c13714dfe8854d6439766e86faa76> (fix, web)
- <https://github.com/lestrrat-go/jwx> (package)

## Sources

- CVE List: [CVE-2024-28122](https://www.cve.org/CVERecord?id=CVE-2024-28122), CVE Terms of Use, modified 2025-04-16
- GitHub Advisory Database: [GHSA-hj3v-m684-v259](https://github.com/advisories/GHSA-hj3v-m684-v259), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2632](https://pkg.go.dev/vuln/GO-2024-2632), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-28122](https://nvd.nist.gov/vuln/detail/CVE-2024-28122), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-28122 · Whole record: https://cve.day/CVE-2024-28122.json · Rebuilt by cve.day 2026-11-25T22:58:37.376Z
