字号·· | 护眼
漏洞档案 · 高危

Spring Cloud Config 目录遍历(CVE-2020-5410)

CVE-2020-5410 别名:GHSA-32XF-JWMV-9HF3
CVSS 7.5 / 3.1 EPSS 95.6% CISA KEV 在野利用 公开 PoC · 3 Nuclei 模板
综合风险86/ 100
CVSS7.5高危
EPSS95.6%30 天利用概率
机构收录时间2020-06-03更新 2026-12-01

研判简报

概述

Spring Cloud Config 的 spring-cloud-config-server 模块允许应用对外提供配置文件;2.2.3 之前的 2.2.x、2.1.9 之前的 2.1.x 以及更早的不受支持版本存在缺陷:攻击者发送特制 URL 即可触发目录遍历,使服务返回任意配置文件。官方将该问题定性为目录遍历(CWE-23);Nuclei 模板则将其描述为本地文件包含(LFI),并同时标注 CWE-23、CWE-22(以官方记录为准)。危险点在于利用门槛低、无需认证,可导致敏感配置与凭据泄露。凡在互联网或较宽内网暴露 config server 的运维与安全团队都应关注。

严重性

CVSS 3.1 评分 7.5(high),向量 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N,即远程、无需认证、仅影响机密性;情报侧综合风险分 86.12/100。EPSS 30 天利用概率 95.6%、百分位 99.9%(核查日期 2026-11-24;Nuclei 模板记录为 0.95586 / 0.99872,与官方记录略有出入)。攻击面为暴露的 spring-cloud-config-server HTTP 端点。

利用状态

截至核查日期 2026-11-24:已列入 CISA KEV(收录 2022-03-25,要求动作期限 2022-04-15,动作内容为按厂商说明更新);存在公开 Nuclei 检测模板 http/cves/2020/CVE-2020-5410.yaml;Exploit-DB/公开 PoC 记录 3 条;Metasploit 提供辅助扫描模块 auxiliary_scanner/http/springcloud_directory_traversal。CISA SSVC 评估:automatable=yes、exploitation=active、technical_impact=partial。是否与勒索软件活动关联,材料未给出。

受影响产品

受影响版本区间:Spring Cloud Config >=2.1 <2.1.9;>=2.2 <2.2.3;以及更早的不受支持版本。涉及组件为 spring-cloud-config-server 模块(CPE 指向 vmware:spring_cloud_config)。具体部署形态与默认配置细节材料未给出;官方说明该服务应仅在内网对必要客户端开放,并用 Spring Security 加固。

修复版本

官方修复版本:Spring Cloud Config 2.1.9 与 2.2.3。其他补丁或缓解补丁材料未给出。

缓解措施

官方说明除升级外无其他必需的缓解步骤,但建议:spring-cloud-config-server 仅对确有需要的内网客户端开放,并使用 Spring Security 保护,从而把暴露面限制在内网可达且通过认证的用户范围内。若无法立即升级,材料未给出其他替代技术控制。

响应步骤

  1. 资产排查:清点所有 spring-cloud-config-server 实例及其版本,标记落在受影响区间的资产。
  2. 升级处置:升级至 2.1.9 / 2.2.3 或更高版本;旧分支不再受支持的应先迁移。
  3. 收敛暴露面:确认端点是否可自互联网访问,改为仅内网可达并启用 Spring Security 认证。
  4. 验证检测:用 Nuclei 模板或 Metasploit 扫描模块对资产做非破坏性验证(模板请求路径含 ..%252F 多级穿越与 #foo/development 后缀,命中特征为响应体出现 root:.*:0:0:)。
  5. 日志回溯:按上述编码穿越特征检索访问日志,评估是否已被探测或利用;具体日志字段材料未给出。
  6. 泄露评估:因已在 KEV 且 exploitation=active,对被读取风险范围内的配置内容(含凭据)按事件响应流程轮换与复核。

参考来源

  1. https://nvd.nist.gov/vuln/detail/CVE-2020-5410kev
  2. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-5410.yamlexploit,nuclei
  3. https://tanzu.vmware.com/security/cve-2020-5410x_refsource_CONFIRM,x_refsource_CONFIRM,x_transferred,advisory,euvd
  4. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-5410government-resource
  5. https://github.com/rapid7/metasploit-framework/tree/master/modules/auxiliary_scanner/http/springcloud_directory_traversalexploit,metasploit
  6. https://blog.checkpoint.com/security/december-2021s-most-wanted-malware-trickbot-emotet-and-the-log4j-plague/kev
  7. https://euvd.enisa.europa.eu/enisa/EUVD-2020-0451kev
  8. https://www.cisa.gov/known-exploited-vulnerabilities-catalogkev
  9. https://blog.checkpoint.com/security/april-2022s-most-wanted-malware-a-shake-up-in-the-index-but-emotet-is-still-on-top/kev
  10. https://blog.checkpoint.com/security/april-2024s-most-wanted-malware-surge-in-androxgh0st-attacks-and-the-decline-of-lockbit3/kev
  11. https://blog.checkpoint.com/research/may-2024s-most-wanted-malware-phorpiex-botnet-unleashes-phishing-frenzy-while-lockbit3-dominates-once-againkev
  12. https://blog.checkpoint.com/research/july-2024s-most-wanted-malware-remcos-and-ransomhub-run-rampant/kev
  13. https://blog.checkpoint.com/research/september-2024s-most-wanted-malware-notable-ai-driven-techniques-and-persistent-ransomhub-threats/kev
  14. https://blog.checkpoint.com/security/october-2024s-most-wanted-malware-infostealers-surge-as-cyber-criminals-leverage-innovative-attack-vectors/kev
  15. https://vulncheck.com/xdb/788a7241c9c9exploit,vulncheck_xdb
  16. https://github.com/thelostworldFree/SpringCloud-Config-CVE-2020-5410poc,github