Skip to main content

CVE-2024-30172 — Vulnerability in BouncyCastle — CVE Details

MEDIUM

Bouncy Castle crafted signature and public key can be used to trigger an infinite loop

Published May 14, 2024Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.01%). Schedule for your next planned update.

Does your project use an affected org.bouncycastle:bctls-jdk15to18 version?

Paste your pom.xml to check it for CVE-2024-30172 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my pom.xml

Summary

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.

Advisory Timeline

  • First published May 14, 2024 (927 days ago).
  • Last revised September 10, 2026 — 849 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

NuGet
Update BouncyCastle.Cryptography to 2.3.1 or later
dotnet add package BouncyCastle.Cryptography --version 2.3.1
Maven
Update org.bouncycastle:bctls-jdk15to18 to 1.78 or later
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bctls-jdk15to18 -->
Maven
Update org.bouncycastle:bcprov-jdk18on to 1.78 or later
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk18on -->
Maven
Update org.bouncycastle:bcprov-jdk14 to 1.78 or later
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk14 -->
Maven
Update org.bouncycastle:bcprov-jdk15to18 to 1.78 or later
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bcprov-jdk15to18 -->
Maven
Update org.bouncycastle:bctls-jdk14 to 1.78 or later
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bctls-jdk14 -->
Maven
Update org.bouncycastle:bctls-jdk18on to 1.78 or later
<!-- Update pom.xml dependency version to 1.78 for org.bouncycastle:bctls-jdk18on -->

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (8)

Affects 2 ecosystems: Maven (6), NuGet (2).

PackageFixed In
BouncyCastle NuGet · Affected: 1.7.0, 1.8.1, 1.8.2, 1.8.3 (+6 more)Range-based data available
BouncyCastle.Cryptography NuGet · Affected: 2.0.0, 2.1.0, 2.1.1, 2.2.0 (+2 more)2.3.1
org.bouncycastle:bctls-jdk15to18 Maven · Affected: 1.73, 1.74, 1.75, 1.76 (+1 more)1.78
org.bouncycastle:bcprov-jdk18on Maven · Affected: 1.73, 1.74, 1.75, 1.76 (+1 more)1.78
org.bouncycastle:bcprov-jdk14 Maven · Affected: 1.73, 1.74, 1.75, 1.76 (+1 more)1.78
org.bouncycastle:bcprov-jdk15to18 Maven · Affected: 1.73, 1.74, 1.75, 1.76 (+1 more)1.78
org.bouncycastle:bctls-jdk14 Maven · Affected: 1.73, 1.74, 1.75, 1.76 (+1 more)1.78
org.bouncycastle:bctls-jdk18on Maven · Affected: 1.73, 1.74, 1.75, 1.76 (+1 more)1.78

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

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 BouncyCastle, BouncyCastle.Cryptography and org.bouncycastle:bctls-jdk15to18 (and 5 more). It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-30172 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.3

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
1.01%
EPSS percentile: 62.2

This is an above-median EPSS score — 62.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-m44j-cfrm-g8qc

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml