PT-2020-16560 · Legion Of The Bouncy Castle · Legion Of The Bouncy Castle Bc

Published

2020-11-02

·

Updated

2025-07-17

·

CVE-2020-26939

CVSS v3.1

5.3

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions Legion of the Bouncy Castle BC versions 1.61 and earlier Legion of the Bouncy Castle BC-FJA versions 1.0.1.2 and earlier
Description The issue allows attackers to obtain sensitive information about a private exponent due to observable differences in behavior to error inputs. This occurs in the org.bouncycastle.crypto.encodings.OAEPEncoding class. 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.
Recommendations For Legion of the Bouncy Castle BC versions 1.61 and earlier, update to version 1.61 or later. For Legion of the Bouncy Castle BC-FJA versions 1.0.1.2 and earlier, update to version 1.0.1.2 or later. As a temporary workaround, consider restricting access to the org.bouncycastle.crypto.encodings.OAEPEncoding class until a patch is available.

Exploit

Fix

Side Channel Attack

Weakness Enumeration

Related Identifiers

CVE-2020-26939
DLA-2433-1
GHSA-72M5-FVVV-55M6

Affected Products

Legion Of The Bouncy Castle Bc