CVE-2020-26939
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.
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | bouncycastle | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | bouncycastle | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | bouncycastle | Fix pending | UBUNTU-CVE-2020-26939 | |
| Ubuntu 16.04 | bouncycastle | Fix pending | UBUNTU-CVE-2020-26939 | |
| Ubuntu 14.04 | bouncycastle | Fix pending | ||
| Debian 14 | bouncycastle | Fixed | 1.61-1 | DEBIAN-CVE-2020-26939 |
| Debian 13 | bouncycastle | Fixed | 1.61-1 | DEBIAN-CVE-2020-26939 |
| Debian 12 | bouncycastle | Fixed | 1.61-1 | DEBIAN-CVE-2020-26939 |
| Maven library | org.bouncycastle:bc-fips | Fixed | 1.0.2 | GHSA-72m5-fvvv-55m6 |
| Maven library | org.bouncycastle:bcprov-ext-jdk15on | Fixed | 1.61 | GHSA-72m5-fvvv-55m6 |
| Maven library | org.bouncycastle:bcprov-ext-jdk16 | Fixed | 1.61 | GHSA-72m5-fvvv-55m6 |
| Maven library | org.bouncycastle:bcprov-jdk14 | Fixed | 1.61 | GHSA-72m5-fvvv-55m6 |
| Maven library | org.bouncycastle:bcprov-jdk15 | Fixed | 1.61 | GHSA-72m5-fvvv-55m6 |
| Maven library | org.bouncycastle:bcprov-jdk15on | Fixed | 1.61 | GHSA-72m5-fvvv-55m6 |
| Maven library | org.bouncycastle:bcprov-jdk15to18 | Fixed | 1.61 | GHSA-72m5-fvvv-55m6 |
| Maven library | org.bouncycastle:bcprov-jdk16 | Fixed | 1.61 | GHSA-72m5-fvvv-55m6 |
References
- https://github.com/bcgit/bc-java/wiki/CVE-2020-26939
- https://lists.apache.org/thread.html/r8c36ba34e80e05eecb1f80071cc834d705616f315b634ec0c7d8f42e%40%3Cissues.solr.apache.org%3E
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.