In Bouncy Castle for Java before 1.85, OpenPGP user-attribute subpacket length bounded only by JVM max memory. 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",
"cwe_ids": [
"CWE-789"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59649.json",
"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"
}
]
}"2026-08-12T15:20:51Z"
[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"135232340931199891923773385157132970615",
"176843008324071853277852142130587204553",
"264042631317190141844881251651953573649",
"33709921547584492779597580720302325764"
]
},
"signature_type": "Line",
"id": "CVE-2026-59649-0d760750",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "pg/src/test/java/org/bouncycastle/bcpg/test/AllTests.java"
},
"source": "https://github.com/bcgit/bc-java/commit/a43c40dc12c3e1c6cbd03c83fe30aaec4029b824"
},
{
"id": "CVE-2026-59649-79ec54d5",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"digest": {
"length": 1016.0,
"function_hash": "262466390068839927360325849060718189429"
},
"target": {
"function": "readPacket",
"file": "pg/src/main/java/org/bouncycastle/bcpg/UserAttributeSubpacketInputStream.java"
},
"source": "https://github.com/bcgit/bc-java/commit/a43c40dc12c3e1c6cbd03c83fe30aaec4029b824"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"200019313161331302399749110781691374423",
"149581705845322519551751268050098600902",
"120024422749752605719712919733629722733",
"7005284347936968015172273570529513558",
"85937672602642321447081171478681529137",
"202524751988671658227738966528402509603",
"21755840291398065906314801284062736552",
"141212747871720174731136659065029877466",
"278978099429511736865872679693756250427",
"100823269568145419482821729758185652439"
]
},
"signature_version": "v1",
"id": "CVE-2026-59649-7c3f8b81",
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "pg/src/main/java/org/bouncycastle/bcpg/UserAttributeSubpacketInputStream.java"
},
"source": "https://github.com/bcgit/bc-java/commit/a43c40dc12c3e1c6cbd03c83fe30aaec4029b824"
},
{
"digest": {
"length": 476.0,
"function_hash": "213115545261806056771245778455869978685"
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2026-59649-a8da1eb5",
"target": {
"function": "testPacketParsing",
"file": "pg/src/test/java/org/bouncycastle/bcpg/test/AllTests.java"
},
"source": "https://github.com/bcgit/bc-java/commit/a43c40dc12c3e1c6cbd03c83fe30aaec4029b824"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-59649.json"