MEDIUM5.3
GHSA-8xfc-gm6g-vgpv
Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation.
Quick fix
GHSA-8xfc-gm6g-vgpv — org.bouncycastle:bcprov-jdk18on: upgrade to the fixed version with the command below.
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bcprov-jdk18onDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.bouncycastle:bcprov-jdk18on
Introduced in:
0Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bcprov-jdk18onMaven/org.bouncycastle:bcprov-jdk15on
Introduced in:
0Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bcprov-jdk15onMaven/org.bouncycastle:bcprov-jdk15to18
Introduced in:
0Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bcprov-jdk15to18Maven/org.bouncycastle:bcprov-jdk14
Introduced in:
0Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bcprov-jdk14Maven/org.bouncycastle:bctls-jdk18on
Introduced in:
0Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bctls-jdk18onMaven/org.bouncycastle:bctls-jdk14
Introduced in:
0Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bctls-jdk14Maven/org.bouncycastle:bctls-jdk15to18
Introduced in:
0Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bctls-jdk15to18Maven/org.bouncycastle:bc-fips
Introduced in:
0Fixed in: 1.0.2.5Fix
# pom.xml: bump <version>1.0.2.5</version> for org.bouncycastle:bc-fipsNuGet/BouncyCastle
Introduced in:
0No fixed version published yet for BouncyCastle (nuget). Pin to a known-safe version or switch to an alternative.
NuGet/BouncyCastle.Cryptography
Introduced in:
0Fixed in: 2.3.1Fix
dotnet add package BouncyCastle.Cryptography --version 2.3.1References
- https://nvd.nist.gov/vuln/detail/CVE-2024-29857[ADVISORY]
- https://github.com/bcgit/bc-csharp/commit/56daa6eac526f165416d17f661422d60de0dfd63[WEB]
- https://github.com/bcgit/bc-java/commit/efc498ca4caa340ac2fe11f2efee06c1a294501f[WEB]
- https://github.com/bcgit/bc-java/commit/fee80dd230e7fba132d03a34f1dd1d6aae0d0281[WEB]
- https://github.com/bcgit/bc-csharp/wiki/CVE%E2%80%902024%E2%80%9029857[WEB]
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902024%E2%80%9029857[WEB]
- https://security.netapp.com/advisory/ntap-20241206-0008[WEB]
- https://www.bouncycastle.org/latest_releases.html[WEB]