CVE-2024-29857: Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation.
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.
Published May 14, 2024 · Updated Dec 6, 2024
Affected packages
org.bouncycastle:bcprov-jdk18on
- Ecosystem
- Maven
- Affected
- < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk18on
org.bouncycastle:bcprov-jdk15on
- Ecosystem
- Maven
- Affected
- < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk15on
org.bouncycastle:bcprov-jdk15to18
- Ecosystem
- Maven
- Affected
- < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk15to18
org.bouncycastle:bcprov-jdk14
- Ecosystem
- Maven
- Affected
- < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk14
org.bouncycastle:bctls-jdk18on
- Ecosystem
- Maven
- Affected
- < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bctls-jdk18on
org.bouncycastle:bctls-jdk14
- Ecosystem
- Maven
- Affected
- < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bctls-jdk14
org.bouncycastle:bctls-jdk15to18
- Ecosystem
- Maven
- Affected
- < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bctls-jdk15to18
org.bouncycastle:bc-fips
- Ecosystem
- Maven
- Affected
- < 1.0.2.5
- Fixed in
- 1.0.2.5
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bc-fips
BouncyCastle
- Ecosystem
- NuGet
- Affected
- < 2.3.1
- Fixed in
- No patched version yet
- Check
dotnet list package --include-transitive
BouncyCastle.Cryptography
- Ecosystem
- NuGet
- Affected
- < 2.3.1
- Fixed in
- 2.3.1
- Check
dotnet list package --include-transitive
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to levpachmanov.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-29857
- https://github.com/bcgit/bc-csharp/wiki/CVE%E2%80%902024%E2%80%9029857
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902024%E2%80%9029857
- https://www.bouncycastle.org/latest_releases.html
- https://github.com/bcgit/bc-csharp/commit/56daa6eac526f165416d17f661422d60de0dfd63
- https://github.com/bcgit/bc-java/commit/fee80dd230e7fba132d03a34f1dd1d6aae0d0281
- https://github.com/bcgit/bc-java/commit/efc498ca4caa340ac2fe11f2efee06c1a294501f
- https://security.netapp.com/advisory/ntap-20241206-0008
- https://github.com/advisories/GHSA-8xfc-gm6g-vgpv
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-13505
Bouncy Castle: Zeroisation of sensitive key material on garbage collection relies on finalization.
high8.7Aug 8, 2026CVE-2026-8798
Bouncy Castle: the native entropy source used on Intel platforms retried the CPU entropy instructions without any bound
high8.7Aug 8, 2026CVE-2026-13506
Bouncy Castle: Lazy ASN.1 sequence forcing resets nesting-depth guard
high7.5Aug 3, 2026CVE-2026-8763
Bouncy Castle: Name Constraints bypass via trailing dot in rfc822Name and URI
critical9.1Aug 3, 2026CVE-2025-14813
Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks
critical7.5No fixApr 17, 2026CVE-2026-0636
Bouncy Castle has an LDAP injection
medium6.5Apr 17, 2026
