GHSA-2c7c-3mj9-8fqh
JSON

medium

Decryption of malicious PBES2 JWE objects can consume unbounded system resources

Severity
medium rating by GitHub
Published
Last changed
Also known as
GO-2023-2334

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.

Affected

Product or packageVersionsReported by
github.com/go-jose/go-jose/v3 (Go)before 3.0.1GitHub Advisory Database, Go Vulnerability Database
github.com/square/go-jose (Go)before 2.6.2, all versionsGitHub Advisory Database, Go Vulnerability Database

Classification

References

Related

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-2c7c-3mj9-8fqh changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2023-2334 changed 2026-02-04CC-BY-4.0