Out-of-bounds Write Affecting org.bouncycastle:bc-fips package, versions [2.1.0,2.1.1)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGBOUNCYCASTLE-12150438
  • published22 Aug 2025
  • disclosed22 Aug 2025
  • creditUnknown

Introduced: 22 Aug 2025

NewCVE-2025-9340  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade org.bouncycastle:bc-fips to version 2.1.1 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write via the JCE Cipher.doFinal() function in org/bouncycastle/jcajce/provider/BaseCipher when the same byte array is used for both input and output during native encrypt or decrypt operations. An attacker can cause data corruption by exploiting this behavior.

References

CVSS Base Scores

version 4.0
version 3.1