7.5high
Bouncy Castle Java Cryptography API vulnerable to DNS poisoning
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.77% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-4h8f-2wvx-gg5w
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| org.bouncycastle:bcprov-jdk18on (Maven) | from 1.61 before 1.78 | GitHub Advisory Database |
| org.bouncycastle:bcprov-jdk15to18 (Maven) | from 1.61 before 1.78 | GitHub Advisory Database |
| org.bouncycastle:bcprov-jdk14 (Maven) | from 1.61 before 1.78 | GitHub Advisory Database |
| org.bouncycastle:bcprov-jdk12 (Maven) | from 1.61 before 1.78 | GitHub Advisory Database |
| org.bouncycastle:bctls-fips (Maven) | before 1.0.19 | GitHub Advisory Database |
| org.bouncycastle:bcprov-lts8on (Maven) | before 2.73.6 | GitHub Advisory Database |
| org.bouncycastle:bcprov-jdk15on (Maven) | from 1.61 before 1.78 | GitHub Advisory Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Se descubrió un problema en las API de criptografía Java de Bouncy Castle antes de BC 1.78. Cuando la identificación de endpoint está habilitada en BCJSSE y se crea un socket SSL sin un nombre de host explícito (como sucede con HttpsURLConnection), la verificación del nombre de host podría realizarse contra una dirección IP resuelta por DNS en algunas situaciones, lo que abre una posibilidad de envenenamiento de DNS.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-34447 changed 2025-06-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4h8f-2wvx-gg5w changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-34447 changed 2026-06-17 | Public domain |