JWX vulnerable to a denial of service attack using compressed JWE message
lestrrat-go jwx
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/lestrrat-go/jwx/v2 Go |
|
|
| github.com/lestrrat-go/jwx Go |
|
|
lestrrat-go jwx
| Product | Affected | Fixed in |
|---|---|---|
| github.com/lestrrat-go/jwx/v2 Go |
|
|
| github.com/lestrrat-go/jwx Go |
|
|
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.
From the CVE record · GitHub_M
lestrrat-go jwx is vulnerable to denial of service when it processes a crafted JWE token with an exceptionally high compression ratio. An attacker with a trusted public key can cause the denial of service; the input does not specify whether network access or user interaction is required.
Check applications using Go package github.com/lestrrat-go/jwx/v2 before 2.0.21 or github.com/lestrrat-go/jwx before 1.2.29.