HIGH 7.5

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)

ArtifactAffected versionsFixed 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

2affected artifacts
13affected versions
12,672dependent artifacts (est.)
958,208dependent versions

41% of the dependent artifacts (5,310) still pull an affected version in their latest release.

DepthDependent 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

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.