ADVISORIES

Vulnerability

CVE-2025-50460

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.

2 advisories report this vulnerability, across 1 ecosystem.

Critical severity PyPI 2

Advisories

  • GHSA-fm6c-f59h-7mmg

    MS SWIFT Remote Code Execution via unsafe PyYAML deserialization

    Low CVE-2025-50460 PyPI Updated 7 July 2026
  • PYSEC-2026-1683

    MS SWIFT Remote Code Execution via unsafe PyYAML deserialization

    CVE-2025-50460 PyPI Updated 7 July 2026

References