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

Ruby on Rails Action View 目录遍历(CVE-2016-0752)

CVE-2016-0752 别名:GHSA-XRR4-P6FQ-HJG7
CVSS 7.5 / 3.1 EPSS 95.5% CISA KEV 在野利用 公开 PoC · 2
综合风险84/ 100
CVSS7.5高危
EPSS95.5%30 天利用概率
机构收录时间2016-02-16更新 2026-12-03

研判简报

概述

CVE-2016-0752 是 Ruby on Rails 的 Action View 组件中的目录遍历漏洞。当应用不受限制地使用 render 方法,且传入的 pathname 含有 ..(点号点号)时,远程攻击者可读取任意文件。该漏洞已于 2022-03-25 被 CISA KEV 收录,说明存在实际在野利用;EPSS 30 天利用概率高达 95.5%(百分位 99.9%),对仍运行旧版 Rails 的团队风险很高。安全研究员应关注任何对外暴露、且动态向 render 传入用户可控路径的 Rails 应用。

严重性

CVSS 3.1 评分 7.5(high),综合风险分 86.11/100;EPSS 30 天利用概率 95.5%(百分位 99.9%,日期 2026-11-24)。攻击面为可通过网络访问、且 render 路径参数受用户影响的应用端点,利用门槛低(CISA SSVC automatable=yes)。

利用状态

截至核查日期 2026-11-24:CISA KEV 已收录(2022-03-25),KEV 要求动作是“Apply updates per vendor instructions.”,期限 2022-04-15;Exploit-DB/公开 PoC 记录 1 条(参考链接含 Exploit-DB 40561);CISA SSVC 判定 exploitation=active、technical_impact=partial。勒索软件关联与 Nuclei 模板状态:材料未给出。

受影响产品

Ruby on Rails 的 Action View 组件。受影响版本区间:3.2.22.1 之前、4.0.x 与 4.1.x 在 4.1.14.1 之前、4.2.x 在 4.2.5.1 之前、5.x 在 5.0.0.beta1.1 之前。部署形态与具体受影响产品条目:材料未给出(官方记录受影响字段为 n/a n/a)。别名编号 GHSA-XRR4-P6FQ-HJG7,CWE-22。

修复版本

官方修复版本为上述各分支的边界版本:3.2.22.1、4.1.14.1、4.2.5.1、5.0.0.beta1.1(即升级到不低于对应分支的修复版本)。补丁细节与厂商公告原文:材料未给出。

缓解措施

无法立即升级时,应避免将用户可控输入直接传入 render 的路径参数,对路径做白名单校验并拒绝含 .. 的输入;限制应用进程可读文件范围(最小权限运行);在边界设备上对可疑路径遍历请求进行检测与阻断。厂商层面的替代缓解指引:材料未给出。

响应步骤

  1. 盘点所有 Rails 实例版本,对照 3.2.22.1 / 4.1.14.1 / 4.2.5.1 / 5.0.0.beta1.1 边界确认是否受影响。
  2. 检索代码中 render 调用,标记路径参数可由请求参数、header 或文件名影响的点位。
  3. 对命中点位加路径白名单与 .. 过滤,或改为固定模板/符号渲染。
  4. 按厂商说明升级到对应修复版本,并验证升级后渲染行为。
  5. 排查历史访问日志中带 .. 的路径请求,评估是否已发生任意文件读取(对应 ATT&CK T1083、T1005)。
  6. 因已列入 KEV,按期限要求跟踪修复闭环并留存记录。

参考来源

  1. https://nvd.nist.gov/vuln/detail/CVE-2016-0752kev
  2. https://www.exploit-db.com/exploits/40561exploit,exploitdb
  3. https://www.exploit-db.com/exploits/40561/exploit,x_refsource_EXPLOIT-DB,exploit,x_refsource_EXPLOIT-DB,x_transferred,advi
  4. http://lists.opensuse.org/opensuse-updates/2016-02/msg00043.htmlvendor-advisory,x_refsource_SUSE,vendor-advisory,x_refsource_SUSE,x_transferred,
  5. http://lists.opensuse.org/opensuse-updates/2016-02/msg00034.htmlvendor-advisory,x_refsource_SUSE,vendor-advisory,x_refsource_SUSE,x_transferred,
  6. http://www.openwall.com/lists/oss-security/2016/01/25/13mailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  7. http://lists.fedoraproject.org/pipermail/package-announce/2016-February/178069.htmlvendor-advisory,x_refsource_FEDORA,vendor-advisory,x_refsource_FEDORA,x_transfer
  8. http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.htmlvendor-advisory,x_refsource_SUSE,vendor-advisory,x_refsource_SUSE,x_transferred,
  9. http://www.securityfocus.com/bid/81801vdb-entry,x_refsource_BID,vdb-entry,x_refsource_BID,x_transferred,advisory,euvd
  10. http://www.securitytracker.com/id/1034816vdb-entry,x_refsource_SECTRACK,vdb-entry,x_refsource_SECTRACK,x_transferred,advi
  11. http://lists.fedoraproject.org/pipermail/package-announce/2016-February/178044.htmlvendor-advisory,x_refsource_FEDORA,vendor-advisory,x_refsource_FEDORA,x_transfer
  12. https://groups.google.com/forum/message/raw?msg=ruby-security-ann/335P1DcLG00/JXcBnTtZEgAJmailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,advi
  13. http://www.debian.org/security/2016/dsa-3464vendor-advisory,x_refsource_DEBIAN,vendor-advisory,x_refsource_DEBIAN,x_transfer
  14. http://rhn.redhat.com/errata/RHSA-2016-0296.htmlvendor-advisory,x_refsource_REDHAT,vendor-advisory,x_refsource_REDHAT,x_transfer
  15. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2016-0752government-resource
  16. https://github.com/rapid7/metasploit-framework/tree/master/modules/exploit_multi/http/rails_dynamic_render_code_execexploit,metasploit