Skip to content
Fencer Intel
high 7.5

CVE-2016-1000340 json

The Bouncy Castle JCE Provider carry a propagation bug

published 8y ago modified 4mo ago also GHSA-r97x-3g8f-gx3m , EUVD-2018-0679

cvss
7.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.3%
EPSS 2.3% chance of exploitation in 30 days, percentile 83%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.bouncycastle:bcprov-jdk14 1.56
  • maven org.bouncycastle:bcprov-jdk15 1.56
  • maven org.bouncycastle:bcprov-jdk15on 1.56
  • bouncycastle Debian 14, Debian 13, Debian 12 1.56-1

debian advisories DEBIAN-CVE-2016-1000340

  • v8 satellite capsule 6.4 1:3.14.5.10-19.el7sat
  • tfm satellite capsule 6.4, satellite 6.4 4.0-3.el7sat
  • kobo satellite capsule 6.4, satellite 6.4 0.5.1-1.el7sat
  • pulp satellite capsule 6.4, satellite 6.4 2.16.4.1-1.el7sat
  • gofer satellite capsule 6.4, satellite 6.4 2.12.1-1.el7sat
  • ostree satellite capsule 6.4, satellite 6.4 2017.1-2.atomic.el7
  • SOAPpy satellite capsule 6.4, satellite 6.4 0.11.6-17.el7
  • foreman satellite capsule 6.4, satellite 6.4 1.18.0.37-1.el7sat

red hat advisories RHSA-2018:2927

  • bouncycastle openSUSE Tumbleweed 1.68-3.2

opensuse advisories openSUSE-SU-2024:10661-1

Is CVE-2016-1000340 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2016-1000340 updated cvss 2.9

bouncycastle: Carry propagation bug in math.raw.Nat??? class

  • Red Hat JBoss Data Virtualization 6 bouncycastle bouncycastle
    affected: no fix planned “Out of support scope”
  • Red Hat JBoss Fuse 6 bouncycastle bouncycastle Red Hat Software Collections rh-eclipse46-bouncycastle, rh-eclipse46-bouncycastle-javadoc Red Hat Subscription Asset Manager bouncycastle
    affected: no fix planned “Will not fix”
  • Red Hat Fuse 7
    fixed: vendor fix RHSA-2018:2669
  • Red Hat Satellite 6.4 tfm 4.0-3.el7sat, kobo 0.5.1-1.el7sat, SOAPpy 0.11.6-17.el7, candlepin 2.4.8-1.el7, gofer 2.12.1-1.el7sat, liquibase 3.1.0-1.el7, +383 more Red Hat Satellite Capsule 6.4 tfm 4.0-3.el7sat, kobo 0.5.1-1.el7sat, SOAPpy 0.11.6-17.el7, gofer 2.12.1-1.el7sat, katello 3.7.0-8.el7sat, pulp 2.16.4.1-1.el7sat, +217 more
    fixed: vendor fix RHSA-2018:2927
  • Red Hat JBoss Developer Studio 11 bouncycastle bouncycastle Red Hat JBoss Data Grid 7 bouncycastle bouncycastle Red Hat JBoss Enterprise Application Platform 7 bouncycastle bouncycastle Red Hat JBoss Fuse Integration Service 2 bouncycastle bouncycastle Red Hat OpenShift Application Runtimes bouncycastle bouncycastle Red Hat Single Sign-On 7 bouncycastle bouncycastle
    +1 more products
    Red Hat Virtualization 4 eap7-bouncycastle
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.30% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:P/A:N
GitHub 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected packages

ecosystem package affected fixed in
maven org.bouncycastle:bcprov-jdk14
>=1.51, <1.56
1.56
maven org.bouncycastle:bcprov-jdk15
>=1.51, <1.56
1.56
maven org.bouncycastle:bcprov-jdk15on
>=1.51, <1.56
1.56

Classification

Weakness
  • CWE-19 Data Processing Errors

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.