VYPR
Moderate severityNVD Advisory· Published Nov 21, 2022· Updated Aug 3, 2024

CVE-2022-45146

CVE-2022-45146

Description

An issue was discovered in the FIPS Java API of Bouncy Castle BC-FJA before 1.0.2.4. 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, resulting in errors or potential information loss. NOTE: FIPS compliant users are unaffected because the FIPS certification is only for Java 7, 8, and 11.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Temporary keys in Bouncy Castle BC-FJA before 1.0.2.4 can be zeroed by the Java 13+ garbage collector while still in use, causing errors or information loss.

What the vulnerability is

CVE-2022-45146 affects the Bouncy Castle FIPS Java API (BC-FJA) in versions prior to 1.0.2.4. The root cause is a change in the JVM garbage collector behavior introduced in Java 13 and later. Under specific conditions, temporary cryptographic keys held by the BC-FJA module can be garbage-collected and zeroed out while the module still holds references to them, leading to the use of cleared key material.

How it is exploited

Exploitation does not require network access or authentication by an attacker; it is a functional defect triggered by normal JVM operation. Any application using the BC-FJA FIPS modules on Java 13 or later may encounter this issue. The garbage collector may reclaim and zero temporary key objects before the BC-FJA module has finished using them, causing the module to operate on null or cleared key data.

Impact

The impact includes errors during cryptographic operations and potential information loss. In some scenarios, the unintended clearing of keys could lead to denial of service or the exposure of partial cryptographic states. However, the official advisory notes that FIPS-compliant users are unaffected because the FIPS certification covers only Java 7, 8, and 11 [1].

Mitigation status

The issue is fixed in BC-FJA version 1.0.2.4 [1]. Users running on Java 13 or later are strongly advised to upgrade to the patched version. For those restricted to FIPS-certified Java versions (7, 8, 11), the vulnerability does not apply because the garbage collector behavior in those Java versions does not trigger the issue [1].

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
org.bouncycastle:bc-fipsMaven
< 1.0.2.41.0.2.4

Affected products

93

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.