CVE-2024-30172
Bouncy Castle crafted signature and public key can be used to trigger an infinite loop
Reported by mitre · Published May 9, 2024
bctls-jdk14 is fixed in 1.78 (Maven Central)
An issue was discovered in Bouncy Castle Java Cryptography APIs before 1.78. An Ed25519 verification code infinite loop can occur via a crafted signature and public key.
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:bcprov-jdk18on | Maven Central | 1.78 |
| org.bouncycastle:bcprov-jdk14 | Maven Central | 1.78 |
| org.bouncycastle:bcprov-jdk15to18 | Maven Central | 1.78 |
| org.bouncycastle:bctls-jdk18on | Maven Central | 1.78 |
| BouncyCastle.Cryptography | NuGet | 2.3.1 |
| org.bouncycastle:bctls-jdk15to18 | Maven Central | 1.78 |
| gradle-stage0 | Wolfi | 8.0.1-r0 |
| ruby3.2-bouncy-castle-java | Wolfi | 1.5.0146.1-r4 |
| opensearch-2 | Chainguard | 2.16.0-r0 |
| ruby3.2-bouncy-castle-java | Chainguard | 1.5.0146.1-r4 |
| opensearch-2 | Wolfi | 2.16.0-r0 |
17 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| Maven | org.bouncycastle:bcprov-jdk15on | 0 |
| wolfi | gradle-stage0 | 0 |
| NuGet | BouncyCastle | |
| wolfi | ruby3.2-bouncy-castle-java | 0 |
| chainguard | opensearch-2 | 0 |
| chainguard | ruby3.2-bouncy-castle-java | 0 |
| wolfi | opensearch-2 | 0 |
| wolfi | keycloak-operator | 0 |
| chainguard | gradle-8 | 0 |
| wolfi | logstash | 0 |
| Maven | org.bouncycastle:bcprov-jdk14 | 1.73 |
| chainguard | elasticsearch-7 | 0 |
| wolfi | jruby-9.4 | 0 |
| Maven | org.bouncycastle:bcprov-jdk18on | 1.73 |
| chainguard | gradle-stage0 | 0 |
| chainguard | opensearch-2-jre-bcfips | 0 |
| Maven | org.bouncycastle:bcpkix-jdk18on | 0 |
| chainguard | sonarqube-10 | 0 |
| NuGet | BouncyCastle.Cryptography | 0 |
…and 21 more
Timeline
- May 5, 2024 CVE Published
- Jun 15, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (6 in total, the first dated here)
- Mar 17, 2026 Security Advisory (20 in total, the first dated here)
- Nov 22, 2026 Distribution Patch (13 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-30172
vulnetix vdb fixes CVE-2024-30172
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-30172/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-30172 advisory
- https://github.com/advisories/GHSA-m44j-cfrm-g8qc advisory
- https://github.com/bcgit/bc-java/commit/1b9fd9b545e691bfb3941a9f6a797660c8860f02 patch
- https://github.com/bcgit/bc-java/commit/9c165791b68a204678b48ec11e4e579754c2ea49 patch
- https://github.com/bcgit/bc-java/commit/ebe1c75579170072dc59b8dee2b55ce31663178f patch
- https://github.com/bcgit/bc-csharp/wiki/CVE%E2%80%902024%E2%80%9030172 url
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902024%E2%80%9030172 url
- https://security.netapp.com/advisory/ntap-20240614-0007 advisory