Spring Security InetAddressMatchers Incomplete Internal Network Classification

LOW | AUGUST 20, 2026 | CVE-2026-59277

Description

Spring Security's InetAddressMatchers utility provides matchInternal() and matchExternal() builders for constructing an InetAddressMatcher that classifies a given IP address as belonging to an internal (private) or external (public) network.

The internal address classification did not recognize the IPv4 and IPv6 "any local" addresses (0.0.0.0 and ::) as internal. As a result, matchExternal() incorrectly classified these addresses as external, and matchInternal() failed to classify them as internal.

Your application may be affected if the following are true:

  • You use InetAddressMatchers.matchInternal() or InetAddressMatchers.matchExternal() (directly or via a custom InetAddressMatcher built on top of them), and
  • You rely on that classification to make an access control decision that should treat 0.0.0.0 or :: as an internal address

In that case, an address of 0.0.0.0 or ::, which is typically routed to the local host, could bypass a network-based access control check intended to restrict or block internal network access.

Affected Spring Products and Versions

Spring Security:

  • 7.1.0 - 7.1.0

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
7.1.1OSS
7.1.0.1Enterprise Support Only

No further mitigation steps are necessary.

History

  • 2026-08-20: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all