GitHub Advisoryadvisory · Maven

GHSA-67mf-3cr5-8w23 Bouncy Castle for Java on All (API modules) allows Excessive Allocation

MEDIUM Published 2025-08-12 Modified 2025-09-03 Official page ↗
Aliases
CVE-2025-8885
Ecosystem
Maven
Packages
org.bouncycastle:bcprov-jdk14, org.bouncycastle:bcprov-jdk15to18, org.bouncycastle:bcprov-jdk18on, org.bouncycastle:bctls-jdk14, org.bouncycastle:bctls-jdk15to18, org.bouncycastle:bctls-jdk18on, org.bouncycastle:bc-fips
Severity
Moderate
CVSS 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
Weaknesses
CWE-770
Reviewed
2025-08-12

Affected packages

• Maven org.bouncycastle:bcprov-jdk14: >= 1.0, < 1.78 → fixed in 1.78 • Maven org.bouncycastle:bcprov-jdk15to18: >= 1.0, < 1.78 → fixed in 1.78 • Maven org.bouncycastle:bcprov-jdk18on: >= 1.0, < 1.78 → fixed in 1.78 • Maven org.bouncycastle:bctls-jdk14: >= 1.0, < 1.78 → fixed in 1.78 • Maven org.bouncycastle:bctls-jdk15to18: >= 1.0, < 1.78 → fixed in 1.78 • Maven org.bouncycastle:bctls-jdk18on: >= 1.0, < 1.78 → fixed in 1.78 • Maven org.bouncycastle:bc-fips: >= 1.0.0, < 1.0.2.6 → fixed in 1.0.2.6 • Maven org.bouncycastle:bc-fips: >= 2.0.0, < 2.0.1 → fixed in 2.0.1

Description

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.

Related

Alias · CVE (1)

  • CVE-2025-8885 Allocation of Resources Without Limits or Throttling vulnerability in Legion of the Bouncy Castle Inc. vulnerability

Weakness · CWE (1)

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

References