ADVISORIES

GitHub Advisory Database

GHSA-73xv-w5gp-frxh

Logic error in Legion of the Bouncy Castle BC Java

Details

An issue was discovered in Legion of the Bouncy Castle BC Java 1.65 and 1.66. The OpenBSDBCrypt.checkPassword utility method compared incorrect data when checking the password, allowing incorrect passwords to indicate they were matching with previously hashed ones that were different.

Affected packages

EcosystemPackageAffected versions
Mavenorg.bouncycastle:bcprov-jdk15to18
From 1.65 before 1.67 (fixed in 1.67)
Mavenorg.bouncycastle:bcprov-jdk15
From 1.65 before 1.67 (fixed in 1.67)
Mavenorg.bouncycastle:bcprov-jdk15on
From 1.65 before 1.67 (fixed in 1.67)
Mavenorg.bouncycastle:bcprov-ext-jdk15on
From 1.65 before 1.67 (fixed in 1.67)
Mavenorg.bouncycastle:bcprov-jdk14
From 1.65 before 1.67 (fixed in 1.67)
Mavenorg.bouncycastle:bcprov-jdk16
From 1.65 before 1.67 (fixed in 1.67)
Mavenorg.bouncycastle:bcprov-ext-jdk16
From 1.65 before 1.67 (fixed in 1.67)

References