{"id":"CVE-2026-13506","published":"2026-08-03T02:56:49Z","modified":"2026-08-03T15:09:01Z","title":"Lazy ASN.1 sequence forcing resets nesting-depth guard","vendor":"Legion of the Bouncy Castle Inc.","product":"BC-JAVA","tier":"tail","description":{"text":"In Bouncy Castle for Java before 1.85, Lazy ASN.1 sequence forcing resets nesting-depth guard. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00493,"percentile":0.35186,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE-2026-13506","tags":["vendor-advisory"]},{"url":"https://github.com/bcgit/bc-java/commit/77454da9b3dcaaa2991412d1c3c1a6e1a338ff84","tags":["patch"]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":7.04},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"legion-of-the-bouncy-castle","affectedVersions":[{"vendor":"Legion of the Bouncy Castle Inc.","product":"BC-JAVA","versions":["< 1.85"]},{"vendor":"Legion of the Bouncy Castle Inc.","product":"BC-LTS-JAVA","versions":[">= 2.73.0, < 2.73.12"]},{"vendor":"Legion of the Bouncy Castle Inc.","product":"BC-FJA","versions":[">= 1.0.0, < 1.0.2.7",">= 2.0.0, < 2.0.2",">= 2.1.0, < 2.1.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-03T15:08:42.725883Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.bouncycastle:bcprov-jdk18on","vulnerableRanges":["<1.85"],"patched":["1.85"],"from":["GHSA-qp49-qgx5-5m26"],"provenance":"source"},{"ecosystem":"Maven","package":"org.bouncycastle:bc-fips","vulnerableRanges":["<1.0.2.7",">=2.0.0, <2.0.2",">=2.1.0, <2.1.3"],"patched":["1.0.2.7","2.0.2","2.1.3"],"from":["GHSA-qp49-qgx5-5m26"],"provenance":"source"},{"ecosystem":"Maven","package":"org.bouncycastle:bcprov-lts8on","vulnerableRanges":["<2.73.12"],"patched":["2.73.12"],"from":["GHSA-qp49-qgx5-5m26"],"provenance":"source"},{"ecosystem":"Maven","package":"org.bouncycastle:bcprov-jdk15to18","vulnerableRanges":["<1.85"],"patched":["1.85"],"from":["GHSA-qp49-qgx5-5m26"],"provenance":"source"}],"summary":{"text":"The Bouncy Castle for Java (BC-JAVA) library, including its LTS and FIPS (BC-FJA) variants, contains a flaw in its lazy ASN.1 sequence handling, where forcing the parser to reset its nesting-depth guard leads to uncontrolled recursion. An attacker with network access can exploit this without authentication or user interaction by supplying crafted ASN.1 data to an affected application, causing availability impact (denial of service).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:10Z"},"euvd":{"id":"EUVD-2026-52139","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-legion-of-the-bouncy-castle-inc-bc-java-cve-2025-8885","parents":[{"from":"CVE-2025-8885","to":"CVE-2026-13506","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.bouncycastle:bc-fips","fromFixed":"1.0.2.6","toFixed":"1.0.2.7","daysApart":356},{"kind":"version-step","provenance":"source","package":"Maven:org.bouncycastle:bc-fips","fromFixed":"2.0.1","toFixed":"2.0.2","daysApart":356},{"kind":"same-code","provenance":"machine","files":["core/src/main/java/org/bouncycastle/asn1/ASN1InputStream.java"],"commits":["https://github.com/bcgit/bc-java/commit/3790993df5d28f661a64439a8664343437ed3865","https://github.com/bcgit/bc-java/commit/77454da9b3dcaaa2991412d1c3c1a6e1a338ff84"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-5598","published":"2026-04-15","fixed":"1.80.2","kev":false},{"cve":"CVE-2025-14813","published":"2026-04-15","fixed":"1.84","kev":false},{"cve":"CVE-2026-0636","published":"2026-04-15","fixed":"1.84","kev":false,"link":{"from":"CVE-2026-0636","to":"CVE-2026-13506","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.bouncycastle:bcprov-jdk15to18","fromFixed":"1.84","toFixed":"1.85","daysApart":110}]}},{"cve":"CVE-2026-13506","published":"2026-08-03","fixed":"1.85","kev":false},{"cve":"CVE-2026-8763","published":"2026-08-03","fixed":"1.85","kev":false}],"package":"Maven:org.bouncycastle:bcprov-jdk15to18"}}