PT-2025-31645 · Ms-Swift+1 · Ms-Swift+1

Anchor0221

·

Published

2020-03-24

·

Updated

2025-08-18

·

CVE-2025-50460

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions ms-swift version 3.3.0
Description A remote code execution (RCE) vulnerability exists due to unsafe deserialization in tests/run.py using yaml.load() from the PyYAML library (versions = 5.3.1). An attacker controlling the YAML configuration file passed to the --run config parameter can execute arbitrary code during deserialization, potentially leading 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().
Recommendations Upgrade PyYAML to version 5.4 or higher. Use yaml.safe load() instead of yaml.load() to mitigate the issue.

Exploit

Fix

RCE

Deserialization of Untrusted Data

Weakness Enumeration

Related Identifiers

CVE-2025-50460
GHSA-6757-JP84-GXFX
GHSA-FM6C-F59H-7MMG
PYSEC-2020-96

Affected Products

Pyyaml
Ms-Swift