Excessive Resource Allocation Vulnerability in Bouncy Castle Package

bouncycastle Updated 02 Oct 2025

Summary

12/08/2025
N/A
No i
Unrated
Not published

CVE-2025-8885: Allocation of Resources Without Limits or Throttling vulnerability in Legion of the Bouncy Castle Inc. Affects bouncycastle versions 1.68-2 – 1.80-3. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Bouncy Castle is a widely used cryptography library in Java that provides a range of APIs for encryption, decryption, and secure data handling. It is known for its flexibility and extensive support for various cryptographic algorithms. However, it has been identified to have a vulnerability that allows for excessive resource allocation, potentially leading to denial of service or other resource exhaustion issues.

Vulnerability Detail

The vulnerability, identified as CVE-2025-8885, arises from the allocation of resources without limits or throttling in the Bouncy Castle for Java library. This issue affects versions from BC 1.0 through 1.77, and from BC-FJA 1.0.0 through 2.0.0. The excessive allocation can lead to significant performance degradation and may allow attackers to exploit the library to exhaust system resources, resulting in service interruptions or crashes.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you may limit the resource allocation in your application by implementing throttling mechanisms or resource limits in your application code. This can help mitigate the impact of the vulnerability until a proper update is applied.

Conclusion

The CVE-2025-8885 vulnerability in the Bouncy Castle library poses significant risks due to excessive resource allocation. It is crucial for users to update to the patched version to mitigate these risks and ensure the stability of their applications.

See every vulnerability recorded for bouncycastle →

Share this vulnerability

FAQ

CVE-2025-8885 is a vulnerability in the Bouncy Castle library that allows for excessive resource allocation, potentially leading to denial of service.

The affected versions include Bouncy Castle from 1.0 to 1.77 and BC-FJA from 1.0.0 to 2.0.0.

You can use Vulert, which monitors open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected without any signup.

The vulnerability can lead to performance issues, service interruptions, and potential crashes due to resource exhaustion.

Yes, a patch is available in version 1.80-1 and later of the Bouncy Castle package.

Related vulnerabilities

Recent vulnerabilities recorded for bouncycastle.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback