What’s Vulnerable › Vulnerabilities
CVE-2026-12860: RSA PKCS#1 verification skips last two hash bytes in NULL-omitted path
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-08-03 · updated 2026-08-28
- Weakness: CWE-347
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.
Affected products
- Legion of the Bouncy Castle Inc. BC-JAVA: before 1.85 — fixed in 1.85
- Legion of the Bouncy Castle Inc. Bouncy Castle for Java LTS: through 2.73.11
How to fix
Upgrade to a fixed version: Legion of the Bouncy Castle Inc. BC-JAVA 1.85. Check the vendor advisory for mitigations.
References
- https://github.com/bcgit/bc-java/commit/ea5970ea9b2fb91d763b904692fd21089ca3e396
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9012860
Get alerted when CVE-2026-12860 or the next vulnerability affects your stack