CVE-2025-59152 (CNNVD-202510-803)

HIGH
中文标题:
Litestar 安全漏洞
英文标题:
X-Forwarded-For Header Spoofing Bypasses Litestar Rate Limiting
CVSS分数: 7.5
发布时间: 2025-10-06 15:23:12
漏洞类型: 其他
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

Litestar是Litestar开源的一个强大、灵活但固执己见的 ASGI 框架。 Litestar 2.17.0版本存在安全漏洞,该漏洞源于无条件信任X-Forwarded-For标头,可能导致绕过速率限制。

英文描述:

Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. In version 2.17.0, rate limits can be completely bypassed by manipulating the X-Forwarded-For header. This renders IP-based rate limiting ineffective against determined attackers. Litestar's RateLimitMiddleware uses `cache_key_from_request()` to generate cache keys for rate limiting. When an X-Forwarded-For header is present, the middleware trusts it unconditionally and uses its value as part of the client identifier. Since clients can set arbitrary X-Forwarded-For values, each different spoofed IP creates a separate rate limit bucket. An attacker can rotate through different header values to avoid hitting any single bucket's limit. This affects any Litestar application using RateLimitMiddleware with default settings, which likely includes most applications that implement rate limiting. Version 2.18.0 contains a patch for the vulnerability.

CWE类型:
CWE-807
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
litestar-org litestar = 2.17.0 - - cpe:2.3:a:litestar-org:litestar:=_2.17.0:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
https://github.com/litestar-org/litestar/security/advisories/GHSA-hm36-ffrh-c77c x_refsource_CONFIRM
cve.org
访问
https://github.com/litestar-org/litestar/commit/42a89e043e50b515f8548a93954fe143f63cf9fb x_refsource_MISC
cve.org
访问
https://github.com/litestar-org/litestar/blob/26f20ac6c52de2b4bf81161f7560c8bb4af6f382/litestar/middleware/rate_limit.py#L127 x_refsource_MISC
cve.org
访问
CVSS评分详情
3.1 (cna)
HIGH
7.5
CVSS向量: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
机密性
NONE
完整性
NONE
可用性
HIGH
时间信息
发布时间:
2025-10-06 15:23:12
修改时间:
2025-10-06 15:35:41
创建时间:
2025-11-11 15:40:46
更新时间:
2025-11-11 16:00:21
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2025-59152 2025-11-11 15:23:31 2025-11-11 07:40:46
NVD nvd_CVE-2025-59152 2025-11-11 15:01:05 2025-11-11 07:48:33
CNNVD cnnvd_CNNVD-202510-803 2025-11-11 15:12:28 2025-11-11 08:00:21
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 16:00:21
vulnerability_type: 未提取 → 其他; cnnvd_id: 未提取 → CNNVD-202510-803; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 其他
  • cnnvd_id: 未提取 -> CNNVD-202510-803
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:48:33
data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • data_sources: ['cve'] -> ['cve', 'nvd']