CVE-2025-8885Possible DOS in processing specially formed ASN.1 Object Identifiers
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.
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | bouncycastle | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | bouncycastle | Fix pending | UBUNTU-CVE-2025-8885 | |
| Ubuntu 22.04 | bouncycastle | Fix pending | UBUNTU-CVE-2025-8885 | |
| Ubuntu 20.04 | bouncycastle | Fix pending | UBUNTU-CVE-2025-8885 | |
| Ubuntu 18.04 | bouncycastle | Fix pending | UBUNTU-CVE-2025-8885 | |
| Ubuntu 16.04 | bouncycastle | Fix pending | UBUNTU-CVE-2025-8885 | |
| Debian 14 | bouncycastle | Fixed | 1.80-1 | DEBIAN-CVE-2025-8885 |
| Debian 13 | bouncycastle | Fixed | 1.80-1 | DEBIAN-CVE-2025-8885 |
| Debian 12 | bouncycastle | Fix pending | DEBIAN-CVE-2025-8885 | |
| Red Hat Enterprise Linux 9 | jmc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-client | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-core | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-jackson2-provider | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-servlet-initializer | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | resteasy | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resteasy | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resteasy-javadoc | Fix pending Fix deferred | ||
| Maven library | org.bouncycastle:bc-fips | Fixed | 2.0.1 | GHSA-67mf-3cr5-8w23 |
| Maven library | org.bouncycastle:bcprov-jdk14 | Fixed | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven library | org.bouncycastle:bcprov-jdk15to18 | Fixed | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven library | org.bouncycastle:bcprov-jdk18on | Fixed | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven library | org.bouncycastle:bctls-jdk14 | Fixed | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven library | org.bouncycastle:bctls-jdk15to18 | Fixed | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven library | org.bouncycastle:bctls-jdk18on | Fixed | 1.78 | GHSA-67mf-3cr5-8w23 |
What the vendor says
As published in the CVE record by bcorg, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Legion of the Bouncy Castle Inc. BC Java: affected: 1.0 to 1.77
- Legion of the Bouncy Castle Inc. BC-FJA: affected: 1.0.0 to 1.0.2.5, 2.0.0 to 2.0.1
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.
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.