CVE-2020-26939
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
org.bouncycastle:bcprov-jdk14 (Maven)before 1.61GitHub Advisory Database
org.bouncycastle:bcprov-jdk15 (Maven)before 1.61GitHub Advisory Database
org.bouncycastle:bcprov-jdk16 (Maven)before 1.61GitHub Advisory Database
org.bouncycastle:bc-fips (Maven)before 1.0.2GitHub Advisory Database
org.bouncycastle:bcprov-ext-jdk15on (Maven)before 1.61GitHub Advisory Database
org.bouncycastle:bcprov-ext-jdk16 (Maven)before 1.61GitHub Advisory Database
org.bouncycastle:bcprov-jdk15on (Maven)before 1.61GitHub Advisory Database
org.bouncycastle:bcprov-jdk15to18 (Maven)before 1.61GitHub Advisory Database
bouncycastle fips_java_apibefore 1.0.1.2NVD
bouncycastle legion-of-the-bouncy-castlebefore 1.61NVD

All scores

GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.0medium CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2020-26939 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-72m5-fvvv-55m6 changed 2025-07-17CC-BY-4.0
NVDCVE-2020-26939 changed 2026-06-17Public domain