CVE Catalog

CVE-2026-59333

HighCVSS 7.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.32%

27th percentile - higher than 27% of all known CVEs

Summary

Spring Security's IP address matching support, including IpAddressMatcher, IpAddressServerWebExchangeMatcher, and the InetAddressMatchers factory introduced in 7.1, compared only the leading bytes of remote and configured addresses without first confirming they belong to the same address family. Because IPv4 and IPv6 addresses have different byte lengths, a remote address in one family could be reported as matching a CIDR range in the other family. This may allow an attacker to bypass IP-based access-control rules.

Risk Assessment

An attacker connecting from an address family the administrator did not intend to permit may satisfy an IP-based access-control rule and gain unauthorized access. This affects applications using these matchers to restrict access, e.g., via hasIpAddress() or address lists.

Recommendation

Update Spring Security to a version containing the fix. Until then, consider additional access-control layers independent of IP address matching.

Other vulnerabilities in Spring Security

See all
Original NVD description (English source)

Spring Security's IP address matching support, including IpAddressMatcher , IpAddressServerWebExchangeMatcher , and the InetAddressMatchers factory introduced in 7.1, matches a remote address against a configured IP address or CIDR range. When comparing addresses, the matcher compared only the leading bytes of the remote and configured addresses without first confirming that the two addresses belong to the same address family. Because IPv4 and IPv6 addresses have different byte lengths, a remote address in one family whose leading bytes happened to coincide with a configured CIDR range in the other family could be reported as a match even though the families differ. Preconditions : The application uses IpAddressMatcher , IpAddressServerWebExchangeMatcher , or InetAddressMatchers (for example via hasIpAddress() , an internal/external network check, or an include/exclude address list) to restrict access based on the remote IP address, and the application's network stack can present a remote address in an address family other than the one used in the matcher's configured address or CIDR range (for example through IPv4-mapped IPv6 addresses, a dual-stack listener, or a proxy that translates between families). An attacker connecting from an address family the application administrator did not intend to permit may be able to satisfy an IP-based access-control rule and bypass the restriction.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS