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.
{
"cwe_ids": [
"CWE-347"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/12xxx/CVE-2026-12860.json",
"cna_assigner": "bcorg"
}[
{
"digest": {
"line_hashes": [
"5611821105480480002493896795181361887",
"206614374233145937923396890584867933075",
"163714429870128283419503549175425897371",
"17864387249599569544971015809818522030"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "core/src/main/java/org/bouncycastle/crypto/signers/RSADigestSigner.java"
},
"deprecated": false,
"id": "CVE-2026-12860-17d26373",
"source": "https://github.com/bcgit/bc-java/commit/ea5970ea9b2fb91d763b904692fd21089ca3e396",
"signature_type": "Line"
},
{
"source": "https://github.com/bcgit/bc-java/commit/ea5970ea9b2fb91d763b904692fd21089ca3e396",
"target": {
"file": "core/src/test/java/org/bouncycastle/crypto/test/RSADigestSignerTest.java",
"function": "performTest"
},
"deprecated": false,
"digest": {
"function_hash": "93410348953507419320816936323015965502",
"length": 3474.0
},
"id": "CVE-2026-12860-8560e1c2",
"signature_version": "v1",
"signature_type": "Function"
},
{
"id": "CVE-2026-12860-ae6068fc",
"signature_version": "v1",
"target": {
"file": "core/src/main/java/org/bouncycastle/crypto/signers/RSADigestSigner.java",
"function": "verifySignature"
},
"deprecated": false,
"source": "https://github.com/bcgit/bc-java/commit/ea5970ea9b2fb91d763b904692fd21089ca3e396",
"digest": {
"function_hash": "258754839422204029531063916747410475740",
"length": 984.0
},
"signature_type": "Function"
},
{
"target": {
"file": "core/src/test/java/org/bouncycastle/crypto/test/RSADigestSignerTest.java"
},
"deprecated": false,
"digest": {
"line_hashes": [
"108690284814566426704231951629510081609",
"197608660647380415510249712082339817840",
"173079048765313546866698394384836874550",
"240083361402276106155273580536978874679",
"107698163101833206373256843264976498451",
"163930171039528239075000106653880169526",
"35906746628211601233125645782864561960",
"206601313065153211406119791765086713362"
],
"threshold": 0.9
},
"signature_version": "v1",
"id": "CVE-2026-12860-bdae2adc",
"source": "https://github.com/bcgit/bc-java/commit/ea5970ea9b2fb91d763b904692fd21089ca3e396",
"signature_type": "Line"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-12860.json"
"2026-08-12T15:33:29Z"