CVE-2025-50460
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
ms-swiftPyPI | <= 3.6.3 | — |
Affected products
2- Range: <= 3.6.3
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-6757-jp84-gxfxnvdADVISORY
- github.com/advisories/GHSA-fm6c-f59h-7mmgghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-50460ghsaADVISORY
- github.com/modelscope/ms-swift/blob/main/tests/run.pynvdWEB
- github.com/modelscope/ms-swift/commit/b3418ed9b050dc079553c275c5ed14cfb2b66cf7ghsaWEB
- github.com/modelscope/ms-swift/pull/5174ghsaWEB
- github.com/modelscope/ms-swift/security/advisories/GHSA-fm6c-f59h-7mmgghsaWEB
News mentions
0No linked articles in our index yet.