CVE-2024-21664

Parsing JSON serialized payload without protected field can lead to segfault

State
Published
Severity
4.3 Medium
Published
Jan 9, 2024
Updated
Jun 17, 2025
Reserved
Dec 29, 2023

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.14.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:LGitHub_M

Weaknesses

Affected Products

ProductVersions
jwxlestrrat-go
  • >= 2.0.0, < 2.0.19Affected
  • >= 1.0.8, < 1.2.28Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.