cve.bz

CVE-2026-71887 legion of the bouncy castle inc. bc-java

8.2 highEPSS 0.09%

High (8.2) in legion of the bouncy castle inc. bc-java. EPSS 0.09% estimated probability of exploitation activity in the next 30 days.

On this page
In Bouncy Castle for Java before 1.86, the high-level OpenPGP API accepted a data signature made by a signing subkey whose Subkey Binding signature carried no embedded Primary Key Binding (cross-certification) signature, in the case where that binding omits a Key Flags subpacket. RFC 9580 sec. 5.2.1.8 and sec. 10.1.3 require the embedded Primary Key Binding signature on any subkey that can issue signatures; it is the subkey's own statement that it belongs to the primary key it is bound under. OpenPGPCertificate resolved the subkey's key flags two different ways. isSigningKey() goes through getKeyFlags() and getApplyingSubpacket(), which falls back to the primary key's direct-key or primary User ID self-signature when the binding signature omits the subpacket, so the subkey inherited the primary's SIGN_DATA and counted as signing-capable; verifyEmbeddedPrimaryKeyBinding(), which enforces the requirement, reads the binding signature's own hashed subpackets, found no SIGN_DATA there, and returned early as a non-signing key without ever demanding the back signature. The same subkey was therefore signing-capable - so its signatures were attributed to the certificate and OpenPGPSignature.OpenPGPDocumentSignature.isValid() returned true - while being exempt from cross-certification, where GnuPG refuses the identical certificate and message. An attacker needs only the victim's public signing subkey, which is public material: they bind it to their own primary key with a Subkey Binding signature they are able to make, carrying no Key Flags and no embedded Primary Key Binding signature, which they cannot make without the subkey's private key, and a relying party verifying one of the victim's genuinely signed messages against that certificate is told the signature is valid and given the attacker's certificate as its issuer. Because a certificate's User IDs are self-asserted, a verifier that pins on the subkey's fingerprint or key ID while taking the identity from the enclosing certificate reports a real signature under an attacker-chosen identity. This is misattribution of a genuine signature rather than forgery of a new one: no private key is recovered, and the signature must be one the grafted subkey actually made. The low-level PGPSignature / PGPPublicKeyRing API performs no binding checks by design and is unaffected. Key Flags are a statement about the key the carrying signature refers to (RFC 9580 sec. 5.2.3.29), so a subkey no longer inherits them from the certificate-wide signatures of the primary key: a Subkey Binding signature that omits the subpacket now leaves the subkey with no capabilities rather than the primary's, which makes the flags the cross-certification check consults the same flags every other decision consults. Preferences and the other subpackets a direct-key signature carries are inherited as before, and the primary key itself, whose flags legitimately come from its own direct-key or User ID self-signature, is unaffected.

Severity

CVSS 4.0

8.2 high
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/U:Amber
EPSS
0.09% (unchanged from 0.09% a week ago; 0.09% 30 days ago) estimated probability of exploitation activity in the next 30 days; 0th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-345 Insufficient Verification of Data Authenticity
CWE-347 Improper Verification of Cryptographic Signature
OWASP Top 10
A04:2025 Cryptographic Failures, A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-71887 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-71887?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-71887?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-71887 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • legion of the bouncy castle inc.:bc-java

Versions

From the CNA's record in the CVE List.

