CVE-2026-45673
Netty: DNS Cache Poisoning due to Predictable PRNG and Default Static Source Port
Description
Summary
Netty's DNS resolver uses a predictable PRNG for generating DNS transaction IDs and defaults to a static UDP source port. This combination reduces the entropy of DNS queries, enabling DNS Cache Poisoning (Kaminsky attack).
Details
Two factors contribute to this vulnerability in io.netty.resolver.dns:
- Predictable Query IDs:
DnsQueryIdSpacemanages 16-bit transaction IDs in buckets of 16,384 IDs. It initializes only the first bucket. When an ID is returned, it is pushed back into the bucket at a random index generated by java.util.concurrent.ThreadLocalRandom:
Random random = ThreadLocalRandom.current();
int insertionPosition = random.nextInt(count + 1);
Because ThreadLocalRandom is a predictable LCG and the resolver operates within a single bucket, the sequence of IDs is predictable once the PRNG state is mathematically recovered.
- Default Static Source Port:
DnsNameResolverBuilderdefaults to achannelStrategyofChannelPerResolver. This binds the DatagramChannel once, resulting in a static source port for all subsequent queries.
Combined, a static source port and predictable transaction IDs reduces the entropy required to secure DNS resolution against spoofing.
Impact
DNS Cache Poisoning. Downstream applications using the default Netty DNS resolver may connect to malicious IPs, leading to traffic interception or MitM attacks.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.netty » netty-resolver-dns | < 4.1.135.Final>= 4.2.0.Final, < 4.2.15.Final | 4.1.135.Final, 4.2.15.Final |
Blast radius
67% of the dependent artifacts (14,114) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 10,029 |
| 2 hops | 128,939 |
| 3 hops | 249,848 |
| 4 hops | 174,521 |
| 5 hops | 157,429 |
| 6 hops | 109,286 |
Most used dependents
- io.netty » netty-all3,584 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.springframework.boot » spring-boot-starter-data-redis3,154 usages
- org.apache.spark » spark-core2,899 usages
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- io.vertx » vertx-core2,116 usages
- org.seleniumhq.selenium » selenium-java2,089 usages
- org.apache.zookeeper » zookeeper2,044 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.hadoop » hadoop-hdfs1,377 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- io.quarkus » quarkus-resteasy1,251 usages
- org.apache.curator » curator-recipes1,197 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.
