← Vulnerability feed

Vulnerability record · CVE-2022-45146 · published 21 November 2022

CVE-2022-45146: Bouncycastle fips java api use after free vulnerability

Bouncycastle · Fips Java Api

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.

5.5 CVSS 3.1 Medium EPSS 0.45% · top 60.6% CWE-416 · Use after free
5.5CVSS 3.1 base score
0.45%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-45146 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.3CVE-2026-58062Bouncycastle bc-java improper certificate validation vulnerabilityIn Bouncy Castle for Java before 1.85, Stapled OCSP response accepted without binding to the checked certificate. This issue also affects Bouncy Cast…EPSS 0.36%9.3CVE-2026-8763Bouncycastle bc-java improper certificate validation vulnerabilityIn Bouncy Castle for Java before 1.85, Name Constraints bypass via trailing dot in rfc822Name and URI. This issue also affects Bouncy Castle for Java…EPSS 0.43%8.7CVE-2026-14682Bouncycastle bc-java vulnerabilityIn Bouncy Castle for Java before 1.85, Possible OOM from unbounded up-front allocation on a definite-length read. This issue also affects Bouncy Cast…EPSS 0.49%8.7CVE-2026-13506Bouncycastle bc-java vulnerabilityIn Bouncy Castle for Java before 1.85, Lazy ASN.1 sequence forcing resets nesting-depth guard. This issue also affects Bouncy Castle for Java LTS bef…EPSS 0.49%8.7CVE-2026-58061Bouncycastle bc-java vulnerabilityIn Bouncy Castle for Java before 1.85, CCM-family modes write plaintext to caller buffer before tag check. This issue also affects Bouncy Castle for …EPSS 0.28%8.7CVE-2026-58059Bouncycastle bc-java vulnerabilityIn Bouncy Castle for Java before 1.85, Quadratic-time escaping when stringifying X.500 distinguished names. This issue also affects Bouncy Castle for…EPSS 0.49%8.7CVE-2026-58060Bouncycastle bc-java vulnerabilityIn Bouncy Castle for Java before 1.85, HSS public-key level count unbounded, enabling huge allocation on verify. This issue also affects Bouncy Castl…EPSS 0.65%7.5CVE-2018-1000180Bouncycastle bc-java broken cryptographic algorithm vulnerabilityBouncy Castle BC 1.54 - 1.59, BC-FJA 1.0.0, BC-FJA 1.0.1 and earlier have a flaw in the Low-level interface to RSA key pair generator, specifically R…EPSS 3.4%

Source: NIST National Vulnerability Database (record CVE-2022-45146), CISA KEV, FIRST EPSS (scores of 2026-11-14). This page is refreshed as NVD updates the record.