CVE-2024-21664
Lestrrat-go Jwx vulnerability
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.
Affected products
Jwx. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Lestrrat-go Jwx runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/lestrrat-go/jwx/security/advisories/GHSA-pvcr-v8j8-j5q3 · Exploit
- github.com/lestrrat-go/jwx/commit/0e8802ce6842625845d651456493e7c87625601f · Patch
- github.com/lestrrat-go/jwx/commit/d69a721931a5c48b9850a42404f18e143704adcd · Patch
- github.com/lestrrat-go/jwx/commit/8c53d0ae52d5ab1e2b37c5abb67def9e7958fd65
- nvd.nist.gov/vuln/detail/CVE-2024-21664
- cve.org/CVERecord?id=CVE-2024-21664
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.