Description
A security vulnerability has been detected in modelscope ms-swift up to 4.2.0. This affects the function Template._save_pil_image of the file swift/template/base.py of the component PIL Image Cache Key Handler. The manipulation leads to use of weak hash. An attack has to be approached locally. A high degree of complexity is needed for the attack. It is indicated that the exploitability is difficult. The exploit has been disclosed publicly and may be used. The pull request to fix this issue awaits acceptance.
Problem types
Product status
4.1
4.2.0
Timeline
| 2026-06-04: | Advisory disclosed |
| 2026-06-04: | VulDB entry created |
| 2026-06-04: | VulDB entry last update |
Credits
Dem0 (VulDB User)
VulDB CNA Team
References
vuldb.com/vuln/368250 (VDB-368250 | modelscope ms-swift PIL Image Cache Key base.py Template._save_pil_image weak hash)
vuldb.com/vuln/368250/cti (VDB-368250 | CTI Indicators (IOB, IOC, TTP, IOA))
vuldb.com/cve/CVE-2026-10801 (CVE-2026-10801 | CVE Analysis and Report)
vuldb.com/submit/831455 (Submit #831455 | modelscope ms-swift 4.2.0 Hash Collision)
vuldb.com/submit/831456 (Submit #831456 | modelscope ms-swift 4.2.0 Hash Collision (Duplicate))
github.com/modelscope/ms-swift/issues/9360
github.com/modelscope/ms-swift/pull/9359
github.com/modelscope/ms-swift/