CVE-2024-29857
Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation.
Reported by mitre · Published May 9, 2024
bctls-jdk14 is fixed in 1.78 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.bouncycastle:bctls-jdk14 | Maven Central | 1.78 |
| org.bouncycastle:bc-fips | Maven Central | 1.0.2.5 |
| org.bouncycastle:bcprov-jdk15to18 | Maven Central | 1.78 |
| org.bouncycastle:bctls-jdk15to18 | Maven Central | 1.78 |
| org.bouncycastle:bcprov-jdk15on | Maven Central | 1.78 |
| org.bouncycastle:bcprov-jdk18on | Maven Central | 1.78 |
| ruby3.2-bouncy-castle-java | Chainguard | 1.5.0146.1-r4 |
| keycloak-fips | Chainguard | 25.0.0-r0 |
| solr-9 | Chainguard | 9.10.1-r14 |
| gradle-8 | Chainguard | 8.7.0-r4 |
| bouncycastle-util | Amazon Linux | 1.70-4.amzn2023.0.5 |
| sonarqube-10 | Chainguard | 25.2.0.102705-r0 |
8 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| chainguard | ruby3.2-bouncy-castle-java | 0 |
| Maven | org.bouncycastle:bc-fips | 0 |
| Maven | org.bouncycastle:bcprov-jdk15to18 | 0 |
| chainguard | keycloak-fips | 0 |
| Maven | org.bouncycastle:bcpkix-jdk18on | 0 |
| Maven | org.bouncycastle:bctls-jdk15to18 | 0 |
| chainguard | solr-9 | 0 |
| chainguard | gradle-8 | 0 |
| amazon:2023 | bouncycastle-util | 0 |
| chainguard | sonarqube-10 | 0 |
| Maven | org.bouncycastle:bcprov-jdk15on | 0 |
| Maven | org.bouncycastle:bcprov-jdk18on | 0 |
| chainguard | bouncycastle-fips | 0 |
| chainguard | logstash | 0 |
| wolfi | logstash | 0 |
| chainguard | elasticsearch-8 | 0 |
| chainguard | hive | 0 |
| amazon:2023 | bouncycastle-pg | 0 |
| chainguard | keycloak-operator | 0 |
…and 34 more
Timeline
- May 5, 2024 CVE Published
- Oct 4, 2024 Coalition ESS Score (17 in total, the first dated here)
- Feb 14, 2025 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (21 in total, the first dated here)
- Oct 13, 2026 Distribution Patch (14 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-29857
vulnetix vdb fixes CVE-2024-29857
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-29857/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-29857 advisory
- https://github.com/advisories/GHSA-8xfc-gm6g-vgpv advisory
- https://github.com/bcgit/bc-csharp/commit/56daa6eac526f165416d17f661422d60de0dfd63 patch
- https://github.com/bcgit/bc-java/commit/efc498ca4caa340ac2fe11f2efee06c1a294501f patch
- https://github.com/bcgit/bc-java/commit/fee80dd230e7fba132d03a34f1dd1d6aae0d0281 patch
- https://security.netapp.com/advisory/ntap-20241206-0008 advisory
- https://security.netapp.com/advisory/ntap-20241206-0008/ url