Spring Cloud Gateway、認証済みの応答が未認証者に見える脆弱性
Summary
Spring Cloud GatewayのLocalResponseCacheで、複数のディレクティブを含むCache-Controlの応答が誤ってキャッシュされ、未認証の攻撃者に認証済みユーザー向けの内容が返されるおそれがあります。影響は5.0.0以降5.0.4.1未満、4.3.0以降4.3.7未満、4.0.0以降4.2.11未満、5.0.0以降5.0.5未満の各版です。修正版として5.0.4.1、4.3.7、4.2.11、5.0.5が公開されているので、該当する版を使っている場合は修正版へ更新してください。LocalResponseCacheを使っていない環境は影響を受けません。
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 Cloud GatewayのLocalResponseCacheで、複数のディレクティブを含むCache-Controlの応答が誤ってキャッシュされ、未認証の攻撃者に認証済みユーザー向けの内容が返されるおそれがあります。影響は5.0.0以降5.0.4.1未満、4.3.0以降4.3.7未満、4.0.0以降4.2.11未満、5.0.0以降5.0.5未満の各版です。修正版として5.0.4.1、4.3.7、4.2.11、5.0.5が公開されているので、該当する版を使っている場合は修正版へ更新してください。LocalResponseCacheを使っていない環境は影響を受けません。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| SpringSpring Cloud Gateway |
≥ 5.0.0, < 5.0.4.1→ 5.0.4.1 ≥ 4.3.0, < 4.3.7→ 4.3.7 ≥ 4.0.0, < 4.2.11→ 4.2.11 ≥ 5.0.0, < 5.0.5→ 5.0.5 |
5.0.4.1 4.3.7 4.2.11 5.0.5 |
Original description The description as published by the source.
Spring Cloud Gateway's LocalResponseCache decides whether an upstream response may be stored by comparing each complete Cache-Control header value with the strings private and no-store , instead of parsing the comma-separated directives. A protected upstream response with a combined value, such as private, no-store or the Spring Security default no-cache, no-store, max-age=0, must-revalidate , is therefore stored in the route cache even though the upstream prohibited it. A later request can then be served that cached response without reaching the upstream, so an unauthenticated attacker can read content that was meant for an authenticated user.
Applications are affected only if LocalResponseCache is enabled on a route that forwards to an upstream that returns user-specific or otherwise private responses with a Cache-Control header containing more than one directive, and the upstream does not distinguish callers with a Vary header.
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