cve.bz

CVE-2020-26939 bouncycastle: Observable Discrepancy

5.3 mediumEPSS 0.9%Fix available

Medium (5.3) in bouncycastle. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in org.bouncycastle:bcprov-jdk14 1.61.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 61st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-203 Observable Discrepancy
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • org.bouncycastle:bcprov-jdk14 (Maven): fixed in 1.61
  • org.bouncycastle:bcprov-jdk15 (Maven): fixed in 1.61
  • org.bouncycastle:bcprov-jdk16 (Maven): fixed in 1.61
  • org.bouncycastle:bc-fips (Maven): fixed in 1.0.2
  • org.bouncycastle:bcprov-ext-jdk15on (Maven): fixed in 1.61
  • org.bouncycastle:bcprov-ext-jdk16 (Maven): fixed in 1.61
  • org.bouncycastle:bcprov-jdk15on (Maven): fixed in 1.61
  • org.bouncycastle:bcprov-jdk15to18 (Maven): fixed in 1.61
  • Debian: fixed package versions per release
  • Patch: https://github.com/bcgit/bc-java/wiki/CVE-2020-26939

Ask an AI about this CVE

Show the promptExplain CVE-2020-26939 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-26939?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-26939?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-26939 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
bouncycastle:fips_java_apibefore 1.0.1.2
bouncycastle:legion-of-the-bouncy-castlebefore 1.61

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-72m5-fvvv-55m6Mavenorg.bouncycastle:bcprov-jdk14<1.611.61
GHSA-72m5-fvvv-55m6Mavenorg.bouncycastle:bcprov-jdk15<1.611.61
GHSA-72m5-fvvv-55m6Mavenorg.bouncycastle:bcprov-jdk16<1.611.61
GHSA-72m5-fvvv-55m6Mavenorg.bouncycastle:bc-fips<1.0.21.0.2
GHSA-72m5-fvvv-55m6Mavenorg.bouncycastle:bcprov-ext-jdk15on<1.611.61
GHSA-72m5-fvvv-55m6Mavenorg.bouncycastle:bcprov-ext-jdk16<1.611.61
GHSA-72m5-fvvv-55m6Mavenorg.bouncycastle:bcprov-jdk15on<1.611.61
GHSA-72m5-fvvv-55m6Mavenorg.bouncycastle:bcprov-jdk15to18<1.611.61

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9bouncycastle1.56-1+deb9u3DLA-2433-1
Debian12, 13, 14bouncycastle1.61-1DEBIAN-CVE-2020-26939
UbuntuPro:16.04:LTS, Pro:18.04:LTSbouncycastleno fix listedUBUNTU-CVE-2020-26939

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-189 Black Box Reverse Engineering Severity: Low

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON