{"id":"CVE-2024-21664","aliases":["GHSA-pvcr-v8j8-j5q3","GO-2024-2454"],"url":"https://o3.security/vulnerability/CVE-2024-21664","summary":"Parsing JSON serialized payload without protected field can lead to segfault","details":"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.\n","published":"2024-01-09T19:18:03.742Z","modified":"2026-07-15T01:48:56.201892600Z","cvss":{"score":4.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Go","name":"github.com/lestrrat-go/jwx","fixedVersion":"1.2.28"},{"ecosystem":"Go","name":"github.com/lestrrat-go/jwx/v2","fixedVersion":"2.0.19"}],"fix":{"url":"https://github.com/lestrrat-go/jwx/commit/0e8802ce6842625845d651456493e7c87625601f","label":"lestrrat-go/jwx@0e8802c"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21664.json"},{"type":"ADVISORY","url":"https://github.com/lestrrat-go/jwx/security/advisories/GHSA-pvcr-v8j8-j5q3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21664"},{"type":"FIX","url":"https://github.com/lestrrat-go/jwx/commit/0e8802ce6842625845d651456493e7c87625601f"},{"type":"FIX","url":"https://github.com/lestrrat-go/jwx/commit/8c53d0ae52d5ab1e2b37c5abb67def9e7958fd65"},{"type":"FIX","url":"https://github.com/lestrrat-go/jwx/commit/d69a721931a5c48b9850a42404f18e143704adcd"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:48:56.201892600Z"}}