MediumGHSA-4mv7-cq75-3qjmCVE-2015-7940
Moderate severity vulnerability that affects org.bouncycastle:bcprov-jdk14 and org.bouncycastle:bcprov-jdk15
Published 17 Oct 2018 · Updated 12 Sept 2025
Is your project on an affected org.bouncycastle:bcprov-jdk15?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <1.51
- Fixed in
- 1.51
Update to the fixed version for your release line, for example:
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk15 -DdepVersion=1.51 -DforceVersion=true- Affected
- <1.51
- Fixed in
- 1.51
Update to the fixed version for your release line, for example:
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk14 -DdepVersion=1.51 -DforceVersion=true- Affected
- <1.51
- Fixed in
- 1.51
Update to the fixed version for your release line, for example:
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk15on -DdepVersion=1.51 -DforceVersion=trueDetails
The Bouncy Castle Java library before 1.51 does not validate a point is withing the elliptic curve, which makes it easier for remote attackers to obtain private keys via a series of crafted elliptic curve Diffie Hellman (ECDH) key exchanges, aka an "invalid curve attack."
Is GHSA-4mv7-cq75-3qjm in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.bouncycastle:bcprov-jdk15, and gives you the command that fixes it.
More advisories for org.bouncycastle:bcprov-jdk15
- MediumCVE-2023-33202Bouncy Castle Denial of Service (DoS) · 23 Nov 2023
- MediumCVE-2020-15522Timing based private key exposure in Bouncy Castle · 13 Aug 2021
- HighCVE-2020-28052Logic error in Legion of the Bouncy Castle BC Java · 30 Apr 2021
- MediumCVE-2020-26939Observable Differences in Behavior to Error Inputs in Bouncy Castle · 22 Apr 2021
- MediumCVE-2016-1000345Moderate severity vulnerability that affects org.bouncycastle:bcprov-jdk14 and org.bouncycastle:bcprov-jdk15 · 18 Oct 2018
- HighCVE-2016-1000344In Bouncy Castle JCE Provider the DHIES implementation allowed the use of ECB mode · 18 Oct 2018
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2015-7940
- Advisorygithub.com/advisories/GHSA-4mv7-cq75-3qjm
- Linkusn.ubuntu.com/3727-1
- Linkwww.oracle.com/security-alerts/cpuapr2020.html
- Linkwww.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
- Linklists.fedoraproject.org/pipermail/package-announce/2016-January/174915.html
- Linklists.opensuse.org/opensuse-security-announce/2015-11/msg00012.html
- Linkrhn.redhat.com/errata/RHSA-2016-2035.html
- Linkrhn.redhat.com/errata/RHSA-2016-2036.html
- Linkweb-in-security.blogspot.ca/2015/09/practical-invalid-curve-attacks.html
- Linkwww.debian.org/security/2015/dsa-3417
- Linkwww.openwall.com/lists/oss-security/2015/10/22/7
- Linkwww.openwall.com/lists/oss-security/2015/10/22/9
- Linkwww.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
- Linkwww.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html
- Linkwww.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html
- Linkwww.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
- Linkwww.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
- Linkwww.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html
- Linkwww.securityfocus.com/bid/79091
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.