Katalog CVE

CVE-2026-59333

WysokieCVSS 7.4
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.32%

Percentyl 27 - wyżej niż 27% wszystkich znanych CVE

Streszczenie

Mechanizm dopasowywania adresów IP w Spring Security, w tym IpAddressMatcher, IpAddressServerWebExchangeMatcher oraz fabryka InetAddressMatchers z wersji 7.1, porównywał jedynie wiodące bajty adresów zdalnego i skonfigurowanego, nie sprawdzając najpierw, czy należą do tej samej rodziny adresów. Ponieważ adresy IPv4 i IPv6 mają różne długości bajtów, adres zdalny z jednej rodziny mógł zostać uznany za pasujący do zakresu CIDR z drugiej rodziny. Może to pozwolić atakującemu na obejście reguł kontroli dostępu opartych na adresie IP.

Ocena ryzyka

Atakujący łączący się z rodziny adresów, której administrator nie zamierzał zezwolić, może spełnić regułę kontroli dostępu opartą na IP i uzyskać nieautoryzowany dostęp. Dotyczy to aplikacji używających tych matcherów do ograniczania dostępu, np. przez hasIpAddress() lub listy adresów.

Rekomendacja

Zaktualizuj Spring Security do wersji zawierającej poprawkę. Do czasu aktualizacji rozważ dodatkowe warstwy kontroli dostępu niezależne od dopasowywania adresów IP.

Inne podatności w Spring Security

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

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.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS