Observable Differences in Behavior to Error Inputs in Bouncy Castle
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.bouncycastle:bcprov-jdk14 Maven |
|
|
| org.bouncycastle:bcprov-jdk15 Maven |
|
|
| org.bouncycastle:bcprov-jdk16 Maven |
| Product | Affected | Fixed in |
|---|---|---|
| org.bouncycastle:bcprov-jdk14 Maven |
|
|
| org.bouncycastle:bcprov-jdk15 Maven |
|
|
| org.bouncycastle:bcprov-jdk16 Maven |
|
|
| org.bouncycastle:bc-fips Maven |
|
|
| org.bouncycastle:bcprov-ext-jdk15on Maven |
|
|
| org.bouncycastle:bcprov-ext-jdk16 Maven |
|
|
| org.bouncycastle:bcprov-jdk15on Maven |
|
|
| org.bouncycastle:bcprov-jdk15to18 Maven |
|
|
In Legion of the Bouncy Castle BC before 1.61 and BC-FJA before 1.0.1.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.
From the CVE record · mitre
Bouncy Castle’s OAEP decoder can throw an early exception when given invalid ciphertext that decrypts to a short payload. The observable difference in behavior could leak information about an RSA private exponent. The input does not specify whether authentication or user interaction is required.
Teams using the listed Maven org.bouncycastle packages should check for versions below 1.61, or below 1.0.2 for bc-fips.