Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.bouncycastle/bc-fips
  4. ›
  5. CVE-2025-9340

CVE-2025-9340: Bouncy Castle for Java has Out-of-Bounds Write Vulnerability

August 22, 2025

Out-of-bounds Write vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java bc-fips on All (API modules). This vulnerability is associated with program files org/bouncycastle/jcajce/provider/BaseCipher.

This issue affects Bouncy Castle for Java: from BC-FJA 2.1.0 through 2.1.0.

References

  • github.com/advisories/GHSA-g6rx-6wfx-gj74
  • github.com/bcgit/bc-java
  • github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%909340
  • nvd.nist.gov/vuln/detail/CVE-2025-9340

Code Behaviors & Features

Detect and mitigate CVE-2025-9340 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.1.0 before 2.1.1, version 2.1.0

Fixed versions

  • 2.1.1

Solution

Upgrade to version 2.1.1 or above.

Weakness

  • CWE-787: Out-of-bounds Write

Source file

maven/org.bouncycastle/bc-fips/CVE-2025-9340.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 23 Aug 2025 00:18:35 +0000.