CVE-2024-29857 Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation.

High 7.5 Published Updated

Attackers can cause excessive CPU consumption and denial of service by importing EC certificates with crafted F2m parameters in Bouncy Castle libraries.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-29857?

CVE-2024-29857 is a high-severity denial of service vulnerability in n/a, published on 9 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-125

Which versions are affected by CVE-2024-29857?

20 open source packages ship an affected version, including org.bouncycastle:bc-fips, org.bouncycastle:bcprov-jdk14 and org.bouncycastle:bcprov-jdk15on.

PackageAffectedFixed in
org.bouncycastle:bc-fips MavenAll versions1.0.2.5
org.bouncycastle:bc-fips MavenAll versions1.0.2.5
org.bouncycastle:bcprov-jdk14 MavenAll versions1.78
org.bouncycastle:bcprov-jdk14 MavenAll versions1.78
org.bouncycastle:bcprov-jdk15on MavenAll versions1.78
org.bouncycastle:bcprov-jdk15on MavenAll versions1.78
14 more packages
org.bouncycastle:bcprov-jdk15to18 MavenAll versions1.78
org.bouncycastle:bcprov-jdk15to18 MavenAll versions1.78
org.bouncycastle:bcprov-jdk18on MavenAll versions1.78
org.bouncycastle:bcprov-jdk18on MavenAll versions1.78
org.bouncycastle:bctls-jdk14 MavenAll versions1.78
org.bouncycastle:bctls-jdk14 MavenAll versions1.78
org.bouncycastle:bctls-jdk15to18 MavenAll versions1.78
org.bouncycastle:bctls-jdk15to18 MavenAll versions1.78
org.bouncycastle:bctls-jdk18on MavenAll versions1.78
org.bouncycastle:bctls-jdk18on MavenAll versions1.78
BouncyCastle NuGetAll versionsNone
BouncyCastle NuGetAll versionsNone
BouncyCastle.Cryptography NuGetAll versions2.3.1
BouncyCastle.Cryptography NuGetAll versions2.3.1
Linux distribution packages (1)
itextpdf openSUSE:TumbleweedAll versions5.5.13.4-1.1

How do I fix CVE-2024-29857?

Upgrade org.bouncycastle:bc-fips to 1.0.2.5 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-29857 being exploited?

There is no known exploitation of CVE-2024-29857 in the wild and no public exploit code.

Sources

Also known as CLEANSTART-2026-GK84785, CLEANSTART-2026-YK68946, CLSA-2026-1781052750, DEBIAN-CVE-2024-29857, GHSA-8xfc-gm6g-vgpv, MINI-783x-vwmm-xfm8 and 6 more.

Is CVE-2024-29857 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free