CVE-2024-30172 — Vulnerability in org.bouncycastle:bctls-jdk14 —...
Bouncy Castle crafted signature and public key can be used to trigger an infinite loop
Summary
Advisory Timeline
- First published May 14, 2024 (881 days ago).
- Last revised September 10, 2026 — 849 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bctls-jdk14 -->
dotnet add package BouncyCastle.Cryptography --version 2.3.1
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bctls-jdk18on -->
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk18on -->
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk15to18 -->
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk14 -->
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bctls-jdk15to18 -->
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (8)
Affects 2 ecosystems: maven (6), nuget (2).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| org.bouncycastle:bctls-jdk14 | maven | 1.73, 1.74, 1.75, 1.76 (+1 more) | 1.78 |
| BouncyCastle | nuget | 1.7.0, 1.8.1, 1.8.2, 1.8.3 (+6 more) | Range-based data available |
| BouncyCastle.Cryptography | nuget | 2.0.0, 2.1.0, 2.1.1, 2.2.0 (+2 more) | 2.3.1 |
| org.bouncycastle:bctls-jdk18on | maven | 1.73, 1.74, 1.75, 1.76 (+1 more) | 1.78 |
| org.bouncycastle:bcprov-jdk18on | maven | 1.73, 1.74, 1.75, 1.76 (+1 more) | 1.78 |
| org.bouncycastle:bcprov-jdk15to18 | maven | 1.73, 1.74, 1.75, 1.76 (+1 more) | 1.78 |
| org.bouncycastle:bcprov-jdk14 | maven | 1.73, 1.74, 1.75, 1.76 (+1 more) | 1.78 |
| org.bouncycastle:bctls-jdk15to18 | maven | 1.73, 1.74, 1.75, 1.76 (+1 more) | 1.78 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-835
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-30172ADVISORY
- https://github.com/bcgit/bc-java/commit/1b9fd9b545e691bfb3941a9f6a797660c8860f02WEB
- https://github.com/bcgit/bc-java/commit/9c165791b68a204678b48ec11e4e579754c2ea49WEB
- https://github.com/bcgit/bc-java/commit/ebe1c75579170072dc59b8dee2b55ce31663178fWEB
- https://github.com/bcgit/bc-csharp/wiki/CVE%E2%80%902024%E2%80%9030172WEB
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902024%E2%80%9030172WEB
- https://security.netapp.com/advisory/ntap-20240614-0007WEB
- https://www.bouncycastle.org/latest_releases.htmlWEB
Frequently Asked Questions
- What is CVE-2024-30172?
- Bouncy Castle crafted signature and public key can be used to trigger an infinite loop This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
- How do I check if my project is affected by CVE-2024-30172?
- CVE-2024-30172 affects org.bouncycastle:bctls-jdk14, BouncyCastle and BouncyCastle.Cryptography (and 5 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-30172 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2025-14813CRITICAL
Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks
- CVE-2026-8763CRITICAL
Bouncy Castle: Name Constraints bypass via trailing dot in rfc822Name and URI
- CVE-2026-3505HIGH
Bouncy Castle Uncontrolled Resource Consumption vulnerability
- CVE-2026-5598HIGH
Bouncy Castle Has Covert Timing Channel Vulnerability
- CVE-2026-13506HIGH
Bouncy Castle: Lazy ASN.1 sequence forcing resets nesting-depth guard
- CVE-2026-106111MEDIUM
ImageSharp: EXR ZIP decoder can expose stale allocator data after a short inflate
- CVE-2024-29857MEDIUM
Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation.
- CVE-2024-30171MEDIUM
Bouncy Castle affected by timing side-channel for RSA key exchange ("The Marvin Attack")
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies