Buffer overflow in Legion Of The Bouncy Castle Inc. For Java

CVE-2025-9340

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.

Vulnerability class: Buffer Overflow

EPSS: 0.002 (6.2th percentile) — read the EPSS interpretation.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2025-9340?
CVE-2025-9340 is a vulnerability in Legion Of The Bouncy Castle Inc. For Java, classified under Out-of-bounds Write. Published 2025-08-22.
Is CVE-2025-9340 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.