Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2025-50460: Unsafe PyYAML deserialization RCE in ms-swift tests/run.py

Published Aug 1, 2025 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS2.9%87th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2025-50460CWE-502 · Deserialization of Untrusted Data

CVE-2025-50460 is a remote code execution vulnerability in ms-swift version 3.3.0 caused by unsafe deserialization in tests/run.py. The vulnerable code uses yaml.load() from PyYAML 5.3.1 to parse attacker-controlled YAML supplied via the --run_config parameter. Because yaml.load() can instantiate arbitrary Python objects during deserialization, a crafted YAML document can trigger execution of arbitrary Python code, including commands invoked through mechanisms such as os.system(). Successful exploitation occurs at deserialization time when the malicious YAML file is loaded, potentially resulting in full compromise of the host running the script.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows arbitrary code execution in the security context of the user running the vulnerable ms-swift component. This can lead to full system compromise, including execution of shell commands, installation of additional payloads, data theft, modification or destruction of files, and use of the affected host as a pivot for further activity.

Mitigation

If you can’t patch tonight, do this now.

Do not pass untrusted or externally supplied YAML files to the --run_config parameter. Restrict who can modify or provide configuration files, validate configuration provenance, and run the script with least privilege to reduce impact. Where immediate code changes are not possible, isolate execution in a constrained environment and avoid using vulnerable PyYAML deserialization paths on untrusted input.

Remediation

Patch, then assume compromise.

Upgrade PyYAML to version 5.4 or later and replace yaml.load() with yaml.safe_load() in tests/run.py or equivalent parsing paths so that untrusted YAML is not deserialized into arbitrary Python objects. Review all YAML parsing in the project for similar unsafe loader usage and ensure only trusted configuration files are accepted where full object deserialization is required.

Public exploits

Exploits

No validated public exploits yet. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
Every candidate exploit was rejected by Mallory's analysis.
FAQ

Frequently asked questions

Is CVE-2025-50460 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2025-50460 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2025-50460?
Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2025-50460.
Is there a patch for CVE-2025-50460?
Upgrade PyYAML to version 5.4 or later and replace yaml.load() with yaml.safe_load() in tests/run.py or equivalent parsing paths so that untrusted YAML is not deserialized into arbitrary Python objects. Review all YAML parsing in the project for similar unsafe loader usage and ensure only trusted configuration files are accepted where full object deserialization is required.
How severe is CVE-2025-50460?
CVE-2025-50460 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 2.9% (87th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

4 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

View more in app →

No news coverage yet. Advisories and community discussion only.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity4Community discussion across Reddit, Mastodon, and other social sources.