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

Ruby on Rails 目录遍历(CVE-2014-0130)

CVE-2014-0130 别名:GHSA-6X85-J5J2-27JX
CVSS 7.5 / 3.1 EPSS 53.7% CISA KEV 在野利用 公开 PoC · 1
综合风险73/ 100
CVSS7.5高危
EPSS53.7%30 天利用概率
机构收录时间2014-05-07更新 2026-12-03

研判简报

概述

Ruby on Rails 的 actionpack/lib/abstract_controller/base.rb 在隐式渲染实现中存在目录遍历漏洞。当启用特定的路由 globbing 配置时,远程攻击者可通过构造请求读取应用可访问的任意本地文件。该漏洞已收录于 CISA KEV,说明存在实际在野利用,运行受影响 Rails 版本且使用通配路由的应用应优先排查。CWE 归类为 CWE-22,ATT&CK 映射为 T1083 文件与目录发现、T1005 本地数据采集。

严重性

CVSS 3.1 评分 7.5(high),综合风险分 72.74/100;EPSS 30 天利用概率 53.7%(百分位 99.0%,日期 2026-11-23)。攻击面为启用特定路由 globbing 配置的 Rails 应用,攻击者无需认证即可通过构造请求触发。

利用状态

CISA KEV 已收录(收录日期 2022-03-25),KEV 要求动作「Apply updates per vendor instructions.」,期限 2022-04-15。CISA SSVC 评估:automatable=no、exploitation=active、technical_impact=total。Exploit-DB/公开 PoC 记录 1 条;参考材料中的测试载荷为 site/api/%5C../%5C../%5C../%5C../%5C../{{CAT_DIR}}。Nuclei 状态材料未给出。以上核查日期为 2026-11-24。

受影响产品

Ruby on Rails:before 3.2.18、4.0.x before 4.0.5、4.1.x before 4.1.1;组件为 actionpack/lib/abstract_controller/base.rb 的隐式渲染实现,触发条件为启用特定 route globbing 配置。部署形态材料未给出。Red Hat 参考材料显示 Subscription Asset Manager 1.4(基于 Ruby on Rails)受该漏洞影响,并随 RHSA-2014:1863 一并修复。

修复版本

官方修复版本为 Rails 3.2.18、4.0.5、4.1.1(依据官方记录中的版本区间上界)。Red Hat 侧通过 RHSA-2014:1863 为 Subscription Asset Manager 1.4 提供含回溯补丁的更新包。其他发行版补丁材料未给出。

缓解措施

无法立即升级时,应核查并收紧启用通配段(globbing)的路由配置,避免隐式渲染路径暴露于不可信输入;对相关路由的请求参数做严格校验与规范化。Red Hat 参考材料仅建议先应用既有 errata 再安装更新包,未给出其他替代缓解手段;其余替代动作材料未给出。

响应步骤

  1. 盘点使用 Rails 且版本落在 before 3.2.18、4.0.x before 4.0.5、4.1.x before 4.1.1 的应用,确认是否启用 route globbing 与隐式渲染。
  2. 升级至 3.2.18 / 4.0.5 / 4.1.1 或更高;Red Hat Subscription Asset Manager 1.4 用户按 RHSA-2014:1863 升级,升级前确保既有 errata 已应用。
  3. 检索访问日志中形如 %5C../ 的编码反斜杠遍历请求(参考 PoC 载荷模式),排查是否已遭探测或利用。
  4. 对命中可疑请求的应用,检查敏感本地文件是否被异常读取,并按 T1083/T1005 视角排查文件发现与采集行为。
  5. 依据 KEV 要求跟踪修复状态,记录处置时间与版本证据。

参考来源

  1. https://nvd.nist.gov/vuln/detail/CVE-2014-0130kev
  2. http://rhn.redhat.com/errata/RHSA-2014-1863.htmlvendor-advisory,x_refsource_REDHAT,vendor-advisory,x_refsource_REDHAT,x_transfer
  3. http://matasano.com/research/AnatomyOfRailsVuln-CVE-2014-0130.pdfx_refsource_MISC,x_refsource_MISC,x_transferred,advisory,euvd
  4. https://groups.google.com/forum/message/raw?msg=rubyonrails-security/NkKc7vTW70o/NxW_PDBSG3AJmailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  5. http://www.securityfocus.com/bid/67244vdb-entry,x_refsource_BID,vdb-entry,x_refsource_BID,x_transferred,advisory,euvd
  6. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2014-0130government-resource
  7. https://blog.checkpoint.com/security/december-2021s-most-wanted-malware-trickbot-emotet-and-the-log4j-plague/kev
  8. https://euvd.enisa.europa.eu/enisa/EUVD-2017-0180kev
  9. https://www.cisa.gov/known-exploited-vulnerabilities-catalogkev
  10. https://blog.checkpoint.com/security/april-2022s-most-wanted-malware-a-shake-up-in-the-index-but-emotet-is-still-on-top/kev
  11. https://blog.checkpoint.com/security/april-2024s-most-wanted-malware-surge-in-androxgh0st-attacks-and-the-decline-of-lockbit3/kev
  12. https://blog.checkpoint.com/research/may-2024s-most-wanted-malware-phorpiex-botnet-unleashes-phishing-frenzy-while-lockbit3-dominates-once-againkev
  13. https://blog.checkpoint.com/research/july-2024s-most-wanted-malware-remcos-and-ransomhub-run-rampant/kev
  14. https://go.catonetworks.com/rs/245-RJK-441/images/Q2_24_Cato_CTRL_Threat_Report.pdfkev
  15. https://blog.checkpoint.com/research/september-2024s-most-wanted-malware-notable-ai-driven-techniques-and-persistent-ransomhub-threats/kev
  16. https://blog.checkpoint.com/security/october-2024s-most-wanted-malware-infostealers-surge-as-cyber-criminals-leverage-innovative-attack-vectors/kev