5.3medium
Observable Differences in Behavior to Error Inputs in Bouncy Castle
- Severity
- 5.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.92% (higher than 58% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-72m5-fvvv-55m6
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| org.bouncycastle:bcprov-jdk14 (Maven) | before 1.61 | GitHub Advisory Database |
| org.bouncycastle:bcprov-jdk15 (Maven) | before 1.61 | GitHub Advisory Database |
| org.bouncycastle:bcprov-jdk16 (Maven) | before 1.61 | GitHub Advisory Database |
| org.bouncycastle:bc-fips (Maven) | before 1.0.2 | GitHub Advisory Database |
| org.bouncycastle:bcprov-ext-jdk15on (Maven) | before 1.61 | GitHub Advisory Database |
| org.bouncycastle:bcprov-ext-jdk16 (Maven) | before 1.61 | GitHub Advisory Database |
| org.bouncycastle:bcprov-jdk15on (Maven) | before 1.61 | GitHub Advisory Database |
| org.bouncycastle:bcprov-jdk15to18 (Maven) | before 1.61 | GitHub Advisory Database |
| bouncycastle fips_java_api | before 1.0.1.2 | NVD |
| bouncycastle legion-of-the-bouncy-castle | before 1.61 | NVD |
All scores
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
En Legion of the Bouncy Castle BC versiones anteriores a 1.61 y BC-FJA versiones anteriores a 1.0.1.2, los atacantes pueden obtener información confidencial sobre un exponente privado debido a las diferencias observables en el comportamiento de las entradas de error. Esto se presenta en org.bouncycastle.crypto.encodings.OAEPEncoding. El envío de texto cifrado no válido que es descifrado en una carga útil corta en el decodificador OAEP podría resultar en el lanzamiento de una excepción temprana, filtrando potencialmente alguna información sobre el exponente privado de la clave privada RSA que realiza el cifrado
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26939 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-72m5-fvvv-55m6 changed 2025-07-17 | CC-BY-4.0 |
| NVD | CVE-2020-26939 changed 2026-06-17 | Public domain |