CVE-2026-10801
modelscope ms-swift PIL Image Cache Key base.py Template._save_pil_image weak hash
- State
- Published
- Severity
- 2.0 Low
- Published
- Jun 4, 2026
- Updated
- Jun 4, 2026
- Reserved
- Jun 4, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 2.0 Low | CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P | VulDB |
| 3.1 | 3.6 Low | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L/E:P/RL:X/RC:R | VulDB |
| 3.0 | 3.6 Low | CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L/E:P/RL:X/RC:R | VulDB |
| 2.0 | 2.4 Low | AV:L/AC:H/Au:S/C:N/I:P/A:P/E:POC/RL:ND/RC:UR | VulDB |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
ms-swiftmodelscope |
|
References
- VDB-368250 | modelscope ms-swift PIL Image Cache Key base.py Template._save_pil_image weak hashvdb-entrytechnical-description
- VDB-368250 | CTI Indicators (IOB, IOC, TTP, IOA)signaturepermissions-required
- CVE-2026-10801 | CVE Analysis and Reportthird-party-advisory
- Submit #831455 | modelscope ms-swift 4.2.0 Hash Collisionthird-party-advisory
- Submit #831456 | modelscope ms-swift 4.2.0 Hash Collision (Duplicate)third-party-advisory
- https://github.com/modelscope/ms-swift/issues/9360exploitissue-tracking
- https://github.com/modelscope/ms-swift/pull/9359issue-trackingpatch
- https://github.com/modelscope/ms-swift/product
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.