CVE-2024-28122Lestrrat-go Jwx
Medium 6.8
Follow: this CVE · Lestrrat-go · Lestrrat-go Jwx We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 3.1
- 6.8
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 47
- Auth required
- Yes
- Published
- Mar 9, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-400
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H
What happens
JWX is Go module implementing various JWx (JWA/JWE/JWK/JWS/JWT, otherwise known as JOSE) technologies. This vulnerability allows an attacker with a trusted public key to cause a Denial-of-Service (DoS) condition by crafting a malicious JSON Web Encryption (JWE) token with an exceptionally high compression ratio. This issue has been patched in versions 1.2.29 and 2.0.21.
What to do
- Apply the vendor's security update for Jwx.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/lestrrat-go/jwx |
< 1.2.29 |
1.2.29 |
go get github.com/lestrrat-go/jwx@v1.2.29 |
| Go | github.com/lestrrat-go/jwx |
< 1.2.29 |
1.2.29 |
go get github.com/lestrrat-go/jwx@v1.2.29 |
| Go | github.com/lestrrat-go/jwx/v2 |
< 2.0.21 |
2.0.21 |
go get github.com/lestrrat-go/jwx/v2@v2.0.21 |
| Go | github.com/lestrrat-go/jwx/v2 |
< 2.0.21 |
2.0.21 |
go get github.com/lestrrat-go/jwx/v2@v2.0.21 |
Per OSV / GitHub Advisories (GHSA-hj3v-m684-v259, GO-2024-2632). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| lestrrat-go | jwx | < 1.2.29 |
| lestrrat-go | jwx | ≥ 2.0.0 < 2.0.21 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product Release Notes
- github.com Product Release Notes
- github.com Exploit Vendor Advisory