Bouncy Castle Java Cryptography API vulnerable to DNS poisoning
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk12 | >= 1.61, < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk14 | >= 1.61, < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk15on | >= 1.61, < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk15to18 | >= 1.61, < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk18on | >= 1.61, < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-lts8on | < 2.73.6 | 2.73.6 |
| Java / Kotlin (Maven) | org.bouncycastle:bctls-fips | < 1.0.19 | 1.0.19 |
References
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N- Weakness (CWE)
CWE-297- Platform
- Java / Kotlin (Maven)
- Package
org.bouncycastle:bcprov-jdk12, org.bouncycastle:bcprov-jdk14, org.bouncycastle:bcprov-jdk15on- Disclosed
- 03.05.2024
- Updated
- 11.10.2026 13:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-4h8f-2wvx-gg5w - CC BY 4.0
Vulnerability history: org.bouncycastle:bcprov-lts8on
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
- 4
- First → latest
- 05.2024 08.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 1
- Medium 2
Disclosures per year
- 2024: 1
- 2025: 0
- 2026: 3
-
Bouncy Castle Java Cryptography API vulnerable to DNS poisoning 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.