Spring Securityに、IPアドレス制限を回避される脆弱性
Summary
Spring SecurityのIPアドレス照合で、IPv4とIPv6の違いを確かめずに比べるため、許可していない側の経路からアクセス制限を回避される可能性があります。影響を受けるのは7.1.0以上7.1.2.1未満と7.1.3未満の版で、修正版は7.1.2.1と7.1.3です。IPアドレスで制限をかけている場合は、早めに修正版へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Spring SecurityのIPアドレス照合で、IPv4とIPv6の違いを確かめずに比べるため、許可していない側の経路からアクセス制限を回避される可能性があります。影響を受けるのは7.1.0以上7.1.2.1未満と7.1.3未満の版で、修正版は7.1.2.1と7.1.3です。IPアドレスで制限をかけている場合は、早めに修正版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| SpringSpring Security |
≥ 7.1.0, < 7.1.2.1→ 7.1.2.1 ≥ 7.1.0, < 7.1.3→ 7.1.3 |
7.1.2.1 7.1.3 |
Original description The description as published by the 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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web security@vmware.com
- web security@vmware.com
- web nvd.nist.gov
- web github.com