Advisory

GO-2023-2334

Also known as: GHSA-2c7c-3mj9-8fqh

Summary

Denial of service via decryption of malicious PBES2 JWE objects in github.com/go-jose/go-jose/v3

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

Not rated by the source.

Dates

Published
2023-11-21 15:39 UTC
Modified
2026-02-04 02:43 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 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

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: Go Vulnerability Database · CC BY 4.0

Sources & licences