CVE-2024-21664
HIGH 7.5CVSS 3.1Parsing JSON serialized payload without protected field can lead to segfault
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.
- Published
- 9 Jan 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-476
- Also known as
- GHSA-pvcr-v8j8-j5q3GO-2024-2454
- Sources
- NVDJSONOSV GHSA-pvcr-v8j8-j5q3JSONOSV GO-2024-2454JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lestrrat-go | jwxcpe:2.3:a:lestrrat-go:jwx:*:*:*:*:*:*:*:* |
< 2.0.19 | 2.0.19 |
| OSV | Go | github.com/lestrrat-go/jwx | >= 1.0.8, < 1.2.28 | 1.2.28 |
| OSV | Go | github.com/lestrrat-go/jwx/v2 | < 2.0.19 | 2.0.19 |
References
- https://github.com/lestrrat-go/jwx/commit/0e8802ce6842625845d651456493e7c87625601f · Patch, WEB, FIX
- https://github.com/lestrrat-go/jwx/commit/8c53d0ae52d5ab1e2b37c5abb67def9e7958fd65 · WEB
- https://github.com/lestrrat-go/jwx/commit/d69a721931a5c48b9850a42404f18e143704adcd · Patch, WEB, FIX
- https://github.com/lestrrat-go/jwx/security/advisories/GHSA-pvcr-v8j8-j5q3 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21664 · ADVISORY
- https://github.com/lestrrat-go/jwx · PACKAGE
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 9 Jan 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Jan 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 9 Jan 2024)