Spring Cloud Gateway、グローバルキャッシュで別ルートの応答が漏えいする脆弱性
Summary
Spring Cloud Gateway のグローバル LocalResponseCache フィルターで、ルートが異なる同じURIのリクエスト間で応答が取り違えられ、制限付きルートの応答が公開ルートの利用者に返される脆弱性が公表されました。影響は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です。グローバルキャッシュを有効にし、同じURIを複数ルートで処理している環境では、早めに修正版へ更新してください。
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 フィルターで、ルートが異なる同じURIのリクエスト間で応答が取り違えられ、制限付きルートの応答が公開ルートの利用者に返される脆弱性が公表されました。影響は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です。グローバルキャッシュを有効にし、同じURIを複数ルートで処理している環境では、早めに修正版へ更新してください。
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 global LocalResponseCache filter uses a single cache shared by every route that does not configure the route-level LocalResponseCache filter. The cache key is built from the request URI, the Authorization header, the request cookies, and any request headers named in the response's Vary header. The route that handled the request is not part of the key.
When routes match the same request URI but are selected by different predicates (for example RemoteAddr , Host , Header , Cookie , Query , or custom predicates) and forward to different upstreams, a response cached for one route can be returned to a caller that matches only another route. For example, a response cached for a restricted route can be served to a caller that matches only a public route, without that request reaching either upstream. An unauthenticated attacker can exploit this to read responses that were meant for a different audience.
Applications are affected only if the global LocalResponseCache is enabled and at least two routes that use it match the same request URI but are separated by predicates that do not influence the cache key. Routes that configure the route-level LocalResponseCache filter use their own per-route cache and are not affected.
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