Vulnerability · Published Aug 22, 2025 · Assigned by bcorg

CVE-2025-9340native encrypt/decrypt operations in JCE may corrupt data if same byte array used for input and output.

None 0.0

In plain English

A out-of-bounds write in Bouncy Castle for Java from Legion of the Bouncy Castle Inc.. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)0.0None
Exploit odds (30 days)0.2%top 92.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.bouncycastle:bc-fips2.1.1GHSA-g6rx-6wfx-gj74

Affected products (as reported)

VendorProductVersions
Legion of the Bouncy Castle Inc. Bouncy Castle for Java BC-FJA 2.1.0 – through 2.1.0

Weakness: CWE-787 · Vector: CVSS:4.0/AV:P/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N/S:N/R:U/RE:M/U:Green

References