NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

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

mediumCVSS 4.0 6.3GHSA-67mf-3cr5-8w23

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.

Published Aug 12, 2025 · Updated Sep 3, 2025

Affected packages

org.bouncycastle:bcprov-jdk14

Ecosystem
Maven
Affected
>= 1.0, < 1.78
Fixed in
1.78
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk14

org.bouncycastle:bcprov-jdk15to18

Ecosystem
Maven
Affected
>= 1.0, < 1.78
Fixed in
1.78
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk15to18

org.bouncycastle:bcprov-jdk18on

Ecosystem
Maven
Affected
>= 1.0, < 1.78
Fixed in
1.78
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk18on

org.bouncycastle:bctls-jdk14

Ecosystem
Maven
Affected
>= 1.0, < 1.78
Fixed in
1.78
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bctls-jdk14

org.bouncycastle:bctls-jdk15to18

Ecosystem
Maven
Affected
>= 1.0, < 1.78
Fixed in
1.78
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bctls-jdk15to18

org.bouncycastle:bctls-jdk18on

Ecosystem
Maven
Affected
>= 1.0, < 1.78
Fixed in
1.78
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bctls-jdk18on

org.bouncycastle:bc-fips

Ecosystem
Maven
Affected
= 2.0.0
Fixed in
2.0.1
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bc-fips

org.bouncycastle:bc-fips

Ecosystem
Maven
Affected
>= 1.0.0, < 1.0.2.6
Fixed in
1.0.2.6
Check
mvn dependency:tree -Dincludes=org.bouncycastle:bc-fips

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to xnox.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries