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 以上を使用