Logic error in Legion of the Bouncy Castle BC Java
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.bouncycastle:bcprov-jdk15to18 Maven |
|
|
| org.bouncycastle:bcprov-jdk15 Maven |
|
|
| org.bouncycastle:bcprov-jdk15on |
| Product | Affected | Fixed in |
|---|---|---|
| org.bouncycastle:bcprov-jdk15to18 Maven |
|
|
| org.bouncycastle:bcprov-jdk15 Maven |
|
|
| org.bouncycastle:bcprov-jdk15on |
|
|
| org.bouncycastle:bcprov-ext-jdk15on Maven |
|
|
| org.bouncycastle:bcprov-jdk14 Maven |
|
|
| org.bouncycastle:bcprov-jdk16 Maven |
|
|
| org.bouncycastle:bcprov-ext-jdk16 Maven |
|
|
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.
From the CVE record · mitre
In BC Java 1.65 and 1.66, OpenBSDBCrypt.checkPassword compares incorrect data when checking a password. Applications using this method may accept an incorrect password as matching a different, previously hashed password; the input does not specify whether exploitation requires network or local access, prior authentication, or user interaction.
Engineers using the listed Maven org.bouncycastle bcprov packages at versions 1.65 or 1.66 should check their dependencies.