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

GMS-2023-4575: 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-4575 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 before 3.0.1

Fixed versions

  • v3.0.1

Solution

Upgrade to version 3.0.1 or above.

Source file

go/github.com/go-jose/go-jose/v3/GMS-2023-4575.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:58 +0000.