Improper Validation of Integrity Check Value Affecting org.bouncycastle:bcpg-jdk18on package, versions [1.74,1.86)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (5th 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-20536959
  • published6 Oct 2026
  • disclosed3 Oct 2026
  • creditArpan Sharma

Introduced: 3 Oct 2026

NewCVE-2026-85515  (opens in a new tab)
CWE-354  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Improper Validation of Integrity Check Value in the org.bouncycastle.openpgp.api streaming decryption path and the AEAD decryption streams. An attacker can cause decrypted plaintext to be accepted without an error, or have following packets silently dropped, by supplying a message truncated at an AEAD chunk boundary or a truncated SEIPDv1 message that reaches the high-level OpenPGP API. In the AEAD path, BcAEADUtil and JceAEADUtil read an EOFException as a clean end of message through BCPGInputStream.nextPacketTag(), so the caller receives authenticated chunk plaintext with no truncation failure reported. In the SEIPDv1 path, OpenPGPMessageInputStream.close() does not ensure the integrity-protected stream is closed, so the MDC verification in IntegrityProtectedInputStream never runs and the recipient gets CFB-decrypted plaintext with no integrity check.

CVSS Base Scores

version 4.0
version 3.1