CVE-2025-8885
Bouncy Castle for Java on All (API modules) allows Excessive Allocation
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: geringes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| maven | org.bouncycastle:bcprov-jdk14 | >= 1.0, < 1.78 | 1.78 |
| maven | org.bouncycastle:bcprov-jdk15to18 | >= 1.0, < 1.78 | 1.78 |
| maven | org.bouncycastle:bcprov-jdk18on | >= 1.0, < 1.78 | 1.78 |
| maven | org.bouncycastle:bctls-jdk14 | >= 1.0, < 1.78 | 1.78 |
| maven | org.bouncycastle:bctls-jdk15to18 | >= 1.0, < 1.78 | 1.78 |
| maven | org.bouncycastle:bctls-jdk18on | >= 1.0, < 1.78 | 1.78 |
| maven | org.bouncycastle:bc-fips | = 2.0.0 | 2.0.1 |
Betroffene Produkte
| Produkt | Betroffene Versionen |
|---|---|
| BC Java: from 1.0 | bis einschließlich 1.77 |
| from 2.0.0 | bis einschließlich 2.0.1. |
Die Versionen stammen aus dem Text des Advisorys. Strukturierte Produktdaten wurden für diesen Eintrag noch nicht veröffentlicht.
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%908885
- https://github.com/advisories/GHSA-67mf-3cr5-8w23
- https://nvd.nist.gov/vuln/detail/CVE-2025-8885
- https://github.com/bcgit/bc-java/commit/3790993df5d28f661a64439a8664343437ed3865
- https://github.com/bcgit/bc-java/blob/main/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdentifier.java