VDB
Sign up
HIGH7.5

GHSA-rrvx-pwf8-p59p

In Bouncy Castle JCE Provider the DSA key pair generator generates a weak private key if used with default values

Quick fix

GHSA-rrvx-pwf8-p59p — org.bouncycastle:bcprov-jdk14: upgrade to the fixed version with the command below.

# pom.xml: bump <version>1.56</version> for org.bouncycastle:bcprov-jdk14

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.bouncycastle:bcprov-jdk14
Introduced in: 0Fixed in: 1.56
Fix# pom.xml: bump <version>1.56</version> for org.bouncycastle:bcprov-jdk14
Maven/org.bouncycastle:bcprov-jdk15
Introduced in: 0Fixed in: 1.56
Fix# pom.xml: bump <version>1.56</version> for org.bouncycastle:bcprov-jdk15
Maven/org.bouncycastle:bcprov-jdk15on
Introduced in: 0Fixed in: 1.56
Fix# pom.xml: bump <version>1.56</version> for org.bouncycastle:bcprov-jdk15on

References