Loading...
Skip to main content

CVE-2024-29857 — Vulnerability in org.bouncycastle:bc-fips — CVE...

MEDIUM

Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation.

Published May 14, 2024Updated September 10, 2026Source: osv

Summary

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.

Advisory Timeline

  • First published May 14, 2024 (881 days ago).
  • Last revised September 10, 2026 — 849 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.bouncycastle:bc-fips to 1.0.2.5 or later
<!-- Update pom.xml dependency version to 1.0.2.5 for org.bouncycastle:bc-fips -->
Maven
Update org.bouncycastle:bcprov-jdk18on to 1.78 or later
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk18on -->
NuGet
Update BouncyCastle.Cryptography to 2.3.1 or later
dotnet add package BouncyCastle.Cryptography --version 2.3.1
Maven
Update org.bouncycastle:bcprov-jdk14 to 1.78 or later
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk14 -->
Maven
Update org.bouncycastle:bcprov-jdk15on to 1.78 or later
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk15on -->
Maven
Update org.bouncycastle:bcprov-jdk15to18 to 1.78 or later
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk15to18 -->
Maven
Update org.bouncycastle:bctls-jdk18on to 1.78 or later
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bctls-jdk18on -->
Maven
Update org.bouncycastle:bctls-jdk14 to 1.78 or later
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bctls-jdk14 -->
Maven
Update org.bouncycastle:bctls-jdk15to18 to 1.78 or later
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bctls-jdk15to18 -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (10)

Affects 2 ecosystems: maven (8), nuget (2).

PackageEcosystemAffectedFixed In
org.bouncycastle:bc-fips
maven
1.0.0, 1.0.1, 1.0.2, 1.0.2.1 (+2 more)1.0.2.5
BouncyCastle
nuget
1.7.0, 1.8.1, 1.8.2, 1.8.3 (+6 more)Range-based data available
org.bouncycastle:bcprov-jdk18on
maven
1.71, 1.71.1, 1.72, 1.73 (+4 more)1.78
BouncyCastle.Cryptography
nuget
2.0.0, 2.1.0, 2.1.1, 2.2.0 (+2 more)2.3.1
org.bouncycastle:bcprov-jdk14
maven
1.38, 1.43, 1.44, 1.45 (+30 more)1.78
org.bouncycastle:bcprov-jdk15on
maven
1.46, 1.47, 1.48, 1.49 (+22 more)1.78
org.bouncycastle:bcprov-jdk15to18
maven
1.63, 1.64, 1.65, 1.66 (+11 more)1.78
org.bouncycastle:bctls-jdk18on
maven
1.71, 1.71.1, 1.72, 1.73 (+4 more)1.78
org.bouncycastle:bctls-jdk14
maven
1.61, 1.62, 1.63, 1.64 (+12 more)1.78
org.bouncycastle:bctls-jdk15to18
maven
1.63, 1.64, 1.65, 1.66 (+11 more)1.78

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-125
    Out-of-bounds ReadMITRE
  • CWE-400
    Uncontrolled Resource ConsumptionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Frequently Asked Questions

What is CVE-2024-29857?
Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
How do I check if my project is affected by CVE-2024-29857?
CVE-2024-29857 affects org.bouncycastle:bc-fips, BouncyCastle and org.bouncycastle:bcprov-jdk18on (and 7 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-29857 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.3

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-8xfc-gm6g-vgpv

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies