GHSA-3qp7-7mw8-wx86
Netty has an IPv6 Subnet Filter Bypass via Incorrect Comparator Masking
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Maven | io.netty:netty-handler | >= 4.2.0.Final, < 4.2.15.Final | 4.2.15.Final |
| Maven | io.netty:netty-handler | < 4.1.135.Final | 4.1.135.Final |
Details
As written in the advisory (Markdown source, shown as plain text).
### 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.
References
External links from the advisory. They lead to third-party sites.