{"id":"CVE-2024-21664","published":"2024-01-09T19:18:03Z","modified":"2025-06-17T20:59:10Z","title":"Parsing JSON serialized payload without protected field can lead to segfault","vendor":"lestrrat-go","product":"jwx","tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00864,"percentile":0.59496,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://github.com/lestrrat-go/jwx/security/advisories/GHSA-pvcr-v8j8-j5q3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lestrrat-go/jwx/commit/0e8802ce6842625845d651456493e7c87625601f","tags":["x_refsource_MISC"]},{"url":"https://github.com/lestrrat-go/jwx/commit/8c53d0ae52d5ab1e2b37c5abb67def9e7958fd65","tags":["x_refsource_MISC"]},{"url":"https://github.com/lestrrat-go/jwx/commit/d69a721931a5c48b9850a42404f18e143704adcd","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":11.9},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"lestrrat-go","affectedVersions":[{"vendor":"lestrrat-go","product":"jwx","versions":[">= 2.0.0, < 2.0.19",">= 1.0.8, < 1.2.28"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-01-09T21:08:07.994274Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/lestrrat-go/jwx","vulnerableRanges":[">=1.0.8, <1.2.28"],"patched":["1.2.28"],"from":["GHSA-pvcr-v8j8-j5q3","GO-2024-2454"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/lestrrat-go/jwx/v2","vulnerableRanges":["<2.0.19"],"patched":["2.0.19"],"from":["GHSA-pvcr-v8j8-j5q3","GO-2024-2454"],"provenance":"source"}],"summary":{"text":"The jwx Go module, a library implementing JOSE technologies (JWA, JWE, JWK, JWS, JWT), has a flaw in jws.Parse where a JSON serialized payload that includes a signature field but omits protected can trigger a nil pointer dereference. An unauthenticated remote attacker who can get such a payload to a system performing JWS verification can crash it, though the impact is limited to denial of service and the attack requires user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:37Z"},"euvd":{"id":"EUVD-2024-0395","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-49290","published":"2023-12-04","fixed":"1.2.27","kev":false,"link":{"from":"CVE-2023-49290","to":"CVE-2024-21664","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/lestrrat-go/jwx","fromFixed":"1.2.27","toFixed":"1.2.28","daysApart":36},{"kind":"version-step","provenance":"source","package":"Go:github.com/lestrrat-go/jwx/v2","fromFixed":"2.0.18","toFixed":"2.0.19","daysApart":36}]}},{"cve":"CVE-2024-21664","published":"2024-01-09","fixed":"1.2.28","kev":false},{"cve":"CVE-2024-28122","published":"2024-03-09","fixed":"1.2.29","kev":false,"link":{"from":"CVE-2024-21664","to":"CVE-2024-28122","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/lestrrat-go/jwx","fromFixed":"1.2.28","toFixed":"1.2.29","daysApart":60},{"kind":"version-step","provenance":"source","package":"Go:github.com/lestrrat-go/jwx/v2","fromFixed":"2.0.19","toFixed":"2.0.21","daysApart":60}]}}],"package":"Go:github.com/lestrrat-go/jwx"}}