Improper Validation of Integrity Check Value Affecting org.bouncycastle:bcpg-debug-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.16% (6th 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-18519210
  • published5 Aug 2026
  • disclosed3 Aug 2026
  • creditUnknown

Introduced: 3 Aug 2026

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

How to fix?

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

Overview

Affected versions of this package are vulnerable to Improper Validation of Integrity Check Value in the readBlock() method of PGPAeadInputStream (BcAEADUtil, mirrored in JceAEADUtil), which pre-reads the final 16 bytes but ignores the result and returns EOF without calling doFinal() when the data length is an exact multiple of the chunk size. An attacker can have truncated plaintext accepted as authentic by stripping trailing chunks and the final tag from an AEAD-encrypted message and adjusting the unauthenticated outer packet length. This applies only when the plaintext length is chunk-aligned, and it requires the attacker to modify the transmitted ciphertext and its packet length.

CVSS Base Scores

version 4.0
version 3.1