Vulnerability · Published Jun 4, 2026 · Assigned by VulDB
CVE-2026-10801modelscope ms-swift PIL Image Cache Key base.py Template._save_pil_image weak hash
Low 3.6
In plain English
A low-severity broken cryptography in ms-swift from modelscope. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 0% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | ms-swift | no fix listed | GHSA-prfw-69r3-wqxf |
| PyPI | ms-swift | no fix listed | PYSEC-2026-3488 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| modelscope | ms-swift | 4.04.14.2.0 |
Weakness: CWE-328, CWE-327 · Vector: 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
References
- VDB-368250 | modelscope ms-swift PIL Image Cache Key base.py Template._save_pil_image weak hash vdb-entry, technical-description
- VDB-368250 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- CVE-2026-10801 | CVE Analysis and Report third-party-advisory
- Submit #831455 | modelscope ms-swift 4.2.0 Hash Collision third-party-advisory
- Submit #831456 | modelscope ms-swift 4.2.0 Hash Collision (Duplicate) third-party-advisory
- https://github.com/modelscope/ms-swift/issues/9360 exploit, issue-tracking
- https://github.com/modelscope/ms-swift/pull/9359 issue-tracking, patch
- https://github.com/modelscope/ms-swift/ product