{"id":"CVE-2026-45673","aliases":["CVE-2026-45673","GHSA-xmv7-r254-6q78"],"related":[],"kind":"vulnerability","state":"published","title":"Netty: DNS Cache Poisoning due to Predictable PRNG and Default Static Source Port","summary":"Netty is a network application framework for development of protocol servers and clients. Prior to versions 4.1.135.Final and 4.2.15.Final, 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). Versions 4.1.135.Final and 4.2.15.Final patch the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Netty is a network application framework for development of protocol servers and clients. Prior to versions 4.1.135.Final and 4.2.15.Final, 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). Versions 4.1.135.Final and 4.2.15.Final patch the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\nNetty'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).\n\n### Details\nTwo factors contribute to this vulnerability in io.netty.resolver.dns:\n- Predictable Query IDs: `DnsQueryIdSpace` manages 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:\n\n```java\nRandom random = ThreadLocalRandom.current();\nint insertionPosition = random.nextInt(count + 1);\n```\n\nBecause 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.\n\n- Default Static Source Port: `DnsNameResolverBuilder` defaults to a `channelStrategy` of `ChannelPerResolver`. This binds the DatagramChannel once, resulting in a static source port for all subsequent queries.\n\nCombined, a static source port and predictable transaction IDs reduces the entropy required to secure DNS resolution against spoofing.\n\n### Impact\nDNS Cache Poisoning. Downstream applications using the default Netty DNS resolver may connect to malicious IPs, leading to traffic interception or MitM attacks.","format":"markdown","source":"ghsa"}],"published":"2026-06-08T23:02:05.000Z","modified":"2026-09-10T03:51:09.874Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-330","CWE-340"],"affected":[{"ranges":[{"version":">= 4.2.0.Final, < 4.2.15.Final","status":"affected"},{"version":"< 4.1.135.Final","status":"affected"}],"vendor":"netty","product":"netty","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.2.0.Final","status":"affected","fixed":"4.2.15.Final"}],"ecosystem":"Maven","package":"io.netty:netty-resolver-dns","purl":"pkg:maven/io.netty/netty-resolver-dns","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.1.135.Final"}],"ecosystem":"Maven","package":"io.netty:netty-resolver-dns","purl":"pkg:maven/io.netty/netty-resolver-dns","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.1.135"},{"status":"affected","introduced":"4.2.0","fixed":"4.2.15"}],"vendor":"netty","product":"netty","cpe":"cpe:2.3:a:netty:netty:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/netty/netty/security/advisories/GHSA-xmv7-r254-6q78","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/netty/netty/releases/tag/netty-4.1.135.Final","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/netty/netty/releases/tag/netty-4.2.15.Final","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45673","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/netty/netty","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-12T16:05:23.161Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45673","url":"https://www.cve.org/CVERecord?id=CVE-2026-45673","licence":"CVE Terms of Use","modified":"2026-06-12T16:05:32.064Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xmv7-r254-6q78","url":"https://github.com/advisories/GHSA-xmv7-r254-6q78","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:09.874Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45673","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45673","licence":"Public domain","modified":"2026-06-17T10:52:27.190Z"}],"updatedAt":"2026-11-25T22:59:24.510Z","epss":{"score":0.0032,"percentile":0.26973,"date":"2026-12-02T12:00:21.000Z"}}