CVEfocus › CVE database › CVE-2016-1000340

CVE-2016-1000340

CVSS 7.5 HighEPSS 2.3% (higher than 83% of CVEs)Published 2018-06-04Updated 2024-08-06Assigner: mitre

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.

What to do

Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
1Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04bouncycastleNot affected
vulnerable_code_not_present
Ubuntu 25.10bouncycastleNot affected
vulnerable_code_not_present
Ubuntu 16.04bouncycastleFix pendingUBUNTU-CVE-2016-1000340
Ubuntu 14.04bouncycastleNot affected
vulnerable_code_not_present
Debian 14bouncycastleFixed1.56-1DEBIAN-CVE-2016-1000340
Debian 13bouncycastleFixed1.56-1DEBIAN-CVE-2016-1000340
Debian 12bouncycastleFixed1.56-1DEBIAN-CVE-2016-1000340
Maven libraryorg.bouncycastle:bcprov-jdk14Fixed1.56GHSA-r97x-3g8f-gx3m
Maven libraryorg.bouncycastle:bcprov-jdk15Fixed1.56GHSA-r97x-3g8f-gx3m
Maven libraryorg.bouncycastle:bcprov-jdk15onFixed1.56GHSA-r97x-3g8f-gx3m

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.