CVE-2025-50460

CRITICAL

ms-swift 3.3.0 - Remote Code Execution via Unsafe YAML Deserialization

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2025-50460. PoCs published by Anchor0221.

AI-analyzed exploit summary The repository provides a detailed technical analysis of CVE-2025-50460, a remote code execution vulnerability in modelscope/ms-swift due to unsafe PyYAML deserialization. It includes a proof-of-concept YAML payload and mitigation steps.

Description

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.

Exploits (1)

nomisec WRITEUP
by Anchor0221 · poc
https://github.com/Anchor0221/CVE-2025-50460

The repository provides a detailed technical analysis of CVE-2025-50460, a remote code execution vulnerability in modelscope/ms-swift due to unsafe PyYAML deserialization. It includes a proof-of-concept YAML payload and mitigation steps.

Classification
Writeup 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: modelscope/ms-swift version 3.3.0
No auth needed
Prerequisites: Control over the YAML configuration file passed to the --run_config parameter
devstral-2 · analyzed Feb 18, 2026 Full analysis →

Scores

CVSS v3 9.8
EPSS 0.0709
EPSS Percentile 91.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-502
Status published
Products (1)
pypi/ms-swift 0PyPI
Published Aug 01, 2025
Tracked Since Feb 18, 2026