Skip to content
OpenAdvisories
Medium GHSA-2c7c-3mj9-8fqh GO-2023-2334

Decryption of malicious PBES2 JWE objects can consume unbounded system resources

Published Nov 21, 2023 · Updated Sep 10, 2026 · Assigned by GHSA

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 packages

EcosystemPackageAffectedFixedRecord
Go github.com/go-jose/go-jose/v3 < 3.0.1 3.0.1 GHSA-2c7c-3mj9-8fqh
Go github.com/square/go-jose < 2.6.2 2.6.2 GHSA-2c7c-3mj9-8fqh
Go github.com/square/go-jose all versions — GO-2023-2334

References