{"id":"CVE-2025-8885","published":"2025-08-12T09:13:42Z","modified":"2025-09-12T11:09:08Z","title":"Possible DOS in processing specially formed ASN.1 Object Identifiers","vendor":"Legion of the Bouncy Castle Inc.","product":"BC Java","tier":"tail","description":{"text":"Allocation of Resources Without Limits or Throttling vulnerability in Legion of the Bouncy Castle Inc. BC Java bcprov on All (API modules), Legion of the Bouncy Castle Inc. BC-FJA bc-fips on All allows Excessive Allocation. This vulnerability is associated with program files  https://github.com/bcgit/bc-java/blob/main/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdenti... https://github.com/bcgit/bc-java/blob/main/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdentifier.Java .\n\nThis issue affects BC Java: from 1.0 through 1.77; BC-FJA: from 1.0.0 through 1.0.2.5, from 2.0.0 through 2.0.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/S:P/R:U/RE:M/U:Amber","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00635,"percentile":0.5138,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%908885","tags":[]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":10.28},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"legion-of-the-bouncy-castle","affectedVersions":[{"vendor":"Legion of the Bouncy Castle Inc.","product":"BC Java","versions":[">= 1.0, <= 1.77"]},{"vendor":"Legion of the Bouncy Castle Inc.","product":"BC-FJA","versions":[">= 1.0.0, <= 1.0.2.5",">= 2.0.0, <= 2.0.1"]}],"workarounds":{"items":["Limiting the size of ASN.1 objects that can be loaded from \"the wild\", or putting in place some other validation for such objects, will mitigate the risk of an exploit by automatically putting a cap on the maximum size of an ASN.1 OBJECT IDENTIFIER."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-130","name":"Excessive Allocation"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-12T18:14:28.953244Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.bouncycastle:bcprov-jdk14","vulnerableRanges":[">=1.0, <1.78"],"patched":["1.78"],"from":["GHSA-67mf-3cr5-8w23"],"provenance":"source"},{"ecosystem":"Maven","package":"org.bouncycastle:bcprov-jdk15to18","vulnerableRanges":[">=1.0, <1.78"],"patched":["1.78"],"from":["GHSA-67mf-3cr5-8w23"],"provenance":"source"},{"ecosystem":"Maven","package":"org.bouncycastle:bcprov-jdk18on","vulnerableRanges":[">=1.0, <1.78"],"patched":["1.78"],"from":["GHSA-67mf-3cr5-8w23"],"provenance":"source"},{"ecosystem":"Maven","package":"org.bouncycastle:bctls-jdk14","vulnerableRanges":[">=1.0, <1.78"],"patched":["1.78"],"from":["GHSA-67mf-3cr5-8w23"],"provenance":"source"},{"ecosystem":"Maven","package":"org.bouncycastle:bctls-jdk15to18","vulnerableRanges":[">=1.0, <1.78"],"patched":["1.78"],"from":["GHSA-67mf-3cr5-8w23"],"provenance":"source"},{"ecosystem":"Maven","package":"org.bouncycastle:bctls-jdk18on","vulnerableRanges":[">=1.0, <1.78"],"patched":["1.78"],"from":["GHSA-67mf-3cr5-8w23"],"provenance":"source"},{"ecosystem":"Maven","package":"org.bouncycastle:bc-fips","vulnerableRanges":[">=1.0.0, <1.0.2.6",">=2.0.0, <2.0.1"],"patched":["1.0.2.6","2.0.1"],"from":["GHSA-67mf-3cr5-8w23"],"provenance":"source"}],"summary":{"text":"The flaw is in the ASN.1 object identifier processing code (ASN1ObjectIdentifier) of the Bouncy Castle BC Java library, specifically the bcprov API modules, and in the BC-FJA bc-fips module, where specially formed object identifiers cause excessive resource allocation. An attacker who can supply crafted ASN.1 data to an affected application, over the network and without authentication, can trigger a denial of service, with the attack requiring that the vulnerable component be used to parse that input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:24Z"},"euvd":{"id":"EUVD-2025-24231","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-legion-of-the-bouncy-castle-inc-bc-java-cve-2025-8885","children":[{"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-2020-15522","published":"2021-05-20","fixed":"1.0.2.1","kev":false},{"cve":"CVE-2022-45146","published":"2022-11-21","fixed":"1.0.2.4","kev":false},{"cve":"CVE-2024-29857","published":"2024-05-09","fixed":"1.0.2.5","kev":false,"link":{"from":"CVE-2024-29857","to":"CVE-2025-8885","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.bouncycastle:bc-fips","fromFixed":"1.0.2.5","toFixed":"1.0.2.6","daysApart":460}]}},{"cve":"CVE-2025-8885","published":"2025-08-12","fixed":"2.0.1","kev":false},{"cve":"CVE-2025-9092","published":"2025-08-16","fixed":"2.1.1","kev":false},{"cve":"CVE-2025-9340","published":"2025-08-22","fixed":"2.1.1","kev":false},{"cve":"CVE-2025-9341","published":"2025-08-22","fixed":"2.1.1","kev":false},{"cve":"CVE-2026-13505","published":"2026-08-08","fixed":"2.1.3","kev":false,"link":{"from":"CVE-2025-8885","to":"CVE-2026-13505","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.bouncycastle:bc-fips","fromFixed":"1.0.2.6","toFixed":"1.0.2.7","daysApart":361},{"kind":"version-step","provenance":"source","package":"Maven:org.bouncycastle:bc-fips","fromFixed":"2.0.1","toFixed":"2.0.2","daysApart":361}]}},{"cve":"CVE-2026-8763","published":"2026-08-03","fixed":"2.1.3","kev":false,"link":{"from":"CVE-2025-8885","to":"CVE-2026-8763","relation":"successor","confidence":"low","kind":"sequence","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}]}}],"package":"Maven:org.bouncycastle:bc-fips"}}