CVE-2024-21664
Parsing JSON serialized payload without protected field can lead to segfault
Record from NVD · Published January 9, 2024
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.
EPSS 0.86% · 59.5th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| external-secrets-operator | Wolfi | 0.9.11-r1 |
| istio-cni-fips-1.19 | Chainguard | 1.19.6-r2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| lestrrat-go | jwx | 0 |
Timeline
- Jan 9, 2024 CVE Published
- Jan 9, 2024 PoC Published (5 in total, the first dated here)
- Jan 9, 2024 CVE Updated
- Jan 18, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (8 in total, the first dated here)
- Jan 18, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-21664
vulnetix vdb fixes CVE-2024-21664
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-21664/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/lestrrat-go/jwx/commit/0e8802ce6842625845d651456493e7c87625601f fix
- https://github.com/lestrrat-go/jwx/commit/8c53d0ae52d5ab1e2b37c5abb67def9e7958fd65 fix
- https://github.com/lestrrat-go/jwx/commit/d69a721931a5c48b9850a42404f18e143704adcd fix
- https://github.com/lestrrat-go/jwx/security/advisories/GHSA-pvcr-v8j8-j5q3 exploit