CVE-2024-30171 Bouncy Castle affected by timing side-channel for RSA key exchange ("The Marvin Attack")

Medium 5.9 Published Updated

Attackers can exploit timing side-channels in RSA handshakes to leak sensitive information from Bouncy Castle Java TLS implementations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-30171?

CVE-2024-30171 is a medium-severity vulnerability in n/a, published on 9 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Bouncy Castle Java TLS API and JSSE Provider before 1.78. Timing-based leakage may occur in RSA based handshakes because of exception processing.

Weakness: CWE-203

Which versions are affected by CVE-2024-30171?

20 open source packages ship an affected version, including org.bouncycastle:bcprov-jdk14, org.bouncycastle:bcprov-jdk15on and org.bouncycastle:bcprov-jdk15to18.

PackageAffectedFixed in
org.bouncycastle:bcprov-jdk14 MavenAll versions1.78
org.bouncycastle:bcprov-jdk14 MavenAll versions1.78
org.bouncycastle:bcprov-jdk15on MavenAll versions1.78
org.bouncycastle:bcprov-jdk15on MavenAll versions1.78
org.bouncycastle:bcprov-jdk15to18 MavenAll versions1.78
org.bouncycastle:bcprov-jdk15to18 MavenAll versions1.78
14 more packages
org.bouncycastle:bcprov-jdk18on MavenAll versions1.78
org.bouncycastle:bcprov-jdk18on MavenAll versions1.78
org.bouncycastle:bctls-fips MavenAll versions1.0.19
org.bouncycastle:bctls-fips MavenAll versions1.0.19
org.bouncycastle:bctls-jdk14 MavenAll versions1.78
org.bouncycastle:bctls-jdk14 MavenAll versions1.78
org.bouncycastle:bctls-jdk15to18 MavenAll versions1.78
org.bouncycastle:bctls-jdk15to18 MavenAll versions1.78
org.bouncycastle:bctls-jdk18on MavenAll versions1.78
org.bouncycastle:bctls-jdk18on MavenAll versions1.78
BouncyCastle NuGetAll versionsNone
BouncyCastle NuGetAll versionsNone
BouncyCastle.Cryptography NuGetAll versions2.3.1
BouncyCastle.Cryptography NuGetAll versions2.3.1
Linux distribution packages (15)
bouncycastle SUSE:Enterprise Storage 7.1All versions1.78.1-150200.3.29.1
bouncycastle SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions1.78.1-150200.3.29.1
bouncycastle SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.78.1-150200.3.29.1
bouncycastle SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions1.78.1-150200.3.29.1
bouncycastle SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions1.78.1-150200.3.29.1
bouncycastle SUSE:Linux Enterprise Module for Development Tools 15 SP5All versions1.78.1-150200.3.29.1
bouncycastle SUSE:Linux Enterprise Module for Development Tools 15 SP6All versions1.78.1-150200.3.29.1
bouncycastle SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions1.78.1-150200.3.29.1
bouncycastle SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions1.78.1-150200.3.29.1
bouncycastle SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions1.78.1-150200.3.29.1
bouncycastle SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions1.78.1-150200.3.29.1
bouncycastle SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions1.78.1-150200.3.29.1
bouncycastle SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions1.78.1-150200.3.29.1
bouncycastle openSUSE:Leap 15.5All versions1.78.1-150200.3.29.1
bouncycastle openSUSE:Leap 15.6All versions1.78.1-150200.3.29.1

How do I fix CVE-2024-30171?

Upgrade org.bouncycastle:bcprov-jdk14 to 1.78 or later.

Is CVE-2024-30171 being exploited?

There is no known exploitation of CVE-2024-30171 in the wild and no public exploit code.

Sources

Also known as CLEANSTART-2026-XT25506, CLEANSTART-2026-YR80525, DEBIAN-CVE-2024-30171, GHSA-v435-xc8x-wvr9, MINI-j94h-8875-98rh, ROOT-APP-MAVEN-CVE-2024-30171 and 3 more.

Is CVE-2024-30171 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free