FlawAtlas
Search the atlas
CVE-2015-7940 Moderate

CVE-2015-7940

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 probability 4.8%
Published November 9, 2015
Required by Not available
Last source change April 16, 2026

02 / AFFECTED SOFTWARE

Affected packages

Maven org.bouncycastle:bcprov-jdk14

9 explicit affected versions

Maven org.bouncycastle:bcprov-jdk15

7 explicit affected versions

Maven org.bouncycastle:bcprov-jdk15on

5 explicit affected versions

03 / CONNECTIONS

Connected vulnerabilities

04 / EVIDENCE

Source records

Open Source Vulnerabilities CVE-2015-7940

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

View original source
Open Source Vulnerabilities GHSA-4mv7-cq75-3qjm

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

View original source

05 / REFERENCES

Further evidence