Security mailing lists by PureSourceCode

GHSA-2c7c-3mj9-8fqh

MEDIUM

Decryption of malicious PBES2 JWE objects can consume unbounded system resources

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.

Published
21 Nov 2023
Last modified
10 Sep 2026
Weakness
CWE-400
Also known as
GO-2023-2334
Sources
OSVJSONOSV GO-2023-2334JSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/go-jose/go-jose/v3 < 3.0.1 3.0.1
OSV Go github.com/square/go-jose < 2.6.2 2.6.2
OSV Go github.com/square/go-jose all versions

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Nov 2023)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 21 Nov 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.