Improper Authentication Affecting org.bouncycastle:bc-fips package, versions [,1.0.2.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th percentile)

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 Learn

Learn about Improper Authentication vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGBOUNCYCASTLE-3136316
  • published21 Nov 2022
  • disclosed21 Nov 2022
  • creditJakub Trávník

Introduced: 21 Nov 2022

CVE-2022-45146  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Improper Authentication. Changes to the JVM garbage collector in Java 13 and later trigger an issue in the BC-FJA FIPS modules, where it is possible for temporary keys used by the module to be zeroed out while still in use by the module.

Notes:

  1. FIPS compliant users are unaffected because the FIPS certification is only for Java 7, 8, and 11.

  2. The assessed High Impact on both Confidentiality and Integrity is due to the encryption, decryption, and authentication failure, that could lead to the internal keys in the FIPS module to be improperly encrypted or at times corrupted.

The issue can be exploited when the JVM is stressed for memory. As the vulnerability requires harder to achieve means of exploitation, we marked the Attack Complexity with High.

There is no clear specification that the attacker needs to have local access.

CVSS Scores

version 3.1