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, Nettys DnsResolveContext insufficiently validates the bailiwick of NS records, enabling DNS Cache Poisoning. An attacker controlling an authoritative name server for a subdomain can poison the cache for parent domains (like .co.uk). In io.netty.resolver.dns.DnsResolveContext.AuthoritativeNameServerList#add method accepts any NS record from the AUTHORITY section as long as the records name is a suffix of the questionName. Subsequently, the handleWithAdditional method caches the associated A records from the ADDITIONAL section directly into the authoritativeDnsServerCache under the parent domains key. This bypasses standard bailiwick rules, where a server authoritative for a subdomain should not be trusted to provide authoritative records for its parent. The poisoned cache is then used for all future resolutions under the parent domains key. Versions 4.1.135.Final and 4.2.15.Final patch the issue.
The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Netty | Netty | * | 4.1.135 (excluding) |
| Netty | Netty | 4.2.0 (including) | 4.2.15 (excluding) |
| Red Hat Build of Apache Camel 3.33 for Quarkus 3.33.2.SP1 | RedHat | netty-resolver-dns | * |
| Red Hat build of Quarkus 3.27.4.SP1 | RedHat | netty-resolver-dns | * |
| Red Hat build of Quarkus 3.33.2.SP1 | RedHat | netty-resolver-dns | * |