Miggo Logo

CVE-2022-45146: Garbage collection issue in BC-FJA in Java 13 and later

5.5

CVSS Score
3.1

Basic Information

EPSS Score
0.29908%
Published
11/21/2022
Updated
2/13/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.bouncycastle:bc-fipsmaven< 1.0.2.41.0.2.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from Java 13+ GC behavior causing premature key zeroing. Analysis focused on:

  1. Key destruction methods (destroy()) that clear sensitive data
  2. Finalizers in key classes that trigger cleanup
  3. 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*n issu* w*s *is*ov*r** in t** *IPS J*v* *PI o* *oun*y **stl* **-*J* ***or* *.*.*.*. ***n**s to t** JVM **r**** *oll**tor in J*v* ** *n* l*t*r tri***r *n issu* in t** **-*J* *IPS mo*ul*s w**r* it is possi*l* *or t*mpor*ry k*ys us** *y t** mo*ul* to *

Reasoning

T** vuln*r**ility st*ms *rom J*v* **+ ** ****vior **usin* pr*m*tur* k*y z*roin*. *n*lysis *o*us** on: *. K*y **stru*tion m*t*o*s (**stroy()) t**t *l**r s*nsitiv* **t* *. *in*liz*rs in k*y *l*ss*s t**t tri***r *l**nup *. *rypto*r*p*i* op*r*tion initi