GO-2023-2334
MEDIUMDecryption of malicious PBES2 JWE objects can consume unbounded system resources
The go-jose package is subject to a "billion hashes attack" causing denial-of-service when decrypting JWE inputs. This occurs when an attacker can provide a PBES2 encrypted JWE blob with a very large p2c value that, when decrypted, produces a denial-of-service.
- Published
- 21 Nov 2023
- Last modified
- 10 Sep 2026
- Weakness
- CWE-400
- Also known as
- GHSA-2c7c-3mj9-8fqh
- Sources
- OSV GHSA-2c7c-3mj9-8fqhJSONOSVJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/go-jose/go-jose/v3 | < 3.0.1 | 3.0.1 |
| OSV | Go | github.com/square/go-jose | < 2.6.2 | 2.6.2 |
| OSV | Go | github.com/square/go-jose | all versions |
References
- https://github.com/go-jose/go-jose/issues/64 · WEB, REPORT
- https://github.com/go-jose/go-jose/commit/65351c27657d58960c2e6c9fbb2b00f818e50568 · WEB, FIX
- https://github.com/go-jose/go-jose/commit/a3d307244c3bc50b25a71aa0688764c32ec419c7 · WEB
- https://github.com/go-jose/go-jose · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Nov 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 21 Nov 2023)