Bouncy Castle affected by timing side-channel for RSA key exchange ("The Marvin Attack")
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk14 | < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk15on | < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk15to18 | < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk18on | < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bctls-fips | < 1.0.19 | 1.0.19 |
| Java / Kotlin (Maven) | org.bouncycastle:bctls-jdk14 | < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bctls-jdk15to18 | < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bctls-jdk18on | < 1.78 | 1.78 |
| .NET (NuGet) | BouncyCastle | all versions | no fix |
| .NET (NuGet) | BouncyCastle.Cryptography | < 2.3.1 | 2.3.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-30171
- https://github.com/bcgit/bc-csharp/commit/c984b8bfd8544dfc55dba91a02cbbbb9c580c217
- https://github.com/bcgit/bc-java/commit/d7d5e735abd64bf0f413f54fd9e495fc02400fb0
- https://github.com/bcgit/bc-java/commit/e0569dcb1dea9d421d84fc4c5c5688fe101afa2d
- https://github.com/bcgit/bc-csharp/wiki/CVE%E2%80%902024%E2%80%9030171
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902024%E2%80%9030171
- https://security.netapp.com/advisory/ntap-20240614-0008
- https://www.bouncycastle.org/latest_releases.html
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-203- Platform
- Java / Kotlin (Maven), .NET (NuGet)
- Package
org.bouncycastle:bcprov-jdk14, org.bouncycastle:bcprov-jdk15on, org.bouncycastle:bcprov-jdk15to18- Disclosed
- 14.05.2024
- Updated
- 11.10.2026 11:23
Sources and licenses
OSV / GitHub Advisory Database - GHSA-v435-xc8x-wvr9 - CC BY 4.0
Vulnerability history: org.bouncycastle:bcprov-jdk15to18
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 15
- First → latest
- 04.2021 08.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 2
- High 3
- Medium 10
Disclosures per year
- 2021: 3
- 2022: 0
- 2023: 2
- 2024: 4
- 2025: 1
- 2026: 5
-
Bouncy Castle affected by timing side-channel for RSA key exchange ("The Marvin Attack") this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.