{"id":"CVE-2025-50460","aliases":[],"url":"https://o3.security/vulnerability/CVE-2025-50460","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…","details":"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.","published":"2025-08-01T16:15:41.600","modified":"2026-06-17T09:35:04.847","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[],"fix":null,"references":[{"type":"WEB","url":"https://github.com/Anchor0221/CVE-2025-50460"},{"type":"WEB","url":"https://github.com/advisories/GHSA-6757-jp84-gxfx"},{"type":"WEB","url":"https://github.com/modelscope/ms-swift"},{"type":"WEB","url":"https://github.com/modelscope/ms-swift/blob/main/tests/run.py#L420"},{"type":"WEB","url":"https://github.com/Anchor0221/CVE-2025-50460"}],"provenance":{"sources":["OSV.dev","NVD","FIRST.org (EPSS)"],"lastVerified":"2026-06-17T09:35:04.847"}}