GitHub Advisory Database
GHSA-3qp7-7mw8-wx86
Netty has an IPv6 Subnet Filter Bypass via Incorrect Comparator Masking
Details
Summary
An attacker can bypass IPv6 subnet rules due to an incorrect masking operation in IpSubnetFilterRule.compareTo(). Valid public IP addresses can bypass the restrictions.
Details
io.netty.handler.ipfilter.IpSubnetFilterRule#compareTo(java.net.InetSocketAddress) method performs a bitwise AND between the incoming IP address and the configured networkAddress, instead of the subnetMask.
Impact
Access Control Bypass. Attacker can bypass IpSubnetFilter IPv6 access controls.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | io.netty:netty-handler | From 4.2.0.Final before 4.2.15.Final (fixed in 4.2.15.Final) |
| Maven | io.netty:netty-handler | All versions before 4.1.135.Final (fixed in 4.1.135.Final) |