cve.bz

CVE-2026-12860 bouncycastle

8.7 highEPSS 0.2%Fix available

High (8.7) in bouncycastle. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
In Bouncy Castle for Java before 1.85, RSA PKCS#1 verification skips last two hash bytes in NULL-omitted path. This issue also affects Bouncy Castle for Java LTS before 2.73.12.

Severity

CVSS 4.0

8.7 high
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/U:Amber

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 7th percentile. Scored 2026-11-21. 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-08-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-347 Improper Verification of Cryptographic Signature
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-12860 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-12860?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-12860?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-12860 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

Versions

From the CNA's record in the CVE List.

ProductAffected
Legion of the Bouncy Castle Inc. BC-JAVAbefore 1.85
Legion of the Bouncy Castle Inc. BC-LTS-JAVAfrom 2.73.0 before 2.73.12

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13bouncycastleno fix listedDEBIAN-CVE-2026-12860
Debian14bouncycastle1.86-1DEBIAN-CVE-2026-12860
Ubuntu26.04:LTS, 26.10, Pro:16.04:LTS and 4 morebouncycastleno fix listedUBUNTU-CVE-2026-12860
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.85-150200.3.38.1SUSE-SU-2026:3559-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0bouncycastle1.85-160000.1.1SUSE-SU-2026:23127-1 SUSE-SU-2026:23150-1
openSUSELeap 16.0bouncycastle1.85-160000.1.1openSUSE-SU-2026:21538-1
openSUSETumbleweedbouncycastle1.85-1.1openSUSE-SU-2026:11445-1

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

Red Hat

Red Hat rates this Important.

Red Hat's statement

A signature verification flaw was found in Bouncy Castle for Java's RSA PKCS#1 parser (`bcprov`). When verifying RSA PKCS#1 v1.5 signatures utilizing a NULL-omitted DigestInfo path, the verification routine incorrectly skips the last two bytes of the expected digest hash. An unauthenticated remote attacker can exploit this truncated comparison to craft forged signatures that pass verification, bypassing cryptographic integrity controls.

Red Hat's mitigation

Enforce strict DigestInfo encoding checks requiring explicit ASN.1 NULL parameters in RSA PKCS#1 v1.5 signature verification, or mandate the use of RSA-PSS signature schemes in application TLS/crypto configuration.

ProductPackageStateAdvisory
Red Hat Build of Apache Camel 3.33.3.SP2org.bouncycastle/bcprov-jdk18on:1.85.2.redhat-00001Fixed 2026-09-22RHSA-2026:70257
Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16bcprov-jdk18onFixed 2026-09-24RHSA-2026:71675
Red Hat build of Keycloak 26.4rhbk/keycloak-operator-bundle:26.4.17-2Fixed 2026-11-06RHSA-2026:95760
Red Hat build of Keycloak 26.4rhbk/keycloak-rhel9:26.4-29Fixed 2026-11-06RHSA-2026:95760
Red Hat build of Keycloak 26.4rhbk/keycloak-rhel9-operator:26.4-30Fixed 2026-11-06RHSA-2026:95760
Red Hat build of Keycloak 26.4.17rhbk/keycloak-rhel9Fixed 2026-11-06RHSA-2026:95759
Red Hat build of Keycloak 26.6rhbk/keycloak-operator-bundle:26.6.8-2Fixed 2026-11-06RHSA-2026:95762
Red Hat build of Keycloak 26.6rhbk/keycloak-rhel9:26.6-24Fixed 2026-11-06RHSA-2026:95762
Red Hat build of Keycloak 26.6rhbk/keycloak-rhel9-operator:26.6-24Fixed 2026-11-06RHSA-2026:95762
Red Hat build of Keycloak 26.6.8rhbk/keycloak-rhel9Fixed 2026-11-06RHSA-2026:95761
OpenShift Developer Tools and ServicesjenkinsAffected
OpenShift Developer Tools and Servicesjenkins-2-pluginsAffected
Red Hat AMQ Broker 7bcprov-jdk18onAffected
Red Hat AMQ Clientsbcpg-jdk18onNot affected
Red Hat AMQ Clientsbcprov-jdk15onNot affected
Red Hat AMQ Clientsbcprov-jdk18onNot affected
Red Hat AMQ Clientsbcutil-jdk18onNot affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/de-minimal-rhel9Not affected
Red Hat build of Apache Camel 4 for Quarkus 3bcpg-jdk18onNot affected
Red Hat build of Apache Camel 4 for Quarkus 3bcpkix-jdk18onNot affected
60 more in the JSON and on Red Hat's page.

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-12860.

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.

References

Check your stackJSON