Bouncy Castle has a flaw in the Low-level interface to RSA key pair generator
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.bouncycastle:bcprov-jdk14 Maven |
|
|
| org.bouncycastle:bcprov-jdk15 Maven |
|
|
| org.bouncycastle:bcprov-jdk15on Maven |
| Product | Affected | Fixed in |
|---|---|---|
| org.bouncycastle:bcprov-jdk14 Maven |
|
|
| org.bouncycastle:bcprov-jdk15 Maven |
|
|
| org.bouncycastle:bcprov-jdk15on Maven |
|
|
Bouncy 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 RSA Key Pairs generated in low-level API with added certainty may have less M-R tests than expected. This appears to be fixed in versions BC 1.60 beta 4 and later, BC-FJA 1.0.2 and later.
From the CVE record · mitre
RSA key pairs generated through Bouncy Castle’s low-level API with added certainty may receive fewer Miller–Rabin tests than expected. The input does not specify what an attacker could do with such keys or whether exploitation requires network access, authentication, or user interaction.
Check applications using Bouncy Castle BC 1.54–1.59, BC-FJA 1.0.1 or earlier, or the Maven packages bcprov-jdk14, bcprov-jdk15, and bcprov-jdk15on before 1.60.