# CVE-2024-21664: Parsing JSON serialized payload without protected field can lead to segfault

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- 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.86%, higher than 59% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-01-09T16:18:48.000Z
- Modified: 2026-09-10T03:50:05.133Z
- Also known as: GHSA-pvcr-v8j8-j5q3, GO-2024-2454
- Related: CGA-rg2f-wh8h-jrh5
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

jwx is a Go module implementing various JWx (JWA/JWE/JWK/JWS/JWT, otherwise known as JOSE) technologies. Calling `jws.Parse` with a JSON serialized payload where the `signature` field is present while `protected` is absent can lead to a nil pointer dereference. The vulnerability can be used to crash/DOS a system doing JWS verification. This vulnerability has been patched in versions 2.0.19 and 1.2.28.

(As written by CVE List.)

## Affected

- lestrrat-go jwx: >= 2.0.0, < 2.0.19; >= 1.0.8, < 1.2.28; before 2.0.19
- github.com/lestrrat-go/jwx (Go): from 1.0.8 before 1.2.28
- github.com/lestrrat-go/jwx/v2 (Go): before 2.0.19

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/lestrrat-go/jwx/security/advisories/GHSA-pvcr-v8j8-j5q3> (exploit, vendor-advisory, web)
- <https://github.com/lestrrat-go/jwx/commit/0e8802ce6842625845d651456493e7c87625601f> (fix, patch, web)
- <https://github.com/lestrrat-go/jwx/commit/8c53d0ae52d5ab1e2b37c5abb67def9e7958fd65> (web)
- <https://github.com/lestrrat-go/jwx/commit/d69a721931a5c48b9850a42404f18e143704adcd> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21664> (advisory)
- <https://github.com/lestrrat-go/jwx> (package)

## Sources

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

---

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