MODERATE 5.9

CVE-2024-34447

Bouncy Castle Java Cryptography API vulnerable to DNS poisoning

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 Maven artifacts (7)

ArtifactAffected versionsFixed in
org.bouncycastle » bcprov-jdk12
>= 1.61, < 1.78
1.78
org.bouncycastle » bcprov-jdk14
>= 1.61, < 1.78
1.78
org.bouncycastle » bcprov-jdk15on
>= 1.61, < 1.78
1.78
org.bouncycastle » bcprov-jdk15to18
>= 1.61, < 1.78
1.78
org.bouncycastle » bcprov-jdk18on
>= 1.61, < 1.78
1.78
org.bouncycastle » bcprov-lts8on
< 2.73.6
2.73.6
org.bouncycastle » bctls-fips
< 1.0.19
1.0.19

Blast radius

6affected artifacts
100affected versions
32,383dependent artifacts (est.)
2,203,741dependent versions

61% of the dependent artifacts (19,846) still pull an affected version in their latest release.

DepthDependent versions
Direct
101,583
2 hops
521,095
3 hops
598,772
4 hops
537,087
5 hops
318,916
6 hops
126,288

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.