CVE-2025-54121 (CNNVD-202507-2710)

MEDIUM
中文标题:
Starlette 安全漏洞
英文标题:
Starlette has possible denial-of-service vector when parsing large files in multipart forms
CVSS分数: 5.3
发布时间: 2025-07-21 20:06:03
漏洞类型: 其他
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

Starlette是Encode开源的一个轻量级的 ASGI 框架/工具包。非常适合用 Python 构建异步 web 服务。 Starlette 0.47.1及之前版本存在安全漏洞,该漏洞源于对多部分表单处理不当,可能导致拒绝服务攻击。

英文描述:

Starlette is a lightweight ASGI (Asynchronous Server Gateway Interface) framework/toolkit, designed for building async web services in Python. In versions 0.47.1 and below, when parsing a multi-part form with large files (greater than the default max spool size) starlette will block the main thread to roll the file over to disk. This blocks the event thread which means the application can't accept new connections. The UploadFile code has a minor bug where instead of just checking for self._in_memory, the logic should also check if the additional bytes will cause a rollover. The vulnerability is fixed in version 0.47.2.

CWE类型:
CWE-770
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
encode starlette < 0.47.2 - - cpe:2.3:a:encode:starlette:<_0.47.2:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
https://github.com/encode/starlette/security/advisories/GHSA-2c2j-9gv5-cj73 x_refsource_CONFIRM
cve.org
访问
https://github.com/encode/starlette/commit/9f7ec2eb512fcc3fe90b43cb9dd9e1d08696bec1 x_refsource_MISC
cve.org
访问
https://github.com/encode/starlette/blob/fa5355442753f794965ae1af0f87f9fec1b9a3de/starlette/datastructures.py#L436C5-L447C14 x_refsource_MISC
cve.org
访问
https://github.com/encode/starlette/discussions/2927#discussioncomment-13721403 x_refsource_MISC
cve.org
访问
CVSS评分详情
3.1 (cna)
MEDIUM
5.3
CVSS向量: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
机密性
NONE
完整性
NONE
可用性
LOW
时间信息
发布时间:
2025-07-21 20:06:03
修改时间:
2025-07-22 19:54:24
创建时间:
2025-11-11 15:40:42
更新时间:
2025-11-11 16:00:01
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2025-54121 2025-11-11 15:23:28 2025-11-11 07:40:42
NVD nvd_CVE-2025-54121 2025-11-11 15:00:57 2025-11-11 07:48:29
CNNVD cnnvd_CNNVD-202507-2710 2025-11-11 15:12:51 2025-11-11 08:00:01
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 16:00:01
vulnerability_type: 未提取 → 其他; cnnvd_id: 未提取 → CNNVD-202507-2710; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 其他
  • cnnvd_id: 未提取 -> CNNVD-202507-2710
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:48:29
data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • data_sources: ['cve'] -> ['cve', 'nvd']