一、 漏洞 CVE-2025-50460 基础信息
漏洞信息
                                        # N/A

## 概述

ms-swift 项目 versions 3.3.0 中存在一个远程代码执行(RCE)漏洞,根源在于其测试脚本 `tests/run.py` 使用了不安全的 YAML 反序列化方法 `yaml.load()`。

## 影响版本

- **ms-swift 版本**: 3.3.0
- **PyYAML 版本**: 5.3.1

## 细节

- 漏洞出现在测试脚本 `tests/run.py` 中对 YAML 配置文件的处理逻辑。
- 程序使用了 `yaml.load()` 方法,未对 YAML 内容进行安全性限制。
- 若攻击者可控制通过 `--run_config` 参数传入的 YAML 文件内容,则可以构造恶意输入,在反序列化过程中执行任意 Python 代码。

## 影响

- 攻击者可以执行任意命令,例如调用 `os.system()`。
- 漏洞可能导致被攻击系统被完全控制。
- 危害等级高,属于典型 RCE 类型漏洞。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
N/A
来源:美国国家漏洞数据库 NVD
漏洞描述信息
A remote code execution (RCE) vulnerability exists in the ms-swift project version 3.3.0 due to unsafe deserialization in tests/run.py using yaml.load() from the PyYAML library (versions = 5.3.1). If an attacker can control the content of the YAML configuration file passed to the --run_config parameter, arbitrary code can be executed during deserialization. This can lead to full system compromise. The vulnerability is triggered when a malicious YAML file is loaded, allowing the execution of arbitrary Python commands such as os.system(). It is recommended to upgrade PyYAML to version 5.4 or higher, and to use yaml.safe_load() to mitigate the issue.
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
漏洞标题
SWIFT 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
SWIFT是ModelScope开源的一个大模型与多模态大模型微调部署框架。 SWIFT 3.3.0版本存在安全漏洞,该漏洞源于PyYAML库中yaml.load()不安全反序列化,可能导致任意代码执行。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2025-50460 的公开POC
# POC 描述 源链接 神龙链接
1 Technical Details and Exploit for CVE-2025-50460 https://github.com/Anchor0221/CVE-2025-50460 POC详情
三、漏洞 CVE-2025-50460 的情报信息
  • 标题: GitHub - modelscope/ms-swift: Use PEFT or Full-parameter to CPT/SFT/DPO/GRPO 500+ LLMs (Qwen3, Qwen3-MoE, Llama4, GLM4.5, InternLM3, DeepSeek-R1, ...) and 200+ MLLMs (Qwen2.5-VL, Qwen2.5-Omni, Qwen2-Audio, Ovis2, InternVL3, Llava, GLM4v, Phi4, ...) (AAAI 2025). -- 🔗来源链接

    标签:

    神龙速读
  • 标题: ms-swift/tests/run.py at main · modelscope/ms-swift · GitHub -- 🔗来源链接

    标签:

    神龙速读
  • 标题: Improper Input Validation in PyYAML · CVE-2020-1747 · GitHub Advisory Database · GitHub -- 🔗来源链接

    标签:

    神龙速读
  • 标题: GitHub - Anchor0221/CVE-2025-50460: Technical Details and Exploit for CVE-2025-50460 -- 🔗来源链接

    标签:

    神龙速读
  • https://nvd.nist.gov/vuln/detail/CVE-2025-50460
四、漏洞 CVE-2025-50460 的评论

暂无评论


发表评论