CVE-2024-34447: 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…
Published May 3, 2024 · Updated Apr 17, 2026
Affected packages
org.bouncycastle:bcprov-jdk18on
- Ecosystem
- Maven
- Affected
- >= 1.61, < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk18on
org.bouncycastle:bcprov-jdk15to18
- Ecosystem
- Maven
- Affected
- >= 1.61, < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk15to18
org.bouncycastle:bcprov-jdk14
- Ecosystem
- Maven
- Affected
- >= 1.61, < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk14
org.bouncycastle:bcprov-jdk12
- Ecosystem
- Maven
- Affected
- >= 1.61, < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk12
org.bouncycastle:bctls-fips
- Ecosystem
- Maven
- Affected
- < 1.0.19
- Fixed in
- 1.0.19
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bctls-fips
org.bouncycastle:bcprov-lts8on
- Ecosystem
- Maven
- Affected
- < 2.73.6
- Fixed in
- 2.73.6
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-lts8on
org.bouncycastle:bcprov-jdk15on
- Ecosystem
- Maven
- Affected
- >= 1.61, < 1.78
- Fixed in
- 1.78
- Check
mvn dependency:tree -Dincludes=org.bouncycastle:bcprov-jdk15on
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to samueloph, binary-1024, hmolsen, kmoens.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-13506
Bouncy Castle: Lazy ASN.1 sequence forcing resets nesting-depth guard
high7.5Aug 3, 2026CVE-2026-8763
Bouncy Castle: Name Constraints bypass via trailing dot in rfc822Name and URI
critical9.1Aug 3, 2026CVE-2026-8149
Bouncy Castle LTS native GCM chunking can cause bad-tag exception on decryption
medium5.1May 8, 2026CVE-2025-14813
Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks
critical7.5No fixApr 17, 2026CVE-2026-0636
Bouncy Castle has an LDAP injection
medium6.5Apr 17, 2026CVE-2026-5598
Bouncy Castle Has Covert Timing Channel Vulnerability
high7.5Apr 17, 2026
