Service crash via missing protected-header dereference
Published Jan 9, 2024 · Updated Jun 17, 2025
Denial of service in lestrrat-go jwx 1.0.8 through 1.2.27 and 2.0.0 through 2.0.18 allows attackers to crash JWS-verifying systems via crafted JSON. Message.UnmarshalJSON assumes a signature includes a protected header and passes a nil sig.protected value to getB64Value, causing a pointer dereference. Reachability requires a consuming application to pass attacker-controlled full-JSON JWS input to Parse or Verify; the demonstrated consequence is a process panic.
Summary
What happened
Denial of service in lestrrat-go jwx 1.0.8 through 1.2.27 and 2.0.0 through 2.0.18 allows attackers to crash JWS-verifying systems via crafted JSON. Message.UnmarshalJSON assumes a signature includes a protected header and passes a nil sig.protected value to getB64Value, causing a pointer dereference. Reachability requires a consuming application to pass attacker-controlled full-JSON JWS input to Parse or Verify; the demonstrated consequence is a process panic.
The record
- CVE
- CVE-2024-21664
- Published
- Jan 9, 2024
- Updated
- Jun 17, 2025
- Vendor
- lestrrat-go
- Product
- jwx
- Classifications
- CWE-476, T1499.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jan 9, 2024CVE publishedPublication date reported by the CVE source.
- Jun 17, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 1.0.8, < 1.2.28
- Affected versionversion=>= 2.0.0, < 2.0.19
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-pvcr-v8j8-j5q3 Go reproducerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo