CVE-2016-1000340
published 2018-06-04CVE-2016-1000340: 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…
PriorityP337high7.5CVSS 3.0
AVNACLPRNUINSUCNIHAN
EPSS
2.26%
81.0th percentile
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
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| bouncycastle | bc-java | 1.51 – 1.55 | — |
| debian | bouncycastle | < bouncycastle 1.56-1 (bookworm) | bouncycastle 1.56-1 (bookworm) |
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:P/A:N
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
The Bouncy Castle JCE Provider carry a propagation bug
ghsa·2018-10-17
CVE-2016-1000340 [HIGH] The Bouncy Castle JCE Provider carry a propagation bug
The Bouncy Castle JCE Provider carry a propagation bug
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.
OSV
The Bouncy Castle JCE Provider carry a propagation bug
osv·2018-10-17
CVE-2016-1000340 [HIGH] The Bouncy Castle JCE Provider carry a propagation bug
The Bouncy Castle JCE Provider carry a propagation bug
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.
OSV
CVE-2016-1000340: In the Bouncy Castle JCE Provider versions 1
osv·2018-06-04·CVSS 7.5
CVE-2016-1000340 [HIGH] CVE-2016-1000340: In the Bouncy Castle JCE Provider versions 1
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.
Red Hat
bouncycastle: Carry propagation bug in math.raw.Nat??? class
vendor_redhat·2018-06-07·CVSS 7.5
CVE-2016-1000340 [HIGH] CWE-682 bouncycastle: Carry propagation bug in math.raw.Nat??? class
bouncycastle: Carry propagation bug in math.raw.Nat??? class
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.
Statement: This issue affects the versions of bouncycastle as shipped with Red Hat Subscription Asset Manager 1.x. Red Hat Product Security has rated this issue as having a security impac
Debian
CVE-2016-1000340: bouncycastle - In the Bouncy Castle JCE Provider versions 1.51 to 1.55, a carry propagation bug...
vendor_debian·2016·CVSS 7.5
CVE-2016-1000340 [HIGH] CVE-2016-1000340: bouncycastle - In the Bouncy Castle JCE Provider versions 1.51 to 1.55, a carry propagation bug...
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.
Scope: local
bookworm: resolved (fixed in 1.56-1)
bullseye: resolved (fixed in 1.56-1)
forky: resolved (fixed in 1.56-1)
sid: resolved (fixed in 1.56-1)
trixie: resolved (fixed in 1.56-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2016-1000340 bouncycastle: Carry propagation bug in math.raw.Nat??? class [epel-all]
bugzilla·2018-06-07·CVSS 7.5
CVE-2016-1000340 [HIGH] CVE-2016-1000340 bouncycastle: Carry propagation bug in math.raw.Nat??? class [epel-all]
CVE-2016-1000340 bouncycastle: Carry propagation bug in math.raw.Nat??? class [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported
Bugzilla
CVE-2016-1000340 bouncycastle: Carry propagation bug in math.raw.Nat??? class [fedora-all]
bugzilla·2018-06-07·CVSS 7.5
CVE-2016-1000340 [HIGH] CVE-2016-1000340 bouncycastle: Carry propagation bug in math.raw.Nat??? class [fedora-all]
CVE-2016-1000340 bouncycastle: Carry propagation bug in math.raw.Nat??? class [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple suppo
Bugzilla
CVE-2016-1000340 bouncycastle: Carry propagation bug in math.raw.Nat??? class
bugzilla·2018-06-07·CVSS 7.5
CVE-2016-1000340 [HIGH] CVE-2016-1000340 bouncycastle: Carry propagation bug in math.raw.Nat??? class
CVE-2016-1000340 bouncycastle: Carry propagation bug in math.raw.Nat??? class
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.
Upstream patch:
https://github.com/bcgit/bc-java/commit/790642084c4e0cadd47352054f868cc8397e2c00#diff-e5934feac8203ca0104ab291a3560a31
Discussion:
Created bouncycastle
https://access.redhat.com/errata/RHSA-2018:2669https://access.redhat.com/errata/RHSA-2018:2927https://github.com/bcgit/bc-java/commit/790642084c4e0cadd47352054f868cc8397e2c00#diff-e5934feac8203ca0104ab291a3560a31https://security.netapp.com/advisory/ntap-20181127-0004/https://www.oracle.com/security-alerts/cpuoct2020.htmlhttps://access.redhat.com/errata/RHSA-2018:2669https://access.redhat.com/errata/RHSA-2018:2927https://github.com/bcgit/bc-java/commit/790642084c4e0cadd47352054f868cc8397e2c00#diff-e5934feac8203ca0104ab291a3560a31https://security.netapp.com/advisory/ntap-20181127-0004/https://www.oracle.com/security-alerts/cpuoct2020.html
2018-06-04
Published