# CVE-2024-34447: Bouncy Castle Java Cryptography API vulnerable to DNS poisoning

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.96% (percentile 60, 2026-11-26)
- **CWE:** CWE-297
- **Aliases:** GHSA-4h8f-2wvx-gg5w
- **Published:** 2024-05-03T00:00:00.000Z
- **Modified:** 2026-09-10T03:50:13.465Z

## Who should check

- Projects that depend on Maven package org.bouncycastle:bcprov-jdk18on (\>= 1.61, \< 1.78)
- Projects that depend on Maven package org.bouncycastle:bcprov-jdk15to18 (\>= 1.61, \< 1.78)
- Projects that depend on Maven package org.bouncycastle:bcprov-jdk14 (\>= 1.61, \< 1.78)
- Projects that depend on Maven package org.bouncycastle:bcprov-jdk12 (\>= 1.61, \< 1.78)
- Projects that depend on Maven package org.bouncycastle:bctls-fips (\< 1.0.19)
- Projects that depend on Maven package org.bouncycastle:bcprov-lts8on (\< 2.73.6)
- Projects that depend on Maven package org.bouncycastle:bcprov-jdk15on (\>= 1.61, \< 1.78)
- Anyone running n/a (versions: see the vendor advisory)

## 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 and fixed versions

- Maven `org.bouncycastle:bcprov-jdk18on`: affected \>= 1.61, \< 1.78; fixed 1.78 (osv)
- Maven `org.bouncycastle:bcprov-jdk15to18`: affected \>= 1.61, \< 1.78; fixed 1.78 (osv)
- Maven `org.bouncycastle:bcprov-jdk14`: affected \>= 1.61, \< 1.78; fixed 1.78 (osv)
- Maven `org.bouncycastle:bcprov-jdk12`: affected \>= 1.61, \< 1.78; fixed 1.78 (osv)
- Maven `org.bouncycastle:bctls-fips`: affected \< 1.0.19; fixed 1.0.19 (osv)
- Maven `org.bouncycastle:bcprov-lts8on`: affected \< 2.73.6; fixed 2.73.6 (osv)
- Maven `org.bouncycastle:bcprov-jdk15on`: affected \>= 1.61, \< 1.78; fixed 1.78 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade org.bouncycastle:bcprov-jdk18on to 1.78 or later.
- Upgrade org.bouncycastle:bcprov-jdk15to18 to 1.78 or later.
- Upgrade org.bouncycastle:bcprov-jdk14 to 1.78 or later.
- Upgrade org.bouncycastle:bcprov-jdk12 to 1.78 or later.
- Upgrade org.bouncycastle:bctls-fips to 1.0.19 or later.
- Upgrade org.bouncycastle:bcprov-lts8on to 2.73.6 or later.
- Upgrade org.bouncycastle:bcprov-jdk15on to 1.78 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-34447. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-34447.md
Affected: org.bouncycastle:bcprov-jdk18on >= 1.61, < 1.78; org.bouncycastle:bcprov-jdk15to18 >= 1.61, < 1.78; org.bouncycastle:bcprov-jdk14 >= 1.61, < 1.78; org.bouncycastle:bcprov-jdk12 >= 1.61, < 1.78; org.bouncycastle:bctls-fips < 1.0.19; org.bouncycastle:bcprov-lts8on < 2.73.6; org.bouncycastle:bcprov-jd…
Fixed in: 1.78, 1.0.19, 2.73.6

Steps:
1. Search this machine and project for org.bouncycastle:bcprov-jdk18on (Maven), org.bouncycastle:bcprov-jdk15to18 (Maven), org.bouncycastle:bcprov-jdk14 (Maven), org.bouncycastle:bcprov-jdk12 (Maven), org.bouncycastle:bctls-fips (Maven), org.bouncycastle:bcprov-lts8on (Maven): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-34447 being exploited?

There is no confirmed exploitation: CVE-2024-34447 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.96% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-34447?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-34447?

org.bouncycastle:bcprov-jdk18on \>= 1.61, \< 1.78; org.bouncycastle:bcprov-jdk15to18 \>= 1.61, \< 1.78; org.bouncycastle:bcprov-jdk14 \>= 1.61, \< 1.78; org.bouncycastle:bcprov-jdk12 \>= 1.61, \< 1.78; org.bouncycastle:bctls-fips \< 1.0.19; org.bouncycastle:bcprov-lts8on \< 2.73.6; org.bouncycastle:bcprov-jdk15on \>= 1.61, \< 1.78.

### Is there a fix for CVE-2024-34447?

Yes. Fixed in 1.78, 1.0.19, 2.73.6. Upgrade org.bouncycastle:bcprov-jdk18on to 1.78 or later. Upgrade org.bouncycastle:bcprov-jdk15to18 to 1.78 or later. Upgrade org.bouncycastle:bcprov-jdk14 to 1.78 or later. Upgrade org.bouncycastle:bcprov-jdk12 to 1.78 or later. Upgrade org.bouncycastle:bctls-fips to 1.0.19 or later. Upgrade org.bouncycastle:bcprov-lts8on to 2.73.6 or later. Upgrade org.bouncycastle:bcprov-jdk15on to 1.78 or later.

### How do I check if I'm affected by CVE-2024-34447?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-34447>
- other: <https://www.bouncycastle.org/latest_releases.html>
- other: <https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902024%E2%80%9034447>
- other: <https://security.netapp.com/advisory/ntap-20240614-0007/>
- other: <https://github.com/bcgit/bc-java/issues/1656>
- other: <https://github.com/bcgit/bc-java>
- other: <http://security.netapp.com/advisory/ntap-20240614-0007>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-34447>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-4h8f-2wvx-gg5w> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-34447> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-34447>
