VDB
Sign up
MEDIUM5.3

GHSA-72m5-fvvv-55m6

Observable Differences in Behavior to Error Inputs in Bouncy Castle

Quick fix

GHSA-72m5-fvvv-55m6 — org.bouncycastle:bcprov-jdk14: upgrade to the fixed version with the command below.

# pom.xml: bump <version>1.61</version> for org.bouncycastle:bcprov-jdk14

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.bouncycastle:bcprov-jdk14
Introduced in: 0Fixed in: 1.61
Fix# pom.xml: bump <version>1.61</version> for org.bouncycastle:bcprov-jdk14
Maven/org.bouncycastle:bcprov-jdk15
Introduced in: 0Fixed in: 1.61
Fix# pom.xml: bump <version>1.61</version> for org.bouncycastle:bcprov-jdk15
Maven/org.bouncycastle:bcprov-jdk16
Introduced in: 0Fixed in: 1.61
Fix# pom.xml: bump <version>1.61</version> for org.bouncycastle:bcprov-jdk16
Maven/org.bouncycastle:bc-fips
Introduced in: 0Fixed in: 1.0.2
Fix# pom.xml: bump <version>1.0.2</version> for org.bouncycastle:bc-fips
Maven/org.bouncycastle:bcprov-ext-jdk15on
Introduced in: 0Fixed in: 1.61
Fix# pom.xml: bump <version>1.61</version> for org.bouncycastle:bcprov-ext-jdk15on
Maven/org.bouncycastle:bcprov-ext-jdk16
Introduced in: 0Fixed in: 1.61
Fix# pom.xml: bump <version>1.61</version> for org.bouncycastle:bcprov-ext-jdk16
Maven/org.bouncycastle:bcprov-jdk15on
Introduced in: 0Fixed in: 1.61
Fix# pom.xml: bump <version>1.61</version> for org.bouncycastle:bcprov-jdk15on
Maven/org.bouncycastle:bcprov-jdk15to18
Introduced in: 0Fixed in: 1.61
Fix# pom.xml: bump <version>1.61</version> for org.bouncycastle:bcprov-jdk15to18

References