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?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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=true

Details

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
All 16 advisories for org.bouncycastle:bcprov-jdk15

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.