CVEfocus › CVE database › CVE-2025-8885

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

CVSS 6.3 MediumEPSS 0.7% (higher than 47% of CVEs)Published 2025-08-12Updated 2025-09-12Assigner: bcorg

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.

CWE-770

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

9Fixed
14Fix pending
1Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10bouncycastleNot affected
vulnerable_code_not_present
Ubuntu 24.04bouncycastleFix pendingUBUNTU-CVE-2025-8885
Ubuntu 22.04bouncycastleFix pendingUBUNTU-CVE-2025-8885
Ubuntu 20.04bouncycastleFix pendingUBUNTU-CVE-2025-8885
Ubuntu 18.04bouncycastleFix pendingUBUNTU-CVE-2025-8885
Ubuntu 16.04bouncycastleFix pendingUBUNTU-CVE-2025-8885
Debian 14bouncycastleFixed1.80-1DEBIAN-CVE-2025-8885
Debian 13bouncycastleFixed1.80-1DEBIAN-CVE-2025-8885
Debian 12bouncycastleFix pendingDEBIAN-CVE-2025-8885
Red Hat Enterprise Linux 9jmcFix pending
Fix deferred
Red Hat Enterprise Linux 9pki-resteasy-clientFix pending
Fix deferred
Red Hat Enterprise Linux 9pki-resteasy-coreFix pending
Fix deferred
Red Hat Enterprise Linux 9pki-resteasy-jackson2-providerFix pending
Fix deferred
Red Hat Enterprise Linux 9pki-resteasy-servlet-initializerFix pending
Fix deferred
Red Hat Enterprise Linux 9resteasyFix pending
Fix deferred
Red Hat Enterprise Linux 8resteasyFix pending
Fix deferred
Red Hat Enterprise Linux 8resteasy-javadocFix pending
Fix deferred
Maven libraryorg.bouncycastle:bc-fipsFixed2.0.1GHSA-67mf-3cr5-8w23
Maven libraryorg.bouncycastle:bcprov-jdk14Fixed1.78GHSA-67mf-3cr5-8w23
Maven libraryorg.bouncycastle:bcprov-jdk15to18Fixed1.78GHSA-67mf-3cr5-8w23
Maven libraryorg.bouncycastle:bcprov-jdk18onFixed1.78GHSA-67mf-3cr5-8w23
Maven libraryorg.bouncycastle:bctls-jdk14Fixed1.78GHSA-67mf-3cr5-8w23
Maven libraryorg.bouncycastle:bctls-jdk15to18Fixed1.78GHSA-67mf-3cr5-8w23
Maven libraryorg.bouncycastle:bctls-jdk18onFixed1.78GHSA-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.

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.