Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.bouncycastle/bcprov-jdk16
  4. ›
  5. CVE-2020-26939

CVE-2020-26939: Observable Discrepancy

April 22, 2021 (updated May 26, 2021)

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.

References

  • github.com/advisories/GHSA-72m5-fvvv-55m6
  • github.com/bcgit/bc-java/commit/930f8b274c4f1f3a46e68b5441f1e7fadb57e8c1
  • github.com/bcgit/bc-java/wiki/CVE-2020-26939
  • nvd.nist.gov/vuln/detail/CVE-2020-26939

Code Behaviors & Features

Detect and mitigate CVE-2020-26939 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.61

Fixed versions

  • 1.61

Solution

Upgrade to version 1.61 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-203: Observable Discrepancy
  • CWE-707: Improper Neutralization

Source file

maven/org.bouncycastle/bcprov-jdk16/CVE-2020-26939.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:24 +0000.