Allocation of Resources Without Limits or Throttling Affecting org.bouncycastle:bcpg-jdk15to18 package, versions [1.71,1.85)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGBOUNCYCASTLE-18512853
  • published4 Aug 2026
  • disclosed3 Aug 2026
  • creditUnknown

Introduced: 3 Aug 2026

NewCVE-2026-59648  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade org.bouncycastle:bcpg-jdk15to18 to version 1.85 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the S2K.Argon2Params class and the PGPUtil.makeKeyFromPassPhrase() method, which read the one-byte OpenPGP Argon2 passes, parallelism, and memory-size exponent fields with only a default cap of memorySizeExponent <= 30 (1 TiB) and feed them straight into Argon2BytesGenerator. An attacker can exhaust memory or stall the process with up to roughly 1 TiB of allocation and heavy CPU work before any authenticity check, by embedding these Argon2 parameters in a minimal SKESK or secret-key packet that the victim attempts to decrypt with a passphrase. This requires the victim to begin passphrase-based decryption of the attacker-supplied message or key, since the cost is incurred during S2K key derivation ahead of authentication.

CVSS Base Scores

version 4.0
version 3.1