High

Bouncy Castle has a flaw in the Low-level interface to RSA key pair generator

  • Disclosed: 16.10.2018
  • Updated: 11.10.2026 12:22

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.

PlatformPackageVulnerable versionsFixed 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

CVSS score 7.5/10
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-jdk15

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.

All (16) in the archive
Total entries
16
First → latest
10.2018 11.2023
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 8
  • Medium 7
  • Low 1

Disclosures per year

  1. 2018: 12
  2. 2019: 0
  3. 2020: 0
  4. 2021: 3
  5. 2022: 0
  6. 2023: 1
  7. 2024: 0
  8. 2025: 0
  9. 2026: 0
Severity:
  1. High · 8.1 CVE-2020-28052 >= 1.65, < 1.67 1.67
  2. High · 7.5 CVE-2016-1000340 >= 1.51, < 1.56 1.56
  3. Bouncy Castle has a flaw in the Low-level interface to RSA key pair generator this entry
    High · 7.5 CVE-2018-1000180 < 1.60 1.60

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.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.