Bouncy Castle has a flaw in the Low-level interface to RSA key pair generator
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk14 | < 1.60 | 1.60 |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk15 | < 1.60 | 1.60 |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk15on | < 1.60 | 1.60 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000180
- https://github.com/bcgit/bc-java/commit/22467b6e8fe19717ecdf201c0cf91bacf04a55ad
- https://github.com/bcgit/bc-java/commit/73780ac522b7795fc165630aba8d5f5729acc839
- https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
- https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
- https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://www.oracle.com/security-alerts/cpuapr2020.html
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.debian.org/security/2018/dsa-4233
- https://www.bountysource.com/issues/58293083-rsa-key-generation-computation-of-iterations-for-mr-primality-test
- https://security.netapp.com/advisory/ntap-20190204-0003
- https://lists.apache.org/thread.html/708d94141126eac03011144a971a6411fcac16d9c248d1d535a39451@%3Csolr-user.lucene.apache.org%3E
- https://github.com/bcgit/bc-java/wiki/CVE-2018-1000180
- https://github.com/advisories/GHSA-xqj7-j8j5-f2xr
- https://access.redhat.com/errata/RHSA-2019:0877
- https://access.redhat.com/errata/RHSA-2018:2669
- https://access.redhat.com/errata/RHSA-2018:2643
- https://access.redhat.com/errata/RHSA-2018:2428
- https://access.redhat.com/errata/RHSA-2018:2425
- https://access.redhat.com/errata/RHSA-2018:2424
- https://access.redhat.com/errata/RHSA-2018:2423
- http://www.securityfocus.com/bid/106567
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-327- Platform
- Java / Kotlin (Maven)
- Package
org.bouncycastle:bcprov-jdk14, org.bouncycastle:bcprov-jdk15, org.bouncycastle:bcprov-jdk15on- Disclosed
- 16.10.2018
- Updated
- 11.10.2026 12:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-xqj7-j8j5-f2xr - CC BY 4.0
Vulnerability history: org.bouncycastle:bcprov-jdk15on
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 25
- First → latest
- 10.2018 04.2026
- Without a fix
- 3
- Exploited in attacks
- 0
Severity breakdown
- Critical 2
- High 8
- Medium 14
- Low 1
Disclosures per year
- 2018: 13
- 2019: 0
- 2020: 0
- 2021: 3
- 2022: 3
- 2023: 2
- 2024: 3
- 2025: 0
- 2026: 1
-
Bouncy Castle has a flaw in the Low-level interface to RSA key pair generator this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.