← Java / Spring · 目次

JAVA-038 / 上級

Spring Cloud Gateway の SpEL ベース SSRF・RCE(CVE-2022-22947)

A03:2021 Injection · CWE-917 Expression Language Injection / CWE-94

なぜ問題になるのか?

Spring Cloud Gateway Actuator のルート生成 API が SpEL を許可し、任意コード実行につながります。

修正方法

yaml
management.endpoints.web.exposure.exclude: gateway
# Spring Cloud Gateway 3.1.1 / 3.0.7 以上を使用

参考資料