CVE-2025-61780 (CNNVD-202510-1428)

MEDIUM
中文标题:
Rack 安全漏洞
英文标题:
Rack has Possible Information Disclosure Vulnerability
CVSS分数: 5.8
发布时间: 2025-10-10 16:53:57
漏洞类型: 其他
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

Rack是Rack开源的一个模块化的Ruby web服务器界面。 Rack 2.2.20之前版本、3.1.18之前版本和3.2.3之前版本存在安全漏洞,该漏洞源于Rack::Sendfile在处理特制标头时可能绕过代理访问限制,导致信息泄露。

英文描述:

Rack is a modular Ruby web server interface. Prior to versions 2.2.20, 3.1.18, and 3.2.3, a possible information disclosure vulnerability existed in `Rack::Sendfile` when running behind a proxy that supports `x-sendfile` headers (such as Nginx). Specially crafted headers could cause `Rack::Sendfile` to miscommunicate with the proxy and trigger unintended internal requests, potentially bypassing proxy-level access restrictions. When `Rack::Sendfile` received untrusted `x-sendfile-type` or `x-accel-mapping` headers from a client, it would interpret them as proxy configuration directives. This could cause the middleware to send a "redirect" response to the proxy, prompting it to reissue a new internal request that was not subject to the proxy's access controls. An attacker could exploit this by setting a crafted `x-sendfile-type: x-accel-redirect` header, setting a crafted `x-accel-mapping` header, and requesting a path that qualifies for proxy-based acceleration. Attackers could bypass proxy-enforced restrictions and access internal endpoints intended to be protected (such as administrative pages). The vulnerability did not allow arbitrary file reads but could expose sensitive application routes. This issue only affected systems meeting all of the following conditions: The application used `Rack::Sendfile` with a proxy that supports `x-accel-redirect` (e.g., Nginx); the proxy did **not** always set or remove the `x-sendfile-type` and `x-accel-mapping` headers; and the application exposed an endpoint that returned a body responding to `.to_path`. Users should upgrade to Rack versions 2.2.20, 3.1.18, or 3.2.3, which require explicit configuration to enable `x-accel-redirect`. Alternatively, configure the proxy to always set or strip the header, or in Rails applications, disable sendfile completely.

CWE类型:
CWE-441 CWE-913 CWE-200
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
rack rack < 2.2.20 - - cpe:2.3:a:rack:rack:<_2.2.20:*:*:*:*:*:*:*
rack rack >= 3.0, < 3.1.18 - - cpe:2.3:a:rack:rack:>=_3.0,_<_3.1.18:*:*:*:*:*:*:*
rack rack >= 3.2, < 3.2.3 - - cpe:2.3:a:rack:rack:>=_3.2,_<_3.2.3:*:*:*:*:*:*:*
rack rack * - - cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
https://github.com/rack/rack/security/advisories/GHSA-r657-rxjc-j557 x_refsource_CONFIRM
cve.org
访问
https://github.com/rack/rack/commit/57277b7741581fa827472c5c666f6e6a33abd784 x_refsource_MISC
cve.org
访问
https://github.com/rack/rack/commit/7e69f65eefe9cd2868df9f9f3b0977b86f93523a x_refsource_MISC
cve.org
访问
https://github.com/rack/rack/commit/fba2c8bc63eb787ff4b19bc612d315fda6126d85 x_refsource_MISC
cve.org
访问
CVSS评分详情
3.1 (cna)
MEDIUM
5.8
CVSS向量: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
机密性
LOW
完整性
NONE
可用性
NONE
时间信息
发布时间:
2025-10-10 16:53:57
修改时间:
2025-10-10 20:35:26
创建时间:
2025-11-11 15:40:48
更新时间:
2025-11-11 16:00:16
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2025-61780 2025-11-11 15:23:33 2025-11-11 07:40:48
NVD nvd_CVE-2025-61780 2025-11-11 15:01:05 2025-11-11 07:48:35
CNNVD cnnvd_CNNVD-202510-1428 2025-11-11 15:12:28 2025-11-11 08:00:16
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 16:00:16
vulnerability_type: 未提取 → 其他; cnnvd_id: 未提取 → CNNVD-202510-1428; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 其他
  • cnnvd_id: 未提取 -> CNNVD-202510-1428
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:48:35
affected_products_count: 3 → 4; data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • affected_products_count: 3 -> 4
  • data_sources: ['cve'] -> ['cve', 'nvd']