CVE-2022-45146: Garbage collection issue in BC-FJA in Java 13 and later
5.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.29908%
CWE
Published
11/21/2022
Updated
2/13/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.bouncycastle:bc-fips | maven | < 1.0.2.4 | 1.0.2.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from Java 13+ GC behavior causing premature key zeroing. Analysis focused on:
- Key destruction methods (destroy()) that clear sensitive data
- Finalizers in key classes that trigger cleanup
- Cryptographic operation initialization methods handling temporary keys While no direct patch code is shown, these functions align with the described use-after-free pattern in FIPS modules. The medium confidence reflects educated inference based on Bouncy Castle's architecture and Java GC interactions.