In Bouncy Castle JCE Provider the DSA key pair generator generates a weak private key if used with default values
Published 17 Oct 2018 · Updated 12 Sept 2025
Is your project on an affected org.bouncycastle:bcprov-jdk14?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <1.56
- Fixed in
- 1.56
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk14 -DdepVersion=1.56 -DforceVersion=true- Affected
- <1.56
- Fixed in
- 1.56
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk15 -DdepVersion=1.56 -DforceVersion=true- Affected
- <1.56
- Fixed in
- 1.56
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk15on -DdepVersion=1.56 -DforceVersion=trueDetails
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.
Is GHSA-rrvx-pwf8-p59p in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.bouncycastle:bcprov-jdk14, and gives you the command that fixes it.
More advisories for org.bouncycastle:bcprov-jdk14
- CriticalCVE-2025-14813Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks · 17 Apr 2026
- HighCVE-2026-5598Bouncy Castle Has Covert Timing Channel Vulnerability · 17 Apr 2026
- MediumCVE-2026-0636Bouncy Castle has an LDAP injection · 17 Apr 2026
- MediumCVE-2025-8885Bouncy Castle for Java on All (API modules) allows Excessive Allocation · 12 Aug 2025
- MediumCVE-2024-29857Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation. · 14 May 2024
- MediumCVE-2024-30172Bouncy Castle crafted signature and public key can be used to trigger an infinite loop · 14 May 2024
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2016-1000343
- Linkgithub.com/bcgit/bc-java/commit/50a53068c094d6cff37659da33c9b4505becd389#diff-5578e61500abb2b87b300d3114bdfd7d
- Linkaccess.redhat.com/errata/RHSA-2018:2669
- Linkaccess.redhat.com/errata/RHSA-2018:2927
- Advisorygithub.com/advisories/GHSA-rrvx-pwf8-p59p
- Packagegithub.com/bcgit/bc-java
- Linklists.apache.org/thread.html/708d94141126eac03011144a971a6411fcac16d9c248d1d535a39451@%3Csolr-user.lucene.apache.org%3E
- Linklists.debian.org/debian-lts-announce/2018/07/msg00009.html
- Linksecurity.netapp.com/advisory/ntap-20181127-0004
- Linkusn.ubuntu.com/3727-1
- Linkwww.oracle.com/security-alerts/cpuoct2020.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.