Improper Verification of Cryptographic Signature Affecting org.bouncycastle:bcpg-jdk18on package, versions [1.81,1.86)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (1st 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-20419498
  • published4 Oct 2026
  • disclosed3 Oct 2026
  • creditArpan Sharma

Introduced: 3 Oct 2026

NewCVE-2026-71887  (opens in a new tab)
CWE-347  (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 Verification of Cryptographic Signature through OpenPGPCertificate.getApplyingSubpacket() in org.bouncycastle.openpgp.api. An attacker can make a genuine signature from a victim’s signing subkey validate under an attacker-controlled certificate by supplying a Subkey Binding signature that omits the subkey’s Key Flags and omits the embedded Primary Key Binding signature. The flaw lets a subkey inherit signing capability from the primary key’s certificate-wide Key Flags even when its own binding signature does not grant that capability, so OpenPGPSignature.OpenPGPDocumentSignature.isValid() can report the victim’s signature as valid and attribute it to the attacker’s certificate. For relying parties, this breaks signature attribution and causes authentic signed messages to be accepted under the wrong identity.

CVSS Base Scores

version 4.0
version 3.1