In Bouncy Castle for Java before 1.85, RSA PKCS#1 verification skips last two hash bytes in NULL-omitted path. (CVE-2026-12860)
Bouncy Castle for Java versions before 1.85 and LTS versions before 2.73.12 contain a vulnerability in RSA PKCS#1 signature verification. The verification process incorrectly skips the last two hash bytes when the NULL byte is omitted in the signature. This flaw can lead to incorrect signature validation.
AI Analysis
Technical Summary
The vulnerability in Bouncy Castle for Java prior to version 1.85 and LTS prior to 2.73.12 involves an error in the RSA PKCS#1 signature verification routine. Specifically, when the NULL byte is omitted in the signature encoding, the verification process skips the last two bytes of the hash, potentially allowing malformed signatures to be accepted as valid. This is classified under CWE-347, indicating improper verification of cryptographic signatures.
Potential Impact
This vulnerability undermines the integrity guarantees provided by RSA PKCS#1 signature verification in affected versions of Bouncy Castle for Java. An attacker could exploit this flaw to bypass signature validation, potentially allowing unauthorized code or data to be accepted as authentic. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should monitor official Bouncy Castle advisories for updates and apply any released patches promptly. Until a fix is available, avoid using affected versions in security-critical contexts or implement additional signature verification controls if feasible.
In Bouncy Castle for Java before 1.85, RSA PKCS#1 verification skips last two hash bytes in NULL-omitted path. (CVE-2026-12860)
Description
Bouncy Castle for Java versions before 1.85 and LTS versions before 2.73.12 contain a vulnerability in RSA PKCS#1 signature verification. The verification process incorrectly skips the last two hash bytes when the NULL byte is omitted in the signature. This flaw can lead to incorrect signature validation.
CVSS v4.0
Affected software
pkg:maven/org.bouncycastle/bcprov-jdk15onpkg:maven/org.bouncycastle/bcprov-jdk18onRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Bouncy Castle for Java prior to version 1.85 and LTS prior to 2.73.12 involves an error in the RSA PKCS#1 signature verification routine. Specifically, when the NULL byte is omitted in the signature encoding, the verification process skips the last two bytes of the hash, potentially allowing malformed signatures to be accepted as valid. This is classified under CWE-347, indicating improper verification of cryptographic signatures.
Potential Impact
This vulnerability undermines the integrity guarantees provided by RSA PKCS#1 signature verification in affected versions of Bouncy Castle for Java. An attacker could exploit this flaw to bypass signature validation, potentially allowing unauthorized code or data to be accepted as authentic. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should monitor official Bouncy Castle advisories for updates and apply any released patches promptly. Until a fix is available, avoid using affected versions in security-critical contexts or implement additional signature verification controls if feasible.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cggx-vw4r-j93f
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-12860"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a710680bf32cb7a34396f61
Added to database: 08/03/2026, 21:22:08 UTC
Last enriched: 08/03/2026, 21:40:45 UTC
Last updated: 08/04/2026, 03:17:46 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.