JAVA-038 / 高级
Spring Cloud Gateway 基于 SpEL 的 SSRF/RCE(CVE-2022-22947)
为什么存在问题?
Spring Cloud Gateway Actuator 路由创建 API 允许 SpEL,导致任意代码执行。
如何修复
yaml
management.endpoints.web.exposure.exclude: gateway
# 使用 Spring Cloud Gateway 3.1.1 / 3.0.7 及以上