MEDIUM5.3
GHSA-m44j-cfrm-g8qc
Bouncy Castle crafted signature and public key can be used to trigger an infinite loop
Quick fix
GHSA-m44j-cfrm-g8qc — 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 Bouncy Castle Java Cryptography APIs starting in 1.73 and before 1.78. An Ed25519 verification code infinite loop can occur via a crafted signature and public key.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.bouncycastle:bcprov-jdk18on
Introduced in:
1.73Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bcprov-jdk18onMaven/org.bouncycastle:bcprov-jdk15to18
Introduced in:
1.73Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bcprov-jdk15to18Maven/org.bouncycastle:bcprov-jdk14
Introduced in:
1.73Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bcprov-jdk14Maven/org.bouncycastle:bctls-jdk18on
Introduced in:
1.73Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bctls-jdk18onMaven/org.bouncycastle:bctls-jdk14
Introduced in:
1.73Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bctls-jdk14Maven/org.bouncycastle:bctls-jdk15to18
Introduced in:
1.73Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bctls-jdk15to18NuGet/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-30172[ADVISORY]
- https://github.com/bcgit/bc-java/commit/1b9fd9b545e691bfb3941a9f6a797660c8860f02[WEB]
- https://github.com/bcgit/bc-java/commit/9c165791b68a204678b48ec11e4e579754c2ea49[WEB]
- https://github.com/bcgit/bc-java/commit/ebe1c75579170072dc59b8dee2b55ce31663178f[WEB]
- https://github.com/bcgit/bc-csharp/wiki/CVE%E2%80%902024%E2%80%9030172[WEB]
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902024%E2%80%9030172[WEB]
- https://security.netapp.com/advisory/ntap-20240614-0007[WEB]
- https://www.bouncycastle.org/latest_releases.html[WEB]