NetSight
medium6.3

CVE-2025-8885

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

Impact

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

EcosystemPackageAffectedFixed in
mavenorg.bouncycastle:bcprov-jdk14>= 1.0, < 1.781.78
mavenorg.bouncycastle:bcprov-jdk15to18>= 1.0, < 1.781.78
mavenorg.bouncycastle:bcprov-jdk18on>= 1.0, < 1.781.78
mavenorg.bouncycastle:bctls-jdk14>= 1.0, < 1.781.78
mavenorg.bouncycastle:bctls-jdk15to18>= 1.0, < 1.781.78
mavenorg.bouncycastle:bctls-jdk18on>= 1.0, < 1.781.78
mavenorg.bouncycastle:bc-fips= 2.0.02.0.1

Affected products

ProductAffected versions
BC Java: From 1.0
through 1.77
From 2.0.0
through 2.0.1.

Versions were read from the advisory text. No structured product data has been published for this record yet.

Weakness classification

References