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.
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
| Link | Tags |
|---|---|
| https://github.com/bcgit/bc-java/wiki/CVE-2022-45146 | ExploitThird Party Advisory |
| https://mvnrepository.com/artifact/org.bouncycastle/bc-fips | |
| https://www.bouncycastle.org/latest_releases.html | Release NotesVendor Advisory |
| https://github.com/bcgit/bc-java/wiki/CVE-2022-45146 | ExploitThird Party Advisory |
| https://mvnrepository.com/artifact/org.bouncycastle/bc-fips | |
| https://www.bouncycastle.org/latest_releases.html | Release NotesVendor Advisory |
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.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
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.