CVE-2025-41419 MS SWIFT WEB-UI RCE Vulnerability
- Published
- Updated
- Exploit status
- No public exploit known
Description
I. Detailed Description:
This includes scenarios, screenshots, vulnerability reproduction methods. For account-related vulnerabilities, please provide test accounts. If the reproduction process is complex, you may record a video, upload it to Taopan, and attach the link.
-
Install ms-swift
pip install ms-swift -U -
Start web-ui
swift web-ui --lang en -
After startup, access through browser at http://localhost:7860/ to see the launched fine-tuning framework program
-
Fill in necessary parameters
In the LLM Training interface, fill in required parameters including Model id, Dataset Code. The --output_dir can be filled arbitrarily as it will be modified later through packet capture -
Click Begin to start training. Capture packets and modify the parameter corresponding to --output_dir
You can see the concatenated command being executed in the terminal where web-ui was started
-
Wait for the program to run (testing shows it requires at least 5 minutes), and you can observe the effect of command execution creating files
II. Vulnerability Proof (Write POC here):
/tmp/xxx'; touch /tmp/inject_success_1; #
III. Fix Solution:
- The swift.ui.llm_train.llm_train.LLMTrain#train() method should not directly concatenate parameters with commands after receiving commands from the frontend
- The swift.ui.llm_train.llm_train.LLMTrain#train_local() method should not use os.system for execution, but should be changed to subprocess.run([cmd, arg1, arg2...]) format
Author
- Discovered by: TencentAISec
- Contact: security@tencent.com
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi ms-swift(PyPI) | < 3.7.0; = 1.0.0; = 1.1.0; = 1.2.0 +82 more | 3.7.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi ms-swift(PyPI) | < 3.7.0 | 3.7.0 |
| pypi ms-swift(PyPI) | = 1.0.0 | No fix listed |
| pypi ms-swift(PyPI) | = 1.1.0 | No fix listed |
| pypi ms-swift(PyPI) | = 1.2.0 | No fix listed |
| pypi ms-swift(PyPI) | = 1.2.1 | No fix listed |
| pypi ms-swift(PyPI) | = 1.3.0 | No fix listed |
| pypi ms-swift(PyPI) | = 1.4.0 | No fix listed |
| pypi ms-swift(PyPI) | = 1.5.0 | No fix listed |
| pypi ms-swift(PyPI) | = 1.5.1 | No fix listed |
| pypi ms-swift(PyPI) | = 1.5.2 | No fix listed |
| pypi ms-swift(PyPI) | = 1.5.3 | No fix listed |
| pypi ms-swift(PyPI) | = 1.5.4 | No fix listed |
| pypi ms-swift(PyPI) | = 1.6.0 | No fix listed |
| pypi ms-swift(PyPI) | = 1.6.1 | No fix listed |
| pypi ms-swift(PyPI) | = 1.6.2 | No fix listed |
| pypi ms-swift(PyPI) | = 1.6.3 | No fix listed |
| pypi ms-swift(PyPI) | = 1.7.0 | No fix listed |
| pypi ms-swift(PyPI) | = 1.7.1 | No fix listed |
| pypi ms-swift(PyPI) | = 1.7.2 | No fix listed |
| pypi ms-swift(PyPI) | = 1.7.3 | No fix listed |
| pypi ms-swift(PyPI) | = 2.0.0 | No fix listed |
| pypi ms-swift(PyPI) | = 2.0.1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.0.2 | No fix listed |
| pypi ms-swift(PyPI) | = 2.0.3 | No fix listed |
| pypi ms-swift(PyPI) | = 2.0.3.post1 | No fix listed |
Show 61 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi ms-swift(PyPI) | = 2.0.4 | No fix listed |
| pypi ms-swift(PyPI) | = 2.0.5 | No fix listed |
| pypi ms-swift(PyPI) | = 2.0.5.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.1.0 | No fix listed |
| pypi ms-swift(PyPI) | = 2.1.1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.1.1.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.1.1.post2 | No fix listed |
| pypi ms-swift(PyPI) | = 2.2.0 | No fix listed |
| pypi ms-swift(PyPI) | = 2.2.1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.2.2 | No fix listed |
| pypi ms-swift(PyPI) | = 2.2.3 | No fix listed |
| pypi ms-swift(PyPI) | = 2.2.4 | No fix listed |
| pypi ms-swift(PyPI) | = 2.2.5 | No fix listed |
| pypi ms-swift(PyPI) | = 2.3.0 | No fix listed |
| pypi ms-swift(PyPI) | = 2.3.0.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.3.1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.3.2 | No fix listed |
| pypi ms-swift(PyPI) | = 2.3.2.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.4.0 | No fix listed |
| pypi ms-swift(PyPI) | = 2.4.0.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.4.1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.4.2 | No fix listed |
| pypi ms-swift(PyPI) | = 2.4.2.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.4.2.post2 | No fix listed |
| pypi ms-swift(PyPI) | = 2.5.0.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.5.1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.5.1.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.5.2 | No fix listed |
| pypi ms-swift(PyPI) | = 2.5.2.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.6.0 | No fix listed |
| pypi ms-swift(PyPI) | = 2.6.0.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 2.6.0.post2 | No fix listed |
| pypi ms-swift(PyPI) | = 2.6.1 | No fix listed |
| pypi ms-swift(PyPI) | = 3.0.0 | No fix listed |
| pypi ms-swift(PyPI) | = 3.0.1 | No fix listed |
| pypi ms-swift(PyPI) | = 3.0.1.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 3.0.2 | No fix listed |
| pypi ms-swift(PyPI) | = 3.0.2.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 3.0.3 | No fix listed |
| pypi ms-swift(PyPI) | = 3.1.0 | No fix listed |
| pypi ms-swift(PyPI) | = 3.1.1 | No fix listed |
| pypi ms-swift(PyPI) | = 3.1.1.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 3.2.0 | No fix listed |
| pypi ms-swift(PyPI) | = 3.2.0.post2 | No fix listed |
| pypi ms-swift(PyPI) | = 3.2.1 | No fix listed |
| pypi ms-swift(PyPI) | = 3.2.2 | No fix listed |
| pypi ms-swift(PyPI) | = 3.3.0 | No fix listed |
| pypi ms-swift(PyPI) | = 3.3.0.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 3.3.1 | No fix listed |
| pypi ms-swift(PyPI) | = 3.4.0 | No fix listed |
| pypi ms-swift(PyPI) | = 3.4.1 | No fix listed |
| pypi ms-swift(PyPI) | = 3.4.1.post1 | No fix listed |
| pypi ms-swift(PyPI) | = 3.5.0 | No fix listed |
| pypi ms-swift(PyPI) | = 3.5.1 | No fix listed |
| pypi ms-swift(PyPI) | = 3.5.2 | No fix listed |
| pypi ms-swift(PyPI) | = 3.5.3 | No fix listed |
| pypi ms-swift(PyPI) | = 3.6.0 | No fix listed |
| pypi ms-swift(PyPI) | = 3.6.1 | No fix listed |
| pypi ms-swift(PyPI) | = 3.6.2 | No fix listed |
| pypi ms-swift(PyPI) | = 3.6.3 | No fix listed |
| pypi ms-swift(PyPI) | = 3.6.4 | No fix listed |
References
- github.com vendor-advisory
- github.com patch
- github.com product
- pypi.org product
- github.com vendor-advisory
- nvd.nist.gov vendor-advisory