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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
ferralon-demo/ms-swift-yaml-load-rce ★ 0 · Oct 7, 2026
Case study: ms-swift CVE-2025-50460 (unsafe yaml.load in tests/run.py). Demo only, not for use.
-
Anchor0221/CVE-2025-50460 ★ 0 · Jul 30, 2025
Technical Details and Exploit for CVE-2025-50460
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | ms-swift | <= 3.6.3 | — | GHSA-fm6c-f59h-7mmg |