Advisory

GHSA-2c7c-3mj9-8fqh

Also known as: GO-2023-2334

Summary

Decryption of malicious PBES2 JWE objects can consume unbounded system resources

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-11-21 22:17 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

github.com/go-jose/go-jose/v3

Go · All systems

Affected

  • introduced 0, fixed 3.0.1 (semver)

Fixed versions

3.0.1

Fix

github.com/square/go-jose

Go · All systems

Affected

  • introduced 0, fixed 2.6.2 (semver)

Fixed versions

2.6.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences