CVE-2025-50472
Last modified
CVE-2025-50472 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. The modelscope/ms-swift library thru 2.6.1 is vulnerable to arbitrary code execution through deserialization of untrusted data within the `load_model_meta()` function of the `ModelFileSystemCache()` class. Attackers can execute arbitrary code and commands by crafting a malicious serialized `.mdl` payload, exploiting the use of `pickle.load()` on data from potentially untrusted sources. EPSS estimates a 1.18% chance of exploitation in the next 30 days.
Description
The modelscope/ms-swift library thru 2.6.1 is vulnerable to arbitrary code execution through deserialization of untrusted data within the `load_model_meta()` function of the `ModelFileSystemCache()` class. Attackers can execute arbitrary code and commands by crafting a malicious serialized `.mdl` payload, exploiting the use of `pickle.load()` on data from potentially untrusted sources. This vulnerability allows for remote code execution (RCE) by deceiving victims into loading a seemingly harmless checkpoint during a normal training process, thereby enabling attackers to execute arbitrary code on the targeted machine. Note that the payload file is a hidden file, making it difficult for the victim to detect tampering. More importantly, during the model training process, after the `.mdl` file is loaded and executes arbitrary code, the normal training process remains unaffected'meaning the user remains unaware of the arbitrary code execution.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-50472?
How severe is CVE-2025-50472?
How do I fix CVE-2025-50472?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-50464A buffer overflow vulnerability exists in the upload.cgi mod…6.5
- CVE-2025-50465OpenMetadata <=1.4.4 is vulnerable to SQL Injection. An atta…8.8
- CVE-2025-50466OpenMetadata <=1.4.4 is vulnerable to SQL Injection. An atta…6.5
- CVE-2025-50467OpenMetadata <=1.4.4 is vulnerable to SQL Injection. An atta…6.5
- CVE-2025-50468OpenMetadata <=1.4.4 is vulnerable to SQL Injection. An atta…6.5
- CVE-2025-5047A maliciously crafted DGN file, when parsed through Autodesk…7.8
- CVE-2025-50475An OS command injection vulnerability exists in Russound MBX…9.8
- CVE-2025-50477A URL redirection in lbry-desktop v0.53.9 allows attackers t…5.4
- CVE-2025-5048A maliciously crafted DGN file, when linked or imported into…7.8
- CVE-2025-50481A cross-site scripting (XSS) vulnerability in the component …4.8
- CVE-2025-50484Improper session invalidation in the component /crm/change-p…7.1
- CVE-2025-50485Improper session invalidation in the component /crm/change-p…7.1
Are you affected by CVE-2025-50472?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
