ADVISORIES

GitHub Advisory Database

GHSA-4h8f-2wvx-gg5w

Bouncy Castle Java Cryptography API vulnerable to DNS poisoning

Moderate CVE-2024-34447

Details

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

EcosystemPackageAffected versions
Mavenorg.bouncycastle:bcprov-jdk18on
From 1.61 before 1.78 (fixed in 1.78)
Mavenorg.bouncycastle:bcprov-jdk15to18
From 1.61 before 1.78 (fixed in 1.78)
Mavenorg.bouncycastle:bcprov-jdk14
From 1.61 before 1.78 (fixed in 1.78)
Mavenorg.bouncycastle:bcprov-jdk12
From 1.61 before 1.78 (fixed in 1.78)
Mavenorg.bouncycastle:bctls-fips
All versions before 1.0.19 (fixed in 1.0.19)
Mavenorg.bouncycastle:bcprov-lts8on
All versions before 2.73.6 (fixed in 2.73.6)
Mavenorg.bouncycastle:bcprov-jdk15on
From 1.61 before 1.78 (fixed in 1.78)

References