A remote code execution (RCE) vulnerability exists in the ms-swift project version 3.3.0…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-502.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | ms-swift (PyPI) | up to 3.6.3 | — | No fix listed | GHSA-fm6c-f59h-7mmg |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- ms-swift (PyPI) Vendor— Affected up to 3.6.3 Fixed in — No fix listed GHSA-fm6c-f59h-7mmg
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2025-50460
- 2026-10-03 Alias added: GHSA-fm6c-f59h-7mmg
References
Advisory 2
Other 6
- https://github.com/modelscope/ms-swift
- https://github.com/modelscope/ms-swift/blob/main/tests/run.py#L420
- https://github.com/Anchor0221/CVE-2025-50460
- https://github.com/modelscope/ms-swift/security/advisories/GHSA-fm6c-f59h-7mmg
- https://github.com/modelscope/ms-swift/pull/5174
- https://github.com/modelscope/ms-swift/commit/b3418ed9b050dc079553c275c5ed14cfb2b66cf7
Sources
- CVE-2025-50460 · CVE Program
- CVE-2025-50460 · NVD
- FIRST EPSS
- GHSA-fm6c-f59h-7mmg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences