Exposure of Sensitive Information Through Metadata Affecting org.bouncycastle:bcpg-jdk18on package, versions [,1.85)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (19th 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 IDSNYK-JAVA-ORGBOUNCYCASTLE-18512940
  • published4 Aug 2026
  • disclosed3 Aug 2026
  • creditUnknown

Introduced: 3 Aug 2026

NewCVE-2026-59640  (opens in a new tab)
CWE-1230  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Exposure of Sensitive Information Through Metadata via CFB quick-check decryption oracle in the getDataStream() method of PGPSymmetricKeyEncryptedData, reached through PGPPBEEncryptedData, PGPSessionKeyEncryptedData, and OpenPGPMessageProcessor, which checks the two repeated CFB IV bytes and throws PGPDataValidationException before MDC verification completes. An attacker with adaptive chosen-ciphertext access to a decryption endpoint can recover roughly two plaintext bytes per about 2^15 queries by distinguishing the early quick-check failure from a later MDC or parse failure. This affects only the symmetric and session-key decryption paths on SEIPDv1 messages, not PGPPublicKeyEncryptedData which already skips the check, and it requires the endpoint's early and late failures to be distinguishable to the attacker.

CVSS Base Scores

version 4.0
version 3.1