GHSA-2c7c-3mj9-8fqh Decryption of malicious PBES2 JWE objects can consume unbounded system resources
An attacker can cause denial of service by sending malicious JWE objects with large p2c values to applications using the go-jose library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-2c7c-3mj9-8fqh?
GHSA-2c7c-3mj9-8fqh is a denial of service vulnerability in github.com/go-jose/go-jose/v3, published on 21 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Which versions are affected by GHSA-2c7c-3mj9-8fqh?
6 open source packages ship an affected version, including github.com/go-jose/go-jose/v3 and github.com/square/go-jose.
| Package | Affected | Fixed in |
|---|---|---|
github.com/go-jose/go-jose/v3 Go | All versions | 3.0.1 |
github.com/go-jose/go-jose/v3 Go | All versions | 3.0.1 |
github.com/go-jose/go-jose/v3 Go | All versions | 3.0.1 |
github.com/square/go-jose Go | All versions | None |
github.com/square/go-jose Go | All versions | 2.6.2 |
github.com/square/go-jose Go | All versions | 2.6.2 |
How do I fix GHSA-2c7c-3mj9-8fqh?
Upgrade github.com/go-jose/go-jose/v3 to 3.0.1 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is GHSA-2c7c-3mj9-8fqh being exploited?
There is no known exploitation of GHSA-2c7c-3mj9-8fqh in the wild and no public exploit code.
Sources
Also known as GO-2023-2334.