cve.bz

CVE-2022-45146 bouncycastle fips java api: Use After Free

5.5 mediumExploit referenceEPSS 0.5%Fix available

Medium (5.5) in bouncycastle fips java api. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in org.bouncycastle:bc-fips 1.0.2.4.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.5% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 41st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-45146 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-45146?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-45146?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-45146 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
bouncycastle:fips_java_apibefore 1.0.2.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-68m8-v89j-7j2pMavenorg.bouncycastle:bc-fips<1.0.2.41.0.2.4

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

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

ProductPackageStateAdvisory
Red Hat Build of Keycloakbc-fipsNot affected
Red Hat build of Quarkusorg.bouncycastle/bc-fipsNot affected
Red Hat JBoss Enterprise Application Platform 8bc-fipsNot affected
streams for Apache Kafkabc-fipsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-45146.

References

Check your stackJSON