CVE-2024-30171: Medium severity nuget/BouncyCastle.Cryptography vulnerability

Published Apr 22, 2024
·
Updated

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.

Other sources

BouncyCastle before version 1.78 is vulnerable to timing side-channel attacks against RSA decryption (both PKCS#1v1.5 and OAEP).

References: https://www.bouncycastle.org/releasenotes.html https://github.com/bcgit/bc-java/issues/1528 https://people.redhat.com/~hkario/marvin/

Red Hat

The Bouncy Castle Crypto Package For Java could allow a remote authenticated attacker to obtain sensitive information, caused by a flaw in the RSA decryption (both PKCS#1v1.5 and OAEP) feature. By utilize timing side-channel attack techniques, an attacker could exploit this vulnerability to obtain sensitive information, and use this information to launch further attacks against the affected system.

IBM

Affected Software

11 affected componentsFixes available
nuget/BouncyCastle.Cryptography<2.3.1
2.3.1
nuget/BouncyCastle<2.3.1
maven/org.bouncycastle:bctls-jdk15to18<1.78
1.78
maven/org.bouncycastle:bctls-jdk14<1.78
1.78
maven/org.bouncycastle:bctls-jdk18on<1.78
1.78
maven/org.bouncycastle:bcprov-jdk14<1.78
1.78
maven/org.bouncycastle:bcprov-jdk15to18<1.78
1.78
maven/org.bouncycastle:bcprov-jdk15on<1.78
1.78
maven/org.bouncycastle:bcprov-jdk18on<1.78
1.78
maven/org.bouncycastle:bctls-fips<1.0.19
1.0.19
redhat/org.bouncycastle-bcprov-jdk18on<1.78
1.78

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade nuget/BouncyCastle.Cryptography to a version that resolves this vulnerability.

    Fixed in 2.3.1
  2. Upgrade

    Upgrade maven/org.bouncycastle:bctls-jdk15to18 to a version that resolves this vulnerability.

    Fixed in 1.78
  3. Upgrade

    Upgrade maven/org.bouncycastle:bctls-jdk14 to a version that resolves this vulnerability.

    Fixed in 1.78
  4. Upgrade

    Upgrade maven/org.bouncycastle:bctls-jdk18on to a version that resolves this vulnerability.

    Fixed in 1.78
  5. Upgrade

    Upgrade maven/org.bouncycastle:bcprov-jdk14 to a version that resolves this vulnerability.

    Fixed in 1.78
  6. Upgrade

    Upgrade maven/org.bouncycastle:bcprov-jdk15to18 to a version that resolves this vulnerability.

    Fixed in 1.78
  7. Upgrade

    Upgrade maven/org.bouncycastle:bcprov-jdk15on to a version that resolves this vulnerability.

    Fixed in 1.78
  8. Upgrade

    Upgrade maven/org.bouncycastle:bcprov-jdk18on to a version that resolves this vulnerability.

    Fixed in 1.78
  9. Upgrade

    Upgrade maven/org.bouncycastle:bctls-fips to a version that resolves this vulnerability.

    Fixed in 1.0.19
  10. Upgrade

    Upgrade redhat/org.bouncycastle-bcprov-jdk18on to a version that resolves this vulnerability.

    Fixed in 1.78
  11. Upgrade

    Upgrade Bouncy Castle Java TLS API and JSSE Provider to a version that resolves this vulnerability.

    Fixed in 1.78
  12. Compensating control

    Mitigate timing side-channel leakage in RSA-based handshakes by reducing exposure to attacker-controlled measurements (e.g., limit/restrict access to TLS endpoints and enforce network/ACL protections so only trusted clients can perform RSA handshakes).

Event History

Apr 22, 2024
Data Sourced
via Red Hat·09:34 AM
DescriptionSeverityAffected Software
May 9, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
May 14, 2024
Data Sourced
via NVD·03:21 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·03:32 PM
Feb 4, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2024-30171?

CVE-2024-30171 has been classified as a high-severity vulnerability due to its potential for timing side-channel attacks.

2

How do I fix CVE-2024-30171?

To fix CVE-2024-30171, update the Bouncy Castle libraries to versions 1.78 or higher for Maven packages, or to version 2.3.1 for NuGet packages.

3

What systems are affected by CVE-2024-30171?

CVE-2024-30171 affects Bouncy Castle Java TLS API and JSSE Provider versions before 1.78 along with several specific package variations.

4

What type of attack does CVE-2024-30171 enable?

CVE-2024-30171 enables timing-based side-channel attacks against RSA decryption in affected versions.

5

Which products utilize the vulnerable Bouncy Castle versions related to CVE-2024-30171?

IBM Security Verify Governance is one of the products that may utilize the vulnerable Bouncy Castle versions associated with CVE-2024-30171.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203