CVE-2024-34447 — bcprov-jdk18on
MEDIUMCVE-2024-34447 is a medium-severity (CVSS 5.9) CWE-297 vulnerability in org.bouncycastle:bcprov-jdk18on. A fix is available for org.bouncycastle:bcprov-jdk18on — see the affected versions and patch details below.
Bouncy Castle Java Cryptography API vulnerable to DNS poisoning
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-34447.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2024-34447 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 386,684 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
org.bouncycastle:bcprov-jdk18on☕org.bouncycastle:bcprov-jdk15to18☕org.bouncycastle:bcprov-jdk14☕org.bouncycastle:bcprov-jdk12☕org.bouncycastle:bctls-fips☕org.bouncycastle:bcprov-lts8on☕org.bouncycastle:bcprov-jdk15onReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
An issue was discovered in the Bouncy Castle Crypto Package For Java before BC TLS Java 1.0.19 (ships with BC Java 1.78, BC Java (LTS) 2.73.6) and before BC FIPS TLS Java 1.0.19. When endpoint identification is enabled in the BCJSSE and an SSL socket is created without an explicit hostname (as happens with HttpsURLConnection), hostname verification could be performed against a DNS-resolved IP address in some situations, opening up a possibility of DNS poisoning.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.bouncycastle:bcprov-jdk18on | ≥ 1.61&&< 1.78 | 1.78org.bouncycastle:bcprov-jdk18on:1.78 |
| ☕Maven | org.bouncycastle:bcprov-jdk15to18 | ≥ 1.61&&< 1.78 | 1.78org.bouncycastle:bcprov-jdk15to18:1.78 |
| ☕Maven | org.bouncycastle:bcprov-jdk14 | ≥ 1.61&&< 1.78 | 1.78org.bouncycastle:bcprov-jdk14:1.78 |
| ☕Maven | org.bouncycastle:bcprov-jdk12 | ≥ 1.61&&< 1.78 | 1.78org.bouncycastle:bcprov-jdk12:1.78 |
| ☕Maven | org.bouncycastle:bctls-fips | all versions | 1.0.19org.bouncycastle:bctls-fips:1.0.19 |
| ☕Maven | org.bouncycastle:bcprov-lts8on | all versions | 2.73.6org.bouncycastle:bcprov-lts8on:2.73.6 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.bouncycastle:bcprov-jdk18on, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.bouncycastle:bcprov-jdk18on to 1.78 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-34447 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
The vulnerability in Bouncy Castle Java Cryptography APIs, allowing for incorrect resolution of domain names during SSL/TLS connections without explicitly specifying a hostname, is assessed as moderate severity due to its potential impact on security. By exploiting this flaw, an attacker could manipulate DNS…
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.Source: Red Hat security advisory for CVE-2024-34447 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat AMQ Broker 7 | org.bouncycastle:bcprov-jdk18on | RHSA-2024:4271 |
| Red Hat build of Apache Camel 4.4.1 for Spring Boot 3.2 | see advisory | RHSA-2024:4884 |
| Red Hat build of Quarkus 3.8.5.redhat | org.bouncycastle/bcprov-jdk18on:1.78.1.redhat-00002 | RHSA-2024:4326 |
Frequently Asked Questions
Is CVE-2024-34447 in your dependencies?
Find it across Maven, including transitive dependencies.