ADVISORIES

GitHub Advisory Database

GHSA-fjqm-246c-mwqg

In Bouncy Castle JCE Provider the other party DH public key is not fully validated

Details

In the Bouncy Castle JCE Provider version 1.55 and earlier the other party DH public key is not fully validated. This can cause issues as invalid keys can be used to reveal details about the other party's private key where static Diffie-Hellman is in use. As of release 1.56 the key parameters are checked on agreement calculation.

Affected packages

EcosystemPackageAffected versions
Mavenorg.bouncycastle:bcprov-jdk14
All versions before 1.56 (fixed in 1.56)
Mavenorg.bouncycastle:bcprov-jdk15
All versions before 1.56 (fixed in 1.56)
Mavenorg.bouncycastle:bcprov-jdk15on
All versions before 1.56 (fixed in 1.56)

References