Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.bouncycastle/bc-fips
  4. ›
  5. CVE-2025-8885

CVE-2025-8885: Bouncy Castle for Java on All (API modules) allows Excessive Allocation

August 12, 2025

A resource allocation vulnerability exists in Bouncy Castle for Java (by Legion of the Bouncy Castle Inc.) that affects all API modules. The vulnerability allows attackers to cause excessive memory allocation through unbounded resource consumption, potentially leading to denial of service. The issue is located in the ASN1ObjectIdentifier.java file in the core module.

This issue affects Bouncy Castle for Java: from BC 1.0 through 1.77, from BC-FJA 1.0.0 through 2.0.0.

References

  • github.com/advisories/GHSA-67mf-3cr5-8w23
  • github.com/bcgit/bc-java
  • github.com/bcgit/bc-java/blob/main/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdentifier.java
  • github.com/bcgit/bc-java/commit/3790993df5d28f661a64439a8664343437ed3865
  • github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%908885
  • nvd.nist.gov/vuln/detail/CVE-2025-8885

Code Behaviors & Features

Detect and mitigate CVE-2025-8885 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.0 before 2.1.0

Fixed versions

  • 2.1.0

Solution

Upgrade to version 2.1.0 or above.

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

maven/org.bouncycastle/bc-fips/CVE-2025-8885.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:38 +0000.