CVE-2026-12860

Source
https://cve.org/CVERecord?id=CVE-2026-12860
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-12860.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-12860
Downstream
Related
Published
2026-08-03T02:55:58.379Z
Modified
2026-08-14T18:56:30.689723793Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
RSA PKCS#1 verification skips last two hash bytes in NULL-omitted path
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-347"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/12xxx/CVE-2026-12860.json",
    "cna_assigner": "bcorg"
}
References

Affected packages

Git / github.com/bcgit/bc-java

Affected ranges

Type
GIT
Repo
https://github.com/bcgit/bc-java
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.85"
        }
    ],
    "source": [
        "DESCRIPTION",
        "REFERENCES"
    ]
}
Type
GIT
Repo
https://github.com/bcgit/bc-lts-java
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "2.73.0"
        },
        {
            "fixed": "2.73.12"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

Other
r1rv73
r1rv74
r1rv75
r1rv76
r1rv77
r1rv78
r1rv80
r1rv81
r1rv82
r1rv83
r1rv84
r2rv73dot0
r2rv73dot1
r2rv73dot10
r2rv73dot11
r2rv73dot3
r2rv73dot4
r2rv73dot6
r2rv73dot8
r2rv73dot9

Database specific

vanir_signatures
[
    {
        "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"
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-12860.json"
vanir_signatures_modified
"2026-08-12T15:33:29Z"