Skip to main content
← All vulnerabilities
CVE-2025-50460GHSA-FM6C-F59H-7MMGPYSEC-2026-1683

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

Published
Last modified
published
Not listed in CISA KEV
2 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • ms-swiftPyPI

    through 3.6.3

References 5

GitHub · modelscope/ms-swift

GitHub Advisory Database

GitHub · Anchor0221/CVE-2025-50460

GitHub · ferralon-demo/ms-swift-yaml-load-rce