ADVISORIES

GitHub Advisory Database

GHSA-67mf-3cr5-8w23

Bouncy Castle for Java on All (API modules) allows Excessive Allocation

Moderate CVE-2025-8885

Details

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.

Affected packages

EcosystemPackageAffected versions
Mavenorg.bouncycastle:bcprov-jdk14
From 1.0 before 1.78 (fixed in 1.78)
Mavenorg.bouncycastle:bcprov-jdk15to18
From 1.0 before 1.78 (fixed in 1.78)
Mavenorg.bouncycastle:bcprov-jdk18on
From 1.0 before 1.78 (fixed in 1.78)
Mavenorg.bouncycastle:bctls-jdk14
From 1.0 before 1.78 (fixed in 1.78)
Mavenorg.bouncycastle:bctls-jdk15to18
From 1.0 before 1.78 (fixed in 1.78)
Mavenorg.bouncycastle:bctls-jdk18on
From 1.0 before 1.78 (fixed in 1.78)
Mavenorg.bouncycastle:bc-fips
From 1.0.0 before 1.0.2.6 (fixed in 1.0.2.6)
Mavenorg.bouncycastle:bc-fips
From 2.0.0 before 2.0.1 (fixed in 2.0.1)

References