CVE-2024-30172: Bouncy Castle crafted signature and public key can be used to trigger an infinite loop
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.
Published May 14, 2024 · Updated Dec 2, 2024
Affected packages
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
org.bouncycastle:bcprov-jdk18on
- Ecosystem
- Maven
- Affected
- >= 1.73, < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk18on
org.bouncycastle:bcprov-jdk15to18
- Ecosystem
- Maven
- Affected
- >= 1.73, < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk15to18
org.bouncycastle:bcprov-jdk14
- Ecosystem
- Maven
- Affected
- >= 1.73, < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk14
org.bouncycastle:bctls-jdk18on
- Ecosystem
- Maven
- Affected
- >= 1.73, < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bctls-jdk18on
org.bouncycastle:bctls-jdk14
- Ecosystem
- Maven
- Affected
- >= 1.73, < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bctls-jdk14
org.bouncycastle:bctls-jdk15to18
- Ecosystem
- Maven
- Affected
- >= 1.73, < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bctls-jdk15to18
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to levpachmanov, amita-seal.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-30172
- https://www.bouncycastle.org/latest_releases.html
- https://github.com/bcgit/bc-csharp/wiki/CVE%E2%80%902024%E2%80%9030172
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902024%E2%80%9030172
- https://security.netapp.com/advisory/ntap-20240614-0007
- https://github.com/bcgit/bc-java/commit/9c165791b68a204678b48ec11e4e579754c2ea49
- https://github.com/bcgit/bc-java/commit/ebe1c75579170072dc59b8dee2b55ce31663178f
- https://github.com/bcgit/bc-java/commit/1b9fd9b545e691bfb3941a9f6a797660c8860f02
- https://github.com/advisories/GHSA-m44j-cfrm-g8qc
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 NuGet vulnerabilities
All NuGet entriesCVE-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, 2026CVE-2026-5598
Bouncy Castle Has Covert Timing Channel Vulnerability
high7.5Apr 17, 2026CVE-2025-8885
Bouncy Castle for Java on All (API modules) allows Excessive Allocation
medium6.3Aug 12, 2025
