CVE-2016-1000340
The Bouncy Castle JCE Provider carry a propagation bug
Description
In the Bouncy Castle JCE Provider versions 1.51 to 1.55, a carry propagation bug was introduced in the implementation of squaring for several raw math classes have been fixed (org.bouncycastle.math.raw.Nat???). These classes are used by our custom elliptic curve implementations (org.bouncycastle.math.ec.custom.**), so there was the possibility of rare (in general usage) spurious calculations for elliptic curve scalar multiplications. Such errors would have been detected with high probability by the output validation for our scalar multipliers.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.bouncycastle » bcprov-jdk14 | >= 1.51, < 1.56 | 1.56 |
| org.bouncycastle » bcprov-jdk15 | >= 1.51, < 1.56 | 1.56 |
| org.bouncycastle » bcprov-jdk15on | >= 1.51, < 1.56 | 1.56 |
Blast radius
41% of the dependent artifacts (5,310) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 18,174 |
| 2 hops | 153,997 |
| 3 hops | 293,980 |
| 4 hops | 254,717 |
| 5 hops | 147,792 |
| 6 hops | 89,548 |
Most used dependents
- org.testcontainers » testcontainers4,109 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.bouncycastle » bcpkix-jdk15on2,867 usages
- com.nimbusds » nimbus-jose-jwt1,826 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
- org.testcontainers » postgresql1,441 usages
- org.springframework.cloud » spring-cloud-starter-openfeign1,389 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- com.auth0 » java-jwt1,334 usages
- com.microsoft.sqlserver » mssql-jdbc1,206 usages
- org.wso2.carbon » org.wso2.carbon.utils1,179 usages
- io.fabric8 » docker-maven-plugin1,092 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-2016-1000340
- Webhttps://github.com/bcgit/bc-java/commit/790642084c4e0cadd47352054f868cc8397e2c00#diff-e5934feac8203ca0104ab291a3560a31
- Webhttps://access.redhat.com/errata/RHSA-2018:2669
- Webhttps://access.redhat.com/errata/RHSA-2018:2927
- Advisoryhttps://github.com/advisories/GHSA-r97x-3g8f-gx3m
- Packagehttps://github.com/bcgit/bc-java
- Webhttps://security.netapp.com/advisory/ntap-20181127-0004
- Webhttps://www.oracle.com/security-alerts/cpuoct2020.html
