Live threats

All CVEs / Bouncycastle

CVE-2020-26939Bouncycastle Fips Java Api

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
0.9%
probability of exploitation in 30 days · percentile 61
Auth required
No
Published
Nov 2, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-203
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Fips Java Api.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.bouncycastle:bc-fips < 1.0.2 1.0.2 —
Maven org.bouncycastle:bcprov-ext-jdk15on < 1.61 1.61 —
Maven org.bouncycastle:bcprov-ext-jdk16 < 1.61 1.61 —
Maven org.bouncycastle:bcprov-jdk14 < 1.61 1.61 —
Maven org.bouncycastle:bcprov-jdk15 < 1.61 1.61 —
Maven org.bouncycastle:bcprov-jdk15on < 1.61 1.61 —
Maven org.bouncycastle:bcprov-jdk15to18 < 1.61 1.61 —
Maven org.bouncycastle:bcprov-jdk16 < 1.61 1.61 —

Per OSV / GitHub Advisories (GHSA-72m5-fvvv-55m6). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
bouncycastlefips_java_api< 1.0.1.2
bouncycastlelegion-of-the-bouncy-castle< 1.61

Official sources

References

Links published by the sources. Open them with care.