Description
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.
Published: 2026-12-02
Score: 7.4 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Dec 2026 07:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Spring Security IP Address CIDR Matching Ignores Address Family
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: vmware

Published:

Updated: 2026-12-02T07:09:08.133Z

Reserved: 2026-07-04T18:14:22.382Z

Link: CVE-2026-59333

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses

No weakness.