MODERATE 6.3

CVE-2025-8885

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

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.

Affected Maven artifacts (7)

ArtifactAffected versionsFixed in
org.bouncycastle » bc-fips
>= 1.0.0, < 1.0.2.6>= 2.0.0, < 2.0.1
1.0.2.6, 2.0.1
org.bouncycastle » bcprov-jdk14
>= 1.0, < 1.78
1.78
org.bouncycastle » bcprov-jdk15to18
>= 1.0, < 1.78
1.78
org.bouncycastle » bcprov-jdk18on
>= 1.0, < 1.78
1.78
org.bouncycastle » bctls-jdk14
>= 1.0, < 1.78
1.78
org.bouncycastle » bctls-jdk15to18
>= 1.0, < 1.78
1.78
org.bouncycastle » bctls-jdk18on
>= 1.0, < 1.78
1.78

Blast radius

7affected artifacts
115affected versions
14,258dependent artifacts (est.)
610,420dependent versions

37% of the dependent artifacts (5,365) still pull an affected version in their latest release.

DepthDependent versions
Direct
24,456
2 hops
105,945
3 hops
132,376
4 hops
177,462
5 hops
122,561
6 hops
47,620

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.