CVE-2016-1000340
The Bouncy Castle JCE Provider carry a propagation bug
Reported by mitre · Published June 4, 2018
bcprov-jdk15 is fixed in 1.56 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.bouncycastle:bcprov-jdk15 | Maven Central | 1.56 |
| org.bouncycastle:bcprov-jdk15on | Maven Central | 1.56 |
| org.bouncycastle:bcprov-jdk14 | Maven Central | 1.56 |
| Sterling Partner Engagement Manager | IBM | 6.2.4.2, 6.2.3.5 |
| bc-java | bouncycastle | 1.55 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| Maven | org.bouncycastle:bcprov-jdk14 | 1.51 |
| Maven | org.bouncycastle:bcprov-jdk15on | 1.51 |
| Maven | org.bouncycastle:bcprov-jdk15 | 1.51 |
| n/a | n/a | * |
Timeline
- Jun 4, 2018 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Aug 6, 2024 CVE Updated
- Mar 13, 2026 PoC Published
- Mar 17, 2026 Security Advisory (3 in total, the first dated here)
- Oct 10, 2026 Coalition ESS Score
- Nov 21, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-1000340
vulnetix vdb fixes CVE-2016-1000340
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-1000340/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2018:2669 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:2927 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2016-1000340 advisory
- https://github.com/advisories/GHSA-r97x-3g8f-gx3m advisory
- https://github.com/bcgit/bc-java url
- https://security.netapp.com/advisory/ntap-20181127-0004 advisory