ProductAffected
Legion of the Bouncy Castle Inc. BC-JAVAfrom 1.81 before 1.86

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13bouncycastleno fix listedDEBIAN-CVE-2026-71887
Debian14bouncycastle1.86-1DEBIAN-CVE-2026-71887
Ubuntu26.04:LTS, 26.10, Pro:16.04:LTS and 4 morebouncycastleno fix listedUBUNTU-CVE-2026-71887
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-apache-sshd0:2.20.0-1.redhat_00002.1.el8eapRHSA-2026:99018
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-bouncycastle, eap8-bouncycastle-pg, eap8-bouncycastle-pkix and 3 more0:1.86.0-1.redhat_00001.1.el8eapRHSA-2026:99018
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-eap-product-conf-parent, eap8-eap-product-conf-wildfly-ee-feature-pack0:801.9.1-1.GA_redhat_00002.1.el8eapRHSA-2026:99018
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-ironjacamar, eap8-ironjacamar-jdbc, eap8-ironjacamar-core-api and 6 more0:3.1.1-1.Final_redhat_00001.1.el8eapRHSA-2026:99018
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-jackson-jaxrs-base, eap8-jackson-modules-base, eap8-jackson-datatype-jdk8 and 5 more0:2.18.11-1.redhat_00001.1.el8eapRHSA-2026:99018
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-mod_cluster0:2.1.1-1.Final_redhat_00001.1.el8eapRHSA-2026:99018
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-neethi0:3.2.4-1.redhat_00001.1.el8eapRHSA-2026:99018
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-wildfly, eap8-wildfly-modules, eap8-wildfly-java-jdk17 and 1 more0:8.1.9.1-1.GA_redhat_00006.1.el8eapRHSA-2026:99018
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-wildfly-http-client, eap8-wildfly-http-ejb-client, eap8-wildfly-http-client-common and 2 more0:2.1.5-1.Final_redhat_00001.1.el8eapRHSA-2026:99018
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-wildfly-javadocs0:8.1.1-15.GA_redhat_00052.1.el8eapRHSA-2026:99018
Red Hatjboss_enterprise_application_platform:8.1::el8eap8-ws-commons-XmlSchema0:2.3.3-1.redhat_00001.1.el8eapRHSA-2026:99018
Red Hatjboss_enterprise_application_platform:8.1::el9eap8-apache-sshd0:2.20.0-1.redhat_00002.1.el9eapRHSA-2026:99018
21 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morebouncycastle1.86-150200.3.41.1SUSE-SU-2026:4797-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0bouncycastle1.86-160000.1.1SUSE-SU-2026:24461-1
openSUSELeap 16.0bouncycastle1.86-160000.1.1openSUSE-SU-2026:22169-1
openSUSETumbleweedbouncycastle1.86-1.1openSUSE-SU-2026:12090-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat has evaluated this vulnerability as having an Important severity rating because remote actors can induce relying services to misattribute authentic digital signatures to an arbitrary identity without requiring credentials or private key compromise. Applications utilizing Bouncy Castle's high-level OpenPGP verification mechanisms may validate a re-bound signing subkey as trusted under an attacker-specified certificate. While this flaw does not permit forging arbitrary signatures or exposing private keys, downstream systems relying on signature identity assertions suffer significant integrity compromise.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Build of Apache Camel 3.33.4.redhatorg.bouncycastle/bcpg-jdk18on:1.86.0.redhat-00001Fixed 2026-10-15RHSA-2026:83670
OpenShift Developer Tools and ServicesjenkinsAffected
OpenShift Developer Tools and Servicesjenkins-2-pluginsAffected
OpenShift Developer Tools and Servicesocp-tools-4/jenkins-rhel8Affected
OpenShift Developer Tools and Servicesocp-tools-4/jenkins-rhel9Affected
Red Hat build of Apache Camel 4 for Quarkus 3bcpg-jdk18onAffected
Red Hat Fuse 7bcpg-jdk18onFix deferred
Red Hat JBoss Enterprise Application Platform 7bcpg-jdk18onFix deferred
Red Hat JBoss Enterprise Application Platform 7jboss-eap-7/eap74-els-openjdk11-openshift-rhel8Fix deferred
Red Hat JBoss Enterprise Application Platform 7jboss-eap-7/eap74-els-openjdk17-openshift-rhel8Fix deferred
Red Hat JBoss Enterprise Application Platform 7jboss-eap-7/eap74-els-openjdk8-openshift-rhel8Fix deferred
Red Hat JBoss Enterprise Application Platform 8bcpg-jdk18onAffected
Red Hat JBoss Enterprise Application Platform Expansion Packbcpg-jdk18onNot affected
Red Hat Single Sign-On 7bcpg-jdk18onFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-71887.

Attack patterns (CAPEC)

  • CAPEC-463 Padding Oracle Crypto Attack Severity: High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-345 (12).

References

Check your stackJSON