CVE-2020-26939
Observable Differences in Behavior to Error Inputs in Bouncy Castle
Description
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.
Affected Maven artifacts (8)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.bouncycastle » bc-fips | < 1.0.2 | 1.0.2 |
| org.bouncycastle » bcprov-ext-jdk15on | < 1.61 | 1.61 |
| org.bouncycastle » bcprov-ext-jdk16 | < 1.61 | 1.61 |
| org.bouncycastle » bcprov-jdk14 | < 1.61 | 1.61 |
| org.bouncycastle » bcprov-jdk15 | < 1.61 | 1.61 |
| org.bouncycastle » bcprov-jdk15on | < 1.61 | 1.61 |
| org.bouncycastle » bcprov-jdk15to18 | < 1.61 | 1.61 |
| org.bouncycastle » bcprov-jdk16 | < 1.61 | 1.61 |
Blast radius
62% of the dependent artifacts (21,681) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 63,493 |
| 2 hops | 442,003 |
| 3 hops | 1,005,321 |
| 4 hops | 825,697 |
| 5 hops | 478,115 |
| 6 hops | 262,928 |
Most used dependents
- org.testcontainers » testcontainers4,109 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.codehaus.mojo » license-maven-plugin3,293 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.kafka » kafka-clients3,135 usages
- org.apache.spark » spark-core2,899 usages
- com.diffplug.spotless » spotless-maven-plugin2,873 usages
- org.bouncycastle » bcpkix-jdk15on2,867 usages
- org.eclipse.jgit » org.eclipse.jgit2,222 usages
- com.android.tools.build » gradle2,197 usages
- org.seleniumhq.selenium » selenium-java2,089 usages
- com.squareup.okhttp3 » mockwebserver1,987 usages
- com.nimbusds » nimbus-jose-jwt1,826 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2020-26939
- Webhttps://github.com/bcgit/bc-java/commit/930f8b274c4f1f3a46e68b5441f1e7fadb57e8c1
- Webhttps://github.com/bcgit/bc-java/wiki/CVE-2020-26939
- Webhttps://lists.apache.org/thread.html/r8c36ba34e80e05eecb1f80071cc834d705616f315b634ec0c7d8f42e%40%3Cissues.solr.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r8c36ba34e80e05eecb1f80071cc834d705616f315b634ec0c7d8f42e@%3Cissues.solr.apache.org%3E
- Webhttps://lists.debian.org/debian-lts-announce/2020/11/msg00007.html
- Webhttps://security.netapp.com/advisory/ntap-20201202-0005
