CVE-2016-1000340Bouncycastle Bc-java
High 7.5 No auth needed
Follow: this CVE · Bouncycastle · Bouncycastle Bc-java We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.0
- 7.5
- EPSS
- 2.3% probability of exploitation in 30 days · percentile 84
- Auth required
- No
- Published
- Jun 4, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-19
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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
- Apply the vendor's security update for Bc-java.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| 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 |
— |
Per OSV / GitHub Advisories (GHSA-r97x-3g8f-gx3m). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| bouncycastle | bc-java | ≥ 1.51 ≤ 1.55 |
Official sources
References
Links published by the sources. Open them with care.
- access.redhat.com
- access.redhat.com
- github.com Patch Third Party Advisory
- security.netapp.com
- www.oracle.com