{"id":"CVE-2020-26939","aliases":["CVE-2020-26939","GHSA-72m5-fvvv-55m6"],"related":[],"kind":"vulnerability","state":"published","title":"Observable Differences in Behavior to Error Inputs in Bouncy Castle","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"In Legion of the Bouncy Castle BC before 1.55 and BC-FJA before 1.0.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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"En Legion of the Bouncy Castle BC versiones anteriores a 1.61 y BC-FJA versiones anteriores a 1.0.1.2, los atacantes pueden obtener información confidencial sobre un exponente privado debido a las diferencias observables en el comportamiento de las entradas de error. Esto se presenta en org.bouncycastle.crypto.encodings.OAEPEncoding. El envío de texto cifrado no válido que es descifrado en una carga útil corta en el decodificador OAEP podría resultar en el lanzamiento de una excepción temprana, filtrando potencialmente alguna información sobre el exponente privado de la clave privada RSA que realiza el cifrado","source":"nvd"}],"published":"2020-11-02T22:00:15.000Z","modified":"2026-06-17T03:08:35.110Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-203"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.61"}],"ecosystem":"Maven","package":"org.bouncycastle:bcprov-jdk14","purl":"pkg:maven/org.bouncycastle/bcprov-jdk14","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.61"}],"ecosystem":"Maven","package":"org.bouncycastle:bcprov-jdk15","purl":"pkg:maven/org.bouncycastle/bcprov-jdk15","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.61"}],"ecosystem":"Maven","package":"org.bouncycastle:bcprov-jdk16","purl":"pkg:maven/org.bouncycastle/bcprov-jdk16","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.2"}],"ecosystem":"Maven","package":"org.bouncycastle:bc-fips","purl":"pkg:maven/org.bouncycastle/bc-fips","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.61"}],"ecosystem":"Maven","package":"org.bouncycastle:bcprov-ext-jdk15on","purl":"pkg:maven/org.bouncycastle/bcprov-ext-jdk15on","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.61"}],"ecosystem":"Maven","package":"org.bouncycastle:bcprov-ext-jdk16","purl":"pkg:maven/org.bouncycastle/bcprov-ext-jdk16","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.61"}],"ecosystem":"Maven","package":"org.bouncycastle:bcprov-jdk15on","purl":"pkg:maven/org.bouncycastle/bcprov-jdk15on","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.61"}],"ecosystem":"Maven","package":"org.bouncycastle:bcprov-jdk15to18","purl":"pkg:maven/org.bouncycastle/bcprov-jdk15to18","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.1.2"}],"vendor":"bouncycastle","product":"fips_java_api","cpe":"cpe:2.3:a:bouncycastle:fips_java_api:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.61"}],"vendor":"bouncycastle","product":"legion-of-the-bouncy-castle","cpe":"cpe:2.3:a:bouncycastle:legion-of-the-bouncy-castle:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE-2020-26939","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.apache.org/thread.html/r8c36ba34e80e05eecb1f80071cc834d705616f315b634ec0c7d8f42e%40%3Cissues.solr.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26939","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/bcgit/bc-java/commit/930f8b274c4f1f3a46e68b5441f1e7fadb57e8c1","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r8c36ba34e80e05eecb1f80071cc834d705616f315b634ec0c7d8f42e@%3Cissues.solr.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/11/msg00007.html","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20201202-0005","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-26939","url":"https://www.cve.org/CVERecord?id=CVE-2020-26939","licence":"CVE Terms of Use","modified":"2024-08-04T16:03:23.071Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-72m5-fvvv-55m6","url":"https://github.com/advisories/GHSA-72m5-fvvv-55m6","licence":"CC-BY-4.0","modified":"2025-07-17T22:22:44.756Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-26939","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26939","licence":"Public domain","modified":"2026-06-17T03:08:35.110Z"}],"updatedAt":"2026-11-25T22:57:55.556Z","epss":{"score":0.00917,"percentile":0.61255,"date":"2026-12-01T12:00:22.000Z"}}