High severity · published Jun 4, 2018
CVE-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 have been fixed…
7.5
CVSS
2.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.3% · higher than 83% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BC
Bc-java · Bouncycastle
1.51 through 1.55 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-1000340
CVE.org
https://www.cve.org/CVERecord?id=CVE-2016-1000340
access.redhat.com
https://access.redhat.com/errata/RHSA-2018:2669
access.redhat.com
https://access.redhat.com/errata/RHSA-2018:2927
Patch
https://github.com/bcgit/bc-java/commit/790642084c4e0cadd47352054f868cc8397e2c00#diff-e5934feac8203ca0104ab291a3560a31
security.netapp.com
https://security.netapp.com/advisory/ntap-20181127-0004/
www.oracle.com
https://www.oracle.com/security-alerts/cpuoct2020.html
More from Bc-java
9.8
CVE-2018-1000613
Legion of the Bouncy Castle Legion of the Bouncy Castle Java Cryptography APIs 1.58 up to but not including 1.60 contains a CWE-470: Use of Externally-Controlled Input to Select…
9.1
CVE-2026-58062
Stapled OCSP response accepted without binding to the checked certificate
9.1
CVE-2026-59650
MTI/A0 DH agreement exponentiates unvalidated peer value
9.1
CVE-2026-8763
Name Constraints bypass via trailing dot in rfc822Name and URI
8.6
CVE-2026-12817
OpenPGP AEAD decryption skips final tag on chunk-aligned data
