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)
| Artifact | Affected versions | Fixed 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
61% of the dependent artifacts (19,846) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.apache.maven.plugins » maven-gpg-plugin50,913 usages
- org.apache.poi » poi-ooxml3,690 usages
- io.netty » netty-all3,584 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.kafka » kafka-clients3,135 usages
- redis.clients » jedis2,971 usages
- org.apache.spark » spark-core2,899 usages
- com.diffplug.spotless » spotless-maven-plugin2,873 usages
- org.bouncycastle » bcpkix-jdk15on2,867 usages
- org.wso2.maven » carbon-p2-plugin2,864 usages
- org.eclipse.jgit » org.eclipse.jgit2,222 usages
- com.android.tools.build » gradle2,197 usages
- org.bouncycastle » bcpkix-jdk18on2,109 usages
- org.apache.zookeeper » zookeeper2,044 usages
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.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-34447
- Webhttps://github.com/bcgit/bc-java/issues/1656
- Packagehttps://github.com/bcgit/bc-java
- Webhttps://github.com/bcgit/bc-java/wiki/CVE%E2%80%902024%E2%80%9034447
- Webhttps://www.bouncycastle.org/latest_releases.html
- Webhttp://security.netapp.com/advisory/ntap-20240614-0007
