GitHub Advisoryadvisory · Maven

GHSA-72m5-fvvv-55m6 Observable Differences in Behavior to Error Inputs in Bouncy Castle

MEDIUM Published 2021-04-22 Modified 2025-07-17 Official page ↗
Aliases
CVE-2020-26939
Ecosystem
Maven
Packages
org.bouncycastle:bcprov-jdk14, org.bouncycastle:bcprov-jdk15, org.bouncycastle:bcprov-jdk16, org.bouncycastle:bc-fips, org.bouncycastle:bcprov-ext-jdk15on, org.bouncycastle:bcprov-ext-jdk16, org.bouncycastle:bcprov-jdk15on, org.bouncycastle:bcprov-jdk15to18
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weaknesses
CWE-203
Reviewed
2021-04-20

Affected packages

• Maven org.bouncycastle:bcprov-jdk14: < 1.61 → fixed in 1.61 • Maven org.bouncycastle:bcprov-jdk15: < 1.61 → fixed in 1.61 • Maven org.bouncycastle:bcprov-jdk16: < 1.61 → fixed in 1.61 • Maven org.bouncycastle:bc-fips: < 1.0.2 → fixed in 1.0.2 • Maven org.bouncycastle:bcprov-ext-jdk15on: < 1.61 → fixed in 1.61 • Maven org.bouncycastle:bcprov-ext-jdk16: < 1.61 → fixed in 1.61 • Maven org.bouncycastle:bcprov-jdk15on: < 1.61 → fixed in 1.61 • Maven org.bouncycastle:bcprov-jdk15to18: < 1.61 → fixed in 1.61

Description

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.

Related

Alias · CVE (1)

  • CVE-2020-26939 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… vulnerability

Weakness · CWE (1)

  • CWE-203 Observable Discrepancy weakness

References