{"id":"CVE-2026-59649","summary":"OpenPGP user-attribute subpacket length bounded only by JVM max memory","details":"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).","modified":"2026-08-14T18:56:35.738723164Z","published":"2026-08-03T00:44:24.300Z","related":["SUSE-SU-2026:23127-1","SUSE-SU-2026:23150-1","SUSE-SU-2026:3559-1","openSUSE-SU-2026:11445-1","openSUSE-SU-2026:21538-1"],"database_specific":{"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"}],"cna_assigner":"bcorg"},"references":[{"type":"WEB","url":"https://www.bouncycastle.org/download/bouncy-castle-java-fips/"},{"type":"WEB","url":"https://www.bouncycastle.org/download/bouncy-castle-java-lts/"},{"type":"WEB","url":"https://www.bouncycastle.org/download/bouncy-castle-java/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59649.json"},{"type":"ADVISORY","url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9059649"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59649"},{"type":"FIX","url":"https://github.com/bcgit/bc-java/commit/a43c40dc12c3e1c6cbd03c83fe30aaec4029b824"},{"type":"PACKAGE","url":"https://github.com/bcgit/bc-java"},{"type":"PACKAGE","url":"https://github.com/bcgit/bc-lts-java"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/bcgit/bc-java","events":[{"introduced":"0"},{"fixed":"57fbd3c501f7a369f64eda311d6a709fc0bcae84"},{"fixed":"a43c40dc12c3e1c6cbd03c83fe30aaec4029b824"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"1.85"}],"source":["DESCRIPTION","REFERENCES"]}},{"type":"GIT","repo":"https://github.com/bcgit/bc-lts-java","events":[{"introduced":"468b5082f3f0971e80bf9edb7029c17b39b9ba0c"},{"fixed":"f101b232c5d3e07ecdd504210a57e43831d6cd65"}],"database_specific":{"extracted_events":[{"introduced":"2.73.0"},{"fixed":"2.73.12"}],"source":"AFFECTED_FIELD"}}],"versions":["r1rv84","r1rv81","r1rv83","r1rv82","r1rv80","r1rv78","r1rv77","r1rv76","r1rv75","r1rv74","r1rv73","r2rv73dot11","r2rv73dot10","r2rv73dot9","r2rv73dot8","r2rv73dot6","r2rv73dot4","r2rv73dot3","r2rv73dot1","r2rv73dot0"],"database_specific":{"vanir_signatures":[{"signature_version":"v1","source":"https://github.com/bcgit/bc-java/commit/a43c40dc12c3e1c6cbd03c83fe30aaec4029b824","target":{"file":"pg/src/test/java/org/bouncycastle/bcpg/test/AllTests.java"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["135232340931199891923773385157132970615","176843008324071853277852142130587204553","264042631317190141844881251651953573649","33709921547584492779597580720302325764"]},"id":"CVE-2026-59649-0d760750","signature_type":"Line"},{"source":"https://github.com/bcgit/bc-java/commit/a43c40dc12c3e1c6cbd03c83fe30aaec4029b824","target":{"file":"pg/src/main/java/org/bouncycastle/bcpg/UserAttributeSubpacketInputStream.java","function":"readPacket"},"deprecated":false,"digest":{"length":1016,"function_hash":"262466390068839927360325849060718189429"},"id":"CVE-2026-59649-79ec54d5","signature_type":"Function","signature_version":"v1"},{"signature_version":"v1","source":"https://github.com/bcgit/bc-java/commit/a43c40dc12c3e1c6cbd03c83fe30aaec4029b824","target":{"file":"pg/src/main/java/org/bouncycastle/bcpg/UserAttributeSubpacketInputStream.java"},"deprecated":false,"digest":{"line_hashes":["200019313161331302399749110781691374423","149581705845322519551751268050098600902","120024422749752605719712919733629722733","7005284347936968015172273570529513558","85937672602642321447081171478681529137","202524751988671658227738966528402509603","21755840291398065906314801284062736552","141212747871720174731136659065029877466","278978099429511736865872679693756250427","100823269568145419482821729758185652439"],"threshold":0.9},"id":"CVE-2026-59649-7c3f8b81","signature_type":"Line"},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/bcgit/bc-java/commit/a43c40dc12c3e1c6cbd03c83fe30aaec4029b824","target":{"file":"pg/src/test/java/org/bouncycastle/bcpg/test/AllTests.java","function":"testPacketParsing"},"deprecated":false,"digest":{"function_hash":"213115545261806056771245778455869978685","length":476},"id":"CVE-2026-59649-a8da1eb5"}],"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-59649.json","vanir_signatures_modified":"2026-08-12T15:20:51Z"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber"}]}