In Bouncy Castle for Java before 1.85, OpenPGP CFB quick-check oracle active on symmetric/session-key paths. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bcpg-fips 1.0.13 (1.0.X series), 2.0.13 (2.0.X series) and 2.1.13 (2.1.X series).
{
"cna_assigner": "bcorg",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59640.json",
"cwe_ids": [
"CWE-203"
],
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.0.13"
},
{
"introduced": "2.0.0"
},
{
"fixed": "2.0.13"
},
{
"introduced": "2.1.0"
},
{
"fixed": "2.1.13"
}
],
"source": "AFFECTED_FIELD"
}
]
}[
{
"signature_version": "v1",
"target": {
"file": "pg/src/main/java/org/bouncycastle/openpgp/PGPEncryptedData.java"
},
"deprecated": false,
"id": "CVE-2026-59640-041c810f",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"50671578365308108760643708027735425608",
"150742747253640397634823343255313346329",
"39678005526965916117473944015363706759",
"141863827011499454410954670095034628019",
"51875940390146466152230553609664151542",
"39781507606215086323376859966086771922",
"160037360228391233706860524767532318468"
]
},
"source": "https://github.com/bcgit/bc-java/commit/6b94b1c146cec1f565d9a85847fae511af77503e"
},
{
"signature_version": "v1",
"target": {
"function": "performTest",
"file": "pg/src/test/java/org/bouncycastle/openpgp/test/PGPSessionKeyTest.java"
},
"deprecated": false,
"id": "CVE-2026-59640-1f35606a",
"signature_type": "Function",
"digest": {
"length": 159.0,
"function_hash": "102217122924963623284000505256155763149"
},
"source": "https://github.com/bcgit/bc-java/commit/6b94b1c146cec1f565d9a85847fae511af77503e"
},
{
"signature_version": "v1",
"target": {
"file": "pg/src/main/java/org/bouncycastle/openpgp/PGPSymmetricKeyEncryptedData.java"
},
"deprecated": false,
"id": "CVE-2026-59640-213b76f2",
"signature_type": "Line",
"source": "https://github.com/bcgit/bc-java/commit/6b94b1c146cec1f565d9a85847fae511af77503e",
"digest": {
"threshold": 0.9,
"line_hashes": [
"270756521905740553887922822009730154934",
"234388666347519758750509571604153776725",
"186505597916280378535338349028662214152",
"241771544909389106236817305913309577419",
"13591022619069070617113074367045861918",
"228108888634461591009170065151840663379"
]
}
},
{
"signature_version": "v1",
"target": {
"file": "pg/src/main/java/org/bouncycastle/openpgp/PGPSessionKeyEncryptedData.java"
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2026-59640-3cdd526d",
"source": "https://github.com/bcgit/bc-java/commit/6b94b1c146cec1f565d9a85847fae511af77503e",
"digest": {
"threshold": 0.9,
"line_hashes": [
"291997531259243721554778469529864575235",
"125357033757300460215718238563511460534"
]
}
},
{
"signature_version": "v1",
"target": {
"function": "processSymmetricEncIntegrityPacketDataStream",
"file": "pg/src/main/java/org/bouncycastle/openpgp/PGPEncryptedData.java"
},
"deprecated": false,
"id": "CVE-2026-59640-45493e94",
"signature_type": "Function",
"digest": {
"length": 875.0,
"function_hash": "70742711808403761908924858800751936865"
},
"source": "https://github.com/bcgit/bc-java/commit/6b94b1c146cec1f565d9a85847fae511af77503e"
},
{
"signature_version": "v1",
"target": {
"function": "getDataStream",
"file": "pg/src/main/java/org/bouncycastle/openpgp/PGPSymmetricKeyEncryptedData.java"
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2026-59640-87f421f1",
"source": "https://github.com/bcgit/bc-java/commit/6b94b1c146cec1f565d9a85847fae511af77503e",
"digest": {
"length": 393.0,
"function_hash": "83441929714388771371226748584049524064"
}
},
{
"signature_version": "v1",
"target": {
"file": "pg/src/test/java/org/bouncycastle/openpgp/test/PGPSessionKeyTest.java"
},
"deprecated": false,
"id": "CVE-2026-59640-947d6bbe",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"222791434545271003907937225506870061428",
"45585583239989964999744826137913605462",
"129884966089975909637959526802652473732",
"61283690759457485155136639222281420349",
"183104424519333394051224003255451837299",
"31930687478730054376312307805538298031",
"103669351217101807287418918564995380837",
"201039243211669276128169041085650540890"
]
},
"source": "https://github.com/bcgit/bc-java/commit/6b94b1c146cec1f565d9a85847fae511af77503e"
},
{
"signature_version": "v1",
"target": {
"function": "getDataStream",
"file": "pg/src/main/java/org/bouncycastle/openpgp/PGPPublicKeyEncryptedData.java"
},
"deprecated": false,
"id": "CVE-2026-59640-f2137970",
"signature_type": "Function",
"digest": {
"length": 1071.0,
"function_hash": "67033837579540121131550698997503611142"
},
"source": "https://github.com/bcgit/bc-java/commit/6b94b1c146cec1f565d9a85847fae511af77503e"
},
{
"signature_version": "v1",
"target": {
"file": "pg/src/main/java/org/bouncycastle/openpgp/PGPPublicKeyEncryptedData.java"
},
"deprecated": false,
"id": "CVE-2026-59640-fdda4721",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"305361709649942376249027324123947514264",
"7792288907536211309222250240666824290",
"105322056043517333653379010132210981475",
"132139126631006945857346243928888669677",
"286730860600336451126653747961348522337",
"261238490834440320109408716932374928776",
"98506360198953903387018901131207726344",
"9588676783076511769144434898873774"
]
},
"source": "https://github.com/bcgit/bc-java/commit/6b94b1c146cec1f565d9a85847fae511af77503e"
}
]
"2026-08-12T15:20:49Z"
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-59640.json"