Garbage collection issue in BC-FJA in Java 13 and later
Published 21 Nov 2022 · Updated 10 Sept 2026
Is your project on an affected org.bouncycastle:bc-fips?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.0.2.4
- Fixed in
- 1.0.2.4
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bc-fips -DdepVersion=1.0.2.4 -DforceVersion=trueDetails
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.
Is GHSA-68m8-v89j-7j2p in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.bouncycastle:bc-fips, and gives you the command that fixes it.
More advisories for org.bouncycastle:bc-fips
- HighCVE-2026-13505Bouncy Castle: Zeroisation of sensitive key material on garbage collection relies on finalization. · 8 Aug 2026
- HighCVE-2026-8798Bouncy Castle: the native entropy source used on Intel platforms retried the CPU entropy instructions without any bound · 8 Aug 2026
- HighCVE-2026-13506Bouncy Castle: Lazy ASN.1 sequence forcing resets nesting-depth guard · 3 Aug 2026
- CriticalCVE-2026-8763Bouncy Castle: Name Constraints bypass via trailing dot in rfc822Name and URI · 3 Aug 2026
- MediumCVE-2025-12194Bouncy Castle Vulnerable to Uncontrolled Resource Consumption · 25 Oct 2025
- LowCVE-2025-9340Bouncy Castle for Java has Out-of-Bounds Write Vulnerability · 22 Aug 2025
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.