首页 AI 资讯 技术前沿 KnowSafe 安全预警:Spring Cloud Gateway 代码执行漏洞(CVE-2025-41243)
技术前沿

KnowSafe 安全预警:Spring Cloud Gateway 代码执行漏洞(CVE-2025-41243)

KnowSafe 安全预警:KnowSafe 安全团队监测到编号 AVD-2025-41243 的安全漏洞(危害等级:高危)已公开披露,相关用户应尽快排查并完成修复。

漏洞介绍

Spring Cloud Gateway 是 Spring 生态的轻量级、高性能网关,替代 Netflix Zuul 2,用于统一路由、过滤、限流、鉴权等边缘服务处理。2025年9月,官方发布 CVE-2025-41243 Spring Cloud Gateway Server WebFlux 代码执行漏洞,当攻击者可接触到Spring Boot actuator routes 路由时,可构造恶意请求修改相关环境变量,造成远程代码执行。该漏洞为 CVE-2022-22947 绕过,官方已发布安全更新,建议升级至最新版本。

受影响版本范围

4.3.0 <= Spring Cloud Gateway < 4.3.1

4.2.0 <= Spring Cloud Gateway < 4.2.5

4.1.0 <= Spring Cloud Gateway < 4.1.11

4.0.0 <= Spring Cloud Gateway < 4.1.11

3.1.0 <= Spring Cloud Gateway < 3.1.11

其余更早或者不受支撑的版本,同样受影响

安全版本

Spring Cloud Gateway 4.3.1

Spring Cloud Gateway 4.2.5

Spring Cloud Gateway 4.1.11

Spring Cloud Gateway 3.1.11

影响范围

官方公告未列出受影响软件明细,请结合自身业务使用的组件版本进行排查。

解决方案

1、修复方案:升级Spring Cloud Gateway 至安全版本

2、缓解方案:关闭 Spring Cloud Gateway路由,将 gateway值从 management.endpoints.web.exposure.include配置中删除,或者设置management.endpoint.gateway.enabled为 false,禁止外界直接访问 spring actuator routes

参考信息

https://spring.io/security/cve-2025-41243

KnowSafe 将持续跟踪该漏洞的利用情况与修复进展,如需漏洞管理与应急响应支持,欢迎联系 KnowSafe 安全团队。