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 (updated November 10, 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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

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.

Impact

CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:N

Learn more about CVSS

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 Sun, 08 Nov 2026 00:15:41 +0000.