# CVE-2025-8885: Possible DOS in processing specially formed ASN.1 Object Identifiers

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; S: P; R: U; RE: M; U: Amber
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-770
- **Aliases:** GHSA-67mf-3cr5-8w23
- **Published:** 2025-08-12T09:13:42.770Z
- **Modified:** 2026-09-10T03:50:26.916Z

## Who should check

- Projects that depend on Maven package org.bouncycastle:bcprov-jdk14 (\>= 1.0, \< 1.78)
- Projects that depend on Maven package org.bouncycastle:bcprov-jdk15to18 (\>= 1.0, \< 1.78)
- Projects that depend on Maven package org.bouncycastle:bcprov-jdk18on (\>= 1.0, \< 1.78)
- Projects that depend on Maven package org.bouncycastle:bctls-jdk14 (\>= 1.0, \< 1.78)
- Projects that depend on Maven package org.bouncycastle:bctls-jdk15to18 (\>= 1.0, \< 1.78)
- Projects that depend on Maven package org.bouncycastle:bctls-jdk18on (\>= 1.0, \< 1.78)
- Projects that depend on Maven package org.bouncycastle:bc-fips (\>= 1.0.0, \< 1.0.2.6)
- Anyone running Legion of the Bouncy Castle Inc. BC Java \>= 1.0, \<= 1.77

## Description

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 .

This 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.

## Affected and fixed versions

- Maven `org.bouncycastle:bcprov-jdk14`: affected \>= 1.0, \< 1.78; fixed 1.78 (osv)
- Maven `org.bouncycastle:bcprov-jdk15to18`: affected \>= 1.0, \< 1.78; fixed 1.78 (osv)
- Maven `org.bouncycastle:bcprov-jdk18on`: affected \>= 1.0, \< 1.78; fixed 1.78 (osv)
- Maven `org.bouncycastle:bctls-jdk14`: affected \>= 1.0, \< 1.78; fixed 1.78 (osv)
- Maven `org.bouncycastle:bctls-jdk15to18`: affected \>= 1.0, \< 1.78; fixed 1.78 (osv)
- Maven `org.bouncycastle:bctls-jdk18on`: affected \>= 1.0, \< 1.78; fixed 1.78 (osv)
- Maven `org.bouncycastle:bc-fips`: affected \>= 1.0.0, \< 1.0.2.6; fixed 1.0.2.6, 2.0.1 (osv)
- Legion of the Bouncy Castle Inc. BC Java: \>= 1.0, \<= 1.77 (cvelist)
- Legion of the Bouncy Castle Inc. BC-FJA: \>= 1.0.0, \<= 1.0.2.5; \>= 2.0.0, \<= 2.0.1 (cvelist)

## Mitigation

- Upgrade org.bouncycastle:bcprov-jdk14 to 1.78 or later.
- Upgrade org.bouncycastle:bcprov-jdk15to18 to 1.78 or later.
- Upgrade org.bouncycastle:bcprov-jdk18on to 1.78 or later.
- Upgrade org.bouncycastle:bctls-jdk14 to 1.78 or later.
- Upgrade org.bouncycastle:bctls-jdk15to18 to 1.78 or later.
- Upgrade org.bouncycastle:bctls-jdk18on to 1.78 or later.
- Upgrade org.bouncycastle:bc-fips to one of 1.0.2.6, 2.0.1 (or later in the same release line).
- Vendor workaround: 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-8885. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-8885.md
Affected: org.bouncycastle:bcprov-jdk14 >= 1.0, < 1.78; org.bouncycastle:bcprov-jdk15to18 >= 1.0, < 1.78; org.bouncycastle:bcprov-jdk18on >= 1.0, < 1.78; org.bouncycastle:bctls-jdk14 >= 1.0, < 1.78; org.bouncycastle:bctls-jdk15to18 >= 1.0, < 1.78; org.bouncycastle:bctls-jdk18on >= 1.0, < 1.78; org.bouncycast…
Fixed in: 1.78, 1.0.2.6, 2.0.1

Steps:
1. Search this machine and project for org.bouncycastle:bcprov-jdk14 (Maven), org.bouncycastle:bcprov-jdk15to18 (Maven), org.bouncycastle:bcprov-jdk18on (Maven), org.bouncycastle:bctls-jdk14 (Maven), org.bouncycastle:bctls-jdk15to18 (Maven), org.bouncycastle:bctls-jdk18on (Maven): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-8885 being exploited?

There is no confirmed exploitation: CVE-2025-8885 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-8885?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-8885?

org.bouncycastle:bcprov-jdk14 \>= 1.0, \< 1.78; org.bouncycastle:bcprov-jdk15to18 \>= 1.0, \< 1.78; org.bouncycastle:bcprov-jdk18on \>= 1.0, \< 1.78; org.bouncycastle:bctls-jdk14 \>= 1.0, \< 1.78; org.bouncycastle:bctls-jdk15to18 \>= 1.0, \< 1.78; org.bouncycastle:bctls-jdk18on \>= 1.0, \< 1.78; org.bouncycastle:bc-fips \>= 1.0.0, \< 1.0.2.6.

### Is there a fix for CVE-2025-8885?

Yes. Fixed in 1.78, 1.0.2.6, 2.0.1. Upgrade org.bouncycastle:bcprov-jdk14 to 1.78 or later. Upgrade org.bouncycastle:bcprov-jdk15to18 to 1.78 or later. Upgrade org.bouncycastle:bcprov-jdk18on to 1.78 or later. Upgrade org.bouncycastle:bctls-jdk14 to 1.78 or later. Upgrade org.bouncycastle:bctls-jdk15to18 to 1.78 or later. Upgrade org.bouncycastle:bctls-jdk18on to 1.78 or later. Upgrade org.bouncycastle:bc-fips to one of 1.0.2.6, 2.0.1 (or later in the same release line). Vendor workaround: 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.

### How do I check if I'm affected by CVE-2025-8885?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-8885>
- patch: <https://github.com/bcgit/bc-java/commit/3790993df5d28f661a64439a8664343437ed3865>
- other: <https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%908885>
- other: <https://github.com/bcgit/bc-java>
- other: <https://github.com/bcgit/bc-java/blob/main/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdentifier.java>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-8885>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-67mf-3cr5-8w23> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-8885> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-8885>
