CVE-2026-59412: Spring Boot InetAddressFilter with a '0 bits' mask matches both IPv4 and IPv6 addresses
When an InetAddressFilter is has a '0 bits' mask it matches both IPv4 and IPv6 addresses. A filter of 0.0.0.0/0 should have only matched IPv4 address, likewise a filter of ::0/0 should have only matched IPv6 address.
Affected Software
Event History
Frequently Asked Questions
Which configurations are affected?
Configurations using an InetAddressFilter with a zero-bit mask are affected. This includes 0.0.0.0/0, which also matches IPv6 addresses, and ::0/0, which also matches IPv4 addresses.
What is the practical security impact of the incorrect matching?
An address-family-specific allow or deny rule using a /0 mask may apply to both IPv4 and IPv6 traffic instead of only the intended protocol family. Exposure depends on how the filter result is used to control access.
What should be reviewed while remediation is pending?
Review InetAddressFilter rules containing 0.0.0.0/0 or ::0/0 and identify any policy that relies on those masks to distinguish IPv4 from IPv6 clients. Treat such rules as matching both address families until corrected.