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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-11-21T00:00:00.000Z
- Modified: 2026-09-10T03:49:47.009Z
- Also known as: GHSA-68m8-v89j-7j2p
- Weaknesses: CWE-416
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- org.bouncycastle:bc-fips (Maven): before 1.0.2.4
- bouncycastle fips_java_api: before 1.0.2.4

## Every score

- GitHub: 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`
- NVD: 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`

## References

- <https://github.com/bcgit/bc-java/wiki/CVE-2022-45146> (exploit, third-party-advisory, web)
- <https://www.bouncycastle.org/latest_releases.html> (release-notes, vendor-advisory, web)
- <https://mvnrepository.com/artifact/org.bouncycastle/bc-fips> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-45146> (advisory)

## Sources

- CVE List: [CVE-2022-45146](https://www.cve.org/CVERecord?id=CVE-2022-45146), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-68m8-v89j-7j2p](https://github.com/advisories/GHSA-68m8-v89j-7j2p), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-45146](https://nvd.nist.gov/vuln/detail/CVE-2022-45146), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-45146 · Whole record: https://cve.day/CVE-2022-45146.json · Rebuilt by cve.day 2026-11-25T22:58:16.718Z
