Description
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.
Published: 2026-08-03
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the RSA PKCS#1 signature verification routine of Bouncy Castle for Java before version 1.85 and its LTS branch before 2.73.12. During verification of signatures using the NULL‑omitted path, the library skips the final two bytes of the hash. As a result, a crafted signature that differs only in those two bytes can be accepted as valid, effectively forging the signature. This flaw undermines integrity because forged signatures can be used to impersonate legitimate signers, potentially leading to unauthorized code execution, data tampering, or fraudulent documents. The weakness is catalogued as CWE‑347.

Affected Systems

Affected products are Bouncy Castle’s Java libraries: BC-JAVA prior to version 1.85 and BC‑LTS‑JAVA prior to 2.73.12. Applications that depend on these libraries for RSA signature verification are at risk.

Risk and Exploitability

With a CVSS score of 8.7, the flaw is classed as high severity. No EPSS score is available, and the vulnerability is not listed in CISA’s KEV catalog, indicating that publicly available exploits have not yet been documented. The likely attack vector is any application that accepts user-supplied data and verifies RSA signatures using the affected library; by supplying a subtly altered signature that only differs in the last two hash bytes, an attacker can bypass the check. The impact is that the attacker can gain integrity privileges that the signature is meant to prevent.

Generated by OpenCVE AI on August 3, 2026 at 08:47 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Bouncy Castle library to version 1.85 or newer for BC-JAVA, or to 2.73.12 or newer for BC-LTS-JAVA. This releases the fix that correctly processes all hash bytes during verification.
  • If an immediate upgrade is not feasible, disable the use of RSA PKCS#1 NULL‑omitted path verification in your application or switch to an alternative cryptographic library that does not have this flaw.
  • Verify that the affected cryptographic code path is no longer used by reviewing application logs or code, and restrict any legacy verification modes that rely on the NULL‑omitted path.

Generated by OpenCVE AI on August 3, 2026 at 08:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 03 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java
Vendors & Products Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java

Mon, 03 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 03 Aug 2026 06:45:00 +0000


Mon, 03 Aug 2026 04:00:00 +0000

Type Values Removed Values Added
Description 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.
Title RSA PKCS#1 verification skips last two hash bytes in NULL-omitted path
Weaknesses CWE-347
References
Metrics cvssV4_0

{'score': 8.7, 'vector': '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'}


Subscriptions

Legion Of The Bouncy Castle Inc. Bc-java Bc-lts-java
cve-icon MITRE

Status: PUBLISHED

Assigner: bcorg

Published:

Updated: 2026-08-03T15:10:17.181Z

Reserved: 2026-06-22T07:51:11.945Z

Link: CVE-2026-12860

cve-icon Vulnrichment

Updated: 2026-08-03T15:09:50.393Z

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-08-03T04:16:39.797

Modified: 2026-08-04T14:50:12.360

Link: CVE-2026-12860

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T15:52:03Z

Weaknesses
  • CWE-347

    Improper Verification of Cryptographic Signature