CVE-2025-50460
MS SWIFT Remote Code Execution via unsafe PyYAML deserialization
Reported by mitre · Published August 1, 2025
ms-swift is fixed in 3.6.3 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ms-swift | PyPI | 3.6.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| PyPI | ms-swift | 0 |
Timeline
- Jul 31, 2025 CVE Published
- Aug 1, 2025 Coalition ESS Score (10 in total, the first dated here)
- Aug 2, 2025 EPSS Score (30 in total, the first dated here)
- Dec 11, 2025 CVE Updated
- Mar 10, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-50460
vulnetix vdb fixes CVE-2025-50460
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-50460/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-50460 advisory
- https://github.com/advisories/GHSA-fm6c-f59h-7mmg advisory
- https://github.com/modelscope/ms-swift/security/advisories/GHSA-fm6c-f59h-7mmg url
- https://github.com/modelscope/ms-swift/pull/5174 patch
- https://github.com/modelscope/ms-swift/commit/b3418ed9b050dc079553c275c5ed14cfb2b66cf7 patch