Every CVE Search/ Get API key

CVE-2015-7940

Moderate severity vulnerability that affects org.bouncycastle:bcprov-jdk14 and org.bouncycastle:bcprov-jdk15

5.0 MediumFix available

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."

Exploit likelihood

4.69%Up 0.3 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 5.0

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."

Record
CVE-2015-7940
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:P/I:N/A:N
Weakness
CWE-200, CWE-310
Updated
2026-11-02
CVE List No score

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."

Record
CVE-2015-7940
Updated
2026-11-02
EUVDEUVD-2018-0502 No score

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."

Record
EUVD-2018-0502
Updated
2026-11-03
GitHub AdvisoriesGHSA-4mv7-cq75-3qjm No score

Moderate severity vulnerability that affects org.bouncycastle:bcprov-jdk14 and org.bouncycastle:bcprov-jdk15

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."

Record
GHSA-4mv7-cq75-3qjm
Weakness
CWE-200
Updated
2026-11-02
OSV No score

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."

Record
CVE-2015-7940
Updated
2026-11-02
OSVDEBIAN-CVE-2015-7940 No score

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."

Record
DEBIAN-CVE-2015-7940
Updated
2026-11-02
Show 5 moreShow less
OSVGHSA-4mv7-cq75-3qjm No score

Moderate severity vulnerability that affects org.bouncycastle:bcprov-jdk14 and org.bouncycastle:bcprov-jdk15

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."

Record
GHSA-4mv7-cq75-3qjm
Weakness
CWE-200
Updated
2026-11-02
OSVMGASA-2015-0487 No score

Updated bouncycastle packages fix security vulnerability

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" (CVE-2015-7940).

Record
MGASA-2015-0487
Updated
2026-11-02
OSVopenSUSE-SU-2024:10486-1 No score

bouncycastle-1.54-1.2 on GA media

These are all security issues fixed in the bouncycastle-1.54-1.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10486-1
Updated
2026-11-02
OSVUBUNTU-CVE-2015-7940 No score

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."

Record
UBUNTU-CVE-2015-7940
Updated
2026-11-02
OSVUSN-3727-1 No score

bouncycastle vulnerabilities

It was discovered that Bouncy Castle incorrectly handled certain crypto algorithms. A remote attacker could possibly use these issues to obtain sensitive information, including private keys.

Record
USN-3727-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.bouncycastle:bcprov-jdk15
Maven
before 1.51
1.51
org.bouncycastle:bcprov-jdk14
Maven
before 1.51
1.51
org.bouncycastle:bcprov-jdk15on
Maven
before 1.51
1.51
bouncycastle
Debian:12
before 1.51-1
1.51-1
bouncycastle
Debian:13
before 1.51-1
1.51-1
bouncycastle
Debian:14
before 1.51-1
1.51-1
bouncycastle
Debian:6.0
before 1.44+dfsg-2+deb6u1, plus listed versions
1.44+dfsg-2
1.44+dfsg-2+deb6u1
bouncycastle
Debian:7
before 1.44+dfsg-3.1+deb7u1, plus listed versions
1.44+dfsg-3.1
1.44+dfsg-3.1+deb7u1
bouncycastle
Debian:8
before 1.49+dfsg-3+deb8u1, plus listed versions
1.49+dfsg-3
1.49+dfsg-3+deb8u1
org.bouncycastle:bcprov-jdk15
Maven
before 1.51, plus listed versions
1.321.381.401.431.441.451.46
1.51
Show 6 moreShow less
Affected packages
PackageAffectedFixed
org.bouncycastle:bcprov-jdk14
Maven
before 1.51, plus listed versions
1.381.431.441.451.46
Show 4 moreShow less
1.471.481.491.50
1.51
org.bouncycastle:bcprov-jdk15on
Maven
before 1.51, plus listed versions
1.461.471.481.491.50
1.51
bouncycastle
Mageia:5
before 1.50-3.1.mga5
1.50-3.1.mga5
bouncycastle
Ubuntu:14.04:LTS
before 1.49+dfsg-2ubuntu0.1, plus listed versions
1.48+dfsg-21.49+dfsg-2
1.49+dfsg-2ubuntu0.1
bouncycastle
Ubuntu:14.04:LTS
From an advisory covering 9 CVEs
before 1.49+dfsg-2ubuntu0.1, plus listed versions
1.48+dfsg-21.49+dfsg-2
1.49+dfsg-2ubuntu0.1
bouncycastle
openSUSE:Tumbleweed
From an advisory covering 2 CVEs
before 1.54-1.2
1.54-1.2

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2015-7940 is a medium vulnerability (CVSS 5.0) in Bouncycastle Bouncy Castle Crypto Package, published November 9, 2015. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.69%, the 91st percentile. Fixed in org.bouncycastle:bcprov-jdk15 1.51.

References

Show 34 moreShow less
MoveEnter Open