CVE-2024-21664Lestrrat-go Jwx
High 7.5 No auth needed
Follow: this CVE · Lestrrat-go · Lestrrat-go Jwx We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 64
- Auth required
- No
- Published
- Jan 9, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-476
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Jwx.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/lestrrat-go/jwx |
≥ 1.0.8 < 1.2.28 |
1.2.28 |
go get github.com/lestrrat-go/jwx@v1.2.28 |
| Go | github.com/lestrrat-go/jwx |
≥ 1.0.8 < 1.2.28 |
1.2.28 |
go get github.com/lestrrat-go/jwx@v1.2.28 |
| Go | github.com/lestrrat-go/jwx/v2 |
< 2.0.19 |
2.0.19 |
go get github.com/lestrrat-go/jwx/v2@v2.0.19 |
| Go | github.com/lestrrat-go/jwx/v2 |
< 2.0.19 |
2.0.19 |
go get github.com/lestrrat-go/jwx/v2@v2.0.19 |
Per OSV / GitHub Advisories (GHSA-pvcr-v8j8-j5q3, GO-2024-2454). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| lestrrat-go | jwx | < 2.0.19 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com
- github.com Patch
- github.com Exploit Vendor Advisory