ADVISORIES

GitHub Advisory Database

GHSA-72m5-fvvv-55m6

Observable Differences in Behavior to Error Inputs in Bouncy Castle

Moderate CVE-2020-26939

Details

In Legion of the Bouncy Castle BC before 1.55 and BC-FJA before 1.0.2, attackers can obtain sensitive information about a private exponent because of Observable Differences in Behavior to Error Inputs. This occurs in org.bouncycastle.crypto.encodings.OAEPEncoding. Sending invalid ciphertext that decrypts to a short payload in the OAEP Decoder could result in the throwing of an early exception, potentially leaking some information about the private exponent of the RSA private key performing the encryption.

Affected packages

EcosystemPackageAffected versions
Mavenorg.bouncycastle:bcprov-jdk14
All versions before 1.61 (fixed in 1.61)
Mavenorg.bouncycastle:bcprov-jdk15
All versions before 1.61 (fixed in 1.61)
Mavenorg.bouncycastle:bcprov-jdk16
All versions before 1.61 (fixed in 1.61)
Mavenorg.bouncycastle:bc-fips
All versions before 1.0.2 (fixed in 1.0.2)
Mavenorg.bouncycastle:bcprov-ext-jdk15on
All versions before 1.61 (fixed in 1.61)
Mavenorg.bouncycastle:bcprov-ext-jdk16
All versions before 1.61 (fixed in 1.61)
Mavenorg.bouncycastle:bcprov-jdk15on
All versions before 1.61 (fixed in 1.61)
Mavenorg.bouncycastle:bcprov-jdk15to18
All versions before 1.61 (fixed in 1.61)

References