CVE-2024-29857
Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation.
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.
Affected Maven artifacts (8)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.bouncycastle » bc-fips | < 1.0.2.5 | 1.0.2.5 |
| org.bouncycastle » bcprov-jdk14 | < 1.78 | 1.78 |
| org.bouncycastle » bcprov-jdk15on | < 1.78 | 1.78 |
| org.bouncycastle » bcprov-jdk15to18 | < 1.78 | 1.78 |
| org.bouncycastle » bcprov-jdk18on | < 1.78 | 1.78 |
| org.bouncycastle » bctls-jdk14 | < 1.78 | 1.78 |
| org.bouncycastle » bctls-jdk15to18 | < 1.78 | 1.78 |
| org.bouncycastle » bctls-jdk18on | < 1.78 | 1.78 |
Blast radius
69% of the dependent artifacts (36,529) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 154,523 |
| 2 hops | 906,009 |
| 3 hops | 1,273,235 |
| 4 hops | 1,176,314 |
| 5 hops | 716,370 |
| 6 hops | 347,489 |
Most used dependents
- org.apache.maven.plugins » maven-gpg-plugin50,913 usages
- org.testcontainers » testcontainers4,109 usages
- org.apache.poi » poi-ooxml3,690 usages
- io.netty » netty-all3,584 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.kafka » kafka-clients3,135 usages
- redis.clients » jedis2,971 usages
- org.apache.spark » spark-core2,899 usages
- com.diffplug.spotless » spotless-maven-plugin2,873 usages
- org.bouncycastle » bcpkix-jdk15on2,867 usages
- org.wso2.maven » carbon-p2-plugin2,864 usages
- org.eclipse.jgit » org.eclipse.jgit2,222 usages
- com.android.tools.build » gradle2,197 usages
- org.bouncycastle » bcpkix-jdk18on2,109 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects NuGet (2 packages) . See all on OSV
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-29857
- Webhttps://github.com/bcgit/bc-csharp/commit/56daa6eac526f165416d17f661422d60de0dfd63
- Webhttps://github.com/bcgit/bc-java/commit/efc498ca4caa340ac2fe11f2efee06c1a294501f
- Webhttps://github.com/bcgit/bc-java/commit/fee80dd230e7fba132d03a34f1dd1d6aae0d0281
- Webhttps://github.com/bcgit/bc-csharp/wiki/CVE%E2%80%902024%E2%80%9029857
- Webhttps://github.com/bcgit/bc-java/wiki/CVE%E2%80%902024%E2%80%9029857
- Webhttps://security.netapp.com/advisory/ntap-20241206-0008
- Webhttps://www.bouncycastle.org/latest_releases.html
