CVE-2024-30172
Bouncy Castle crafted signature and public key can be used to trigger an infinite loop
Description
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.
Affected Maven artifacts (6)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.bouncycastle » bcprov-jdk14 | >= 1.73, < 1.78 | 1.78 |
| org.bouncycastle » bcprov-jdk15to18 | >= 1.73, < 1.78 | 1.78 |
| org.bouncycastle » bcprov-jdk18on | >= 1.73, < 1.78 | 1.78 |
| org.bouncycastle » bctls-jdk14 | >= 1.73, < 1.78 | 1.78 |
| org.bouncycastle » bctls-jdk15to18 | >= 1.73, < 1.78 | 1.78 |
| org.bouncycastle » bctls-jdk18on | >= 1.73, < 1.78 | 1.78 |
Blast radius
29% of the dependent artifacts (3,175) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 12,308 |
| 2 hops | 61,531 |
| 3 hops | 67,273 |
| 4 hops | 89,305 |
| 5 hops | 52,277 |
| 6 hops | 22,231 |
Most used dependents
- org.apache.maven.plugins » maven-gpg-plugin50,913 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.wso2.maven » carbon-p2-plugin2,864 usages
- com.android.tools.build » gradle2,197 usages
- org.bouncycastle » bcpkix-jdk18on2,109 usages
- org.apache.zookeeper » zookeeper2,044 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
- org.apache.kafka » kafka1,450 usages
- org.springframework.cloud » spring-cloud-starter-openfeign1,389 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- org.wso2.carbon » org.wso2.carbon.utils1,179 usages
- io.fabric8 » docker-maven-plugin1,092 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-30172
- Webhttps://github.com/bcgit/bc-java/commit/1b9fd9b545e691bfb3941a9f6a797660c8860f02
- Webhttps://github.com/bcgit/bc-java/commit/9c165791b68a204678b48ec11e4e579754c2ea49
- Webhttps://github.com/bcgit/bc-java/commit/ebe1c75579170072dc59b8dee2b55ce31663178f
- Webhttps://github.com/bcgit/bc-csharp/wiki/CVE%E2%80%902024%E2%80%9030172
- Webhttps://github.com/bcgit/bc-java/wiki/CVE%E2%80%902024%E2%80%9030172
- Webhttps://security.netapp.com/advisory/ntap-20240614-0007
- Webhttps://www.bouncycastle.org/latest_releases.html
