CVE-2024-29857 — Vulnerability in BouncyCastle — CVE Details
Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation.
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.22%). Schedule for your next planned update.
Does your project use an affected org.bouncycastle:bctls-jdk18on version?
Paste your pom.xml to check it for CVE-2024-29857 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
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 (926 days ago).
- Last revised September 10, 2026 — 849 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package BouncyCastle.Cryptography --version 2.3.1
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bctls-jdk18on -->
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk14 -->
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk18on -->
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bctls-jdk14 -->
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk15on -->
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bctls-jdk15to18 -->
<!-- Update pom.xml dependency version to 1.0.2.5 for org.bouncycastle:bc-fips -->
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk15to18 -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (10)
Affects 2 ecosystems: Maven (8), NuGet (2).
| Package | Fixed In |
|---|---|
| BouncyCastle NuGet · Affected: 1.7.0, 1.8.1, 1.8.2, 1.8.3 (+6 more) | Range-based data available |
| BouncyCastle.Cryptography NuGet · Affected: 2.0.0, 2.1.0, 2.1.1, 2.2.0 (+2 more) | 2.3.1 |
| org.bouncycastle:bctls-jdk18on Maven · Affected: 1.71, 1.71.1, 1.72, 1.73 (+4 more) | 1.78 |
| org.bouncycastle:bcprov-jdk14 Maven · Affected: 1.38, 1.43, 1.44, 1.45 (+30 more) | 1.78 |
| org.bouncycastle:bcprov-jdk18on Maven · Affected: 1.71, 1.71.1, 1.72, 1.73 (+4 more) | 1.78 |
| org.bouncycastle:bctls-jdk14 Maven · Affected: 1.61, 1.62, 1.63, 1.64 (+12 more) | 1.78 |
| org.bouncycastle:bcprov-jdk15on Maven · Affected: 1.46, 1.47, 1.48, 1.49 (+22 more) | 1.78 |
| org.bouncycastle:bctls-jdk15to18 Maven · Affected: 1.63, 1.64, 1.65, 1.66 (+11 more) | 1.78 |
| org.bouncycastle:bc-fips Maven · Affected: 1.0.0, 1.0.1, 1.0.2, 1.0.2.1 (+2 more) | 1.0.2.5 |
| org.bouncycastle:bcprov-jdk15to18 Maven · Affected: 1.63, 1.64, 1.65, 1.66 (+11 more) | 1.78 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-29857ADVISORY
- https://github.com/bcgit/bc-csharp/commit/56daa6eac526f165416d17f661422d60de0dfd63WEB
- https://github.com/bcgit/bc-java/commit/efc498ca4caa340ac2fe11f2efee06c1a294501fWEB
- https://github.com/bcgit/bc-java/commit/fee80dd230e7fba132d03a34f1dd1d6aae0d0281WEB
- https://github.com/bcgit/bc-csharp/wiki/CVE%E2%80%902024%E2%80%9029857WEB
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902024%E2%80%9029857WEB
- https://security.netapp.com/advisory/ntap-20241206-0008WEB
- https://www.bouncycastle.org/latest_releases.htmlWEB
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 BouncyCastle, BouncyCastle.Cryptography and org.bouncycastle:bctls-jdk18on (and 7 more). It has a 1.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-29857 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 68.5% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2025-14813CRITICAL
Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks
- CVE-2026-8763CRITICAL
Bouncy Castle: Name Constraints bypass via trailing dot in rfc822Name and URI
- CVE-2026-3505HIGH
Bouncy Castle Uncontrolled Resource Consumption vulnerability
- CVE-2026-5598HIGH
Bouncy Castle Has Covert Timing Channel Vulnerability
- CVE-2026-13506HIGH
Bouncy Castle: Lazy ASN.1 sequence forcing resets nesting-depth guard
- GHSA-6856-87hx-p5x7MEDIUM
Microsoft Security Advisory CVE-2026-105544 - .NET Elevation of Privilege Vulnerability
- CVE-2024-30172MEDIUM
Bouncy Castle crafted signature and public key can be used to trigger an infinite loop
- CVE-2024-30171MEDIUM
Bouncy Castle affected by timing side-channel for RSA key exchange ("The Marvin Attack")