# GHSA-2c7c-3mj9-8fqh: Decryption of malicious PBES2 JWE objects can consume unbounded system resources

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-11-21T15:39:17.000Z
- Modified: 2026-09-10T03:49:58.719Z
- Also known as: GO-2023-2334
- Related: CGA-qw38-mv85-36vx
- Weaknesses: CWE-400

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- github.com/go-jose/go-jose/v3 (Go): before 3.0.1
- github.com/square/go-jose (Go): before 2.6.2; all versions

## References

- <https://github.com/go-jose/go-jose/issues/64> (report, web)
- <https://github.com/go-jose/go-jose/commit/65351c27657d58960c2e6c9fbb2b00f818e50568> (fix, web)
- <https://github.com/go-jose/go-jose/commit/a3d307244c3bc50b25a71aa0688764c32ec419c7> (web)
- <https://github.com/go-jose/go-jose> (package)

## Sources

- GitHub Advisory Database: [GHSA-2c7c-3mj9-8fqh](https://github.com/advisories/GHSA-2c7c-3mj9-8fqh), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-2334](https://pkg.go.dev/vuln/GO-2023-2334), CC-BY-4.0, modified 2026-02-04

---

Page: https://cve.day/GHSA-2c7c-3mj9-8fqh · Whole record: https://cve.day/GHSA-2c7c-3mj9-8fqh.json · Rebuilt by cve.day 2026-11-25T22:56:23.589Z
