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.
{
"cna_assigner": "bcorg",
"cwe_ids": [
"CWE-347"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/12xxx/CVE-2026-12860.json"
}{
"cpe": "cpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.85"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}
{
"cpe": "cpe:2.3:a:bouncycastle:bouncy_castle_for_java_lts:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "2.73.0"
},
{
"fixed": "2.73.12"
},
{
"introduced": "0"
},
{
"last_affected": "2.73.11"
}
],
"source": [
"AFFECTED_FIELD",
"CPE_RANGE"
]
}
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-12860.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"5611821105480480002493896795181361887",
"206614374233145937923396890584867933075",
"163714429870128283419503549175425897371",
"17864387249599569544971015809818522030"
],
"threshold": 0.9
},
"id": "CVE-2026-12860-17d26373",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/bcgit/bc-java/commit/ea5970ea9b2fb91d763b904692fd21089ca3e396",
"target": {
"file": "core/src/main/java/org/bouncycastle/crypto/signers/RSADigestSigner.java"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "93410348953507419320816936323015965502",
"length": 3474
},
"id": "CVE-2026-12860-8560e1c2",
"signature_type": "Function",
"signature_version": "v1",
"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": "258754839422204029531063916747410475740",
"length": 984
},
"id": "CVE-2026-12860-ae6068fc",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/bcgit/bc-java/commit/ea5970ea9b2fb91d763b904692fd21089ca3e396",
"target": {
"file": "core/src/main/java/org/bouncycastle/crypto/signers/RSADigestSigner.java",
"function": "verifySignature"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"108690284814566426704231951629510081609",
"197608660647380415510249712082339817840",
"173079048765313546866698394384836874550",
"240083361402276106155273580536978874679",
"107698163101833206373256843264976498451",
"163930171039528239075000106653880169526",
"35906746628211601233125645782864561960",
"206601313065153211406119791765086713362"
],
"threshold": 0.9
},
"id": "CVE-2026-12860-bdae2adc",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/bcgit/bc-java/commit/ea5970ea9b2fb91d763b904692fd21089ca3e396",
"target": {
"file": "core/src/test/java/org/bouncycastle/crypto/test/RSADigestSignerTest.java"
}
}
]
"2026-09-04T08:06:50Z"