High · published August 3, 2026
In Bouncy Castle for Java before 1.85, Possible OOM from unbounded up-front allocation on a definite-length read. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series), and before bctls-fips 1.0.24.
| Product | Versions | Fixed in |
|---|---|---|
| bouncycastle/bc-java | < 1.85 | 1.85 |
| bouncycastle/bctls-fips | < 1.0.24 | 1.0.24 |
| bouncycastle/bouncy_castle_for_java_lts | ≤ 2.73.11 | — |
| bouncycastle/fips_java_api | ≥ 1.0.0, < 1.0.2.7 | 1.0.2.7 |
| bouncycastle/fips_java_api | ≥ 2.0.0, < 2.0.2 | 2.0.2 |
| bouncycastle/fips_java_api | ≥ 2.1.0, < 2.1.3 | 2.1.3 |