In Bouncy Castle for Java before 1.85, CMS verifySignatures returns true for SignedData with zero signers. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bcpkix-fips 1.0.12 (1.0.X series), 2.0.12 (2.0.X series) and 2.1.12 (2.1.X series).
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59639.json",
"cwe_ids": [
"CWE-347"
],
"cna_assigner": "bcorg",
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.0.12"
},
{
"introduced": "2.0.0"
},
{
"fixed": "2.0.12"
},
{
"introduced": "2.1.0"
},
{
"fixed": "2.1.12"
}
],
"source": "AFFECTED_FIELD"
}
]
}"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-59639.json"
"2026-08-12T13:45:43Z"
[
{
"digest": {
"function_hash": "248172216731417060037426735506958763855",
"length": 683.0
},
"source": "https://github.com/bcgit/bc-java/commit/99ddc6dcc6782e6a76b0dd587c77e62eb7096ad0",
"target": {
"file": "pkix/src/main/java/org/bouncycastle/cms/CMSSignedData.java",
"function": "verifySignatures"
},
"deprecated": false,
"id": "CVE-2026-59639-6cb902cd",
"signature_version": "v1",
"signature_type": "Function"
},
{
"digest": {
"line_hashes": [
"185519618309092291115967925554021490639",
"285498038949261599755481916216714326362",
"121530941554298604575725951597369116772"
],
"threshold": 0.9
},
"source": "https://github.com/bcgit/bc-java/commit/99ddc6dcc6782e6a76b0dd587c77e62eb7096ad0",
"target": {
"file": "pkix/src/main/java/org/bouncycastle/cms/CMSSignedData.java"
},
"deprecated": false,
"id": "CVE-2026-59639-82ae9abc",
"signature_version": "v1",
"signature_type": "Line"
},
{
"source": "https://github.com/bcgit/bc-java/commit/99ddc6dcc6782e6a76b0dd587c77e62eb7096ad0",
"target": {
"file": "pkix/src/test/java/org/bouncycastle/cms/test/NewSignedDataTest.java"
},
"digest": {
"line_hashes": [
"233145579337384555099388054335852575167",
"21237510385395960419545504823732864560",
"265941787911752798204147949586928044707",
"173357824411875291744095258129490624732",
"262883071587641562138437333417383305146",
"167582624819181027626166757036210382268"
],
"threshold": 0.9
},
"id": "CVE-2026-59639-f647c08e",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line"
}
]