Vulnerability · Published Aug 12, 2025 · Assigned by bcorg
CVE-2025-8885Possible DOS in processing specially formed ASN.1 Object Identifiers
Medium 6.3
In plain English
A medium-severity resource allocation without limits in BC-FJA from Legion of the Bouncy Castle Inc.. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | bouncycastle | no fix listed | DEBIAN-CVE-2025-8885 |
| Debian:13 | bouncycastle | 1.80-1 | DEBIAN-CVE-2025-8885 |
| Debian:14 | bouncycastle | 1.80-1 | DEBIAN-CVE-2025-8885 |
| Maven | org.bouncycastle:bc-fips | 1.0.2.6 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bc-fips | 2.0.1 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bcprov-jdk14 | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bcprov-jdk15to18 | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bcprov-jdk18on | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bctls-jdk14 | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bctls-jdk15to18 | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bctls-jdk18on | 1.78 | GHSA-67mf-3cr5-8w23 |
| Ubuntu:22.04:LTS | bouncycastle | no fix listed | UBUNTU-CVE-2025-8885 |
| Ubuntu:24.04:LTS | bouncycastle | no fix listed | UBUNTU-CVE-2025-8885 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Legion of the Bouncy Castle Inc. | BC Java | 1.0 – through 1.77 |
| Legion of the Bouncy Castle Inc. | BC-FJA | 1.0.0 – through 1.0.2.52.0.0 – through 2.0.1 |
Weakness: CWE-770 · 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