Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/square/go-jose
  4. ›
  5. GMS-2023-4593

GMS-2023-4593: Decryption of malicious PBES2 JWE objects can consume unbounded system resources

November 21, 2023

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.

References

  • github.com/advisories/GHSA-2c7c-3mj9-8fqh
  • github.com/go-jose/go-jose/commit/65351c27657d58960c2e6c9fbb2b00f818e50568
  • github.com/go-jose/go-jose/issues/64

Code Behaviors & Features

Detect and mitigate GMS-2023-4593 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions

Solution

Unfortunately, there is no solution available yet.

Source file

go/github.com/square/go-jose/GMS-2023-4593.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:40 +0000.