2.0low
modelscope ms-swift PIL Image Cache Key base.py Template._save_pil_image weak hash
- Severity
- 2.0low CVSS:4.0 by VulDB
- Exploit likelihood
- 0.07% (higher than 0% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulDB
- Also known as
- GHSA-prfw-69r3-wqxfPYSEC-2026-3488
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
| Product or package | Versions | Reported by |
|---|---|---|
| modelscope ms-swift | 4.0, 4.1, 4.2.0 | CVE List |
| ms-swift (PyPI) | up to 4.2.0 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| VulDB | 2.0low CVSS:4.0 | 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.6low CVSS:3.1 | 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.6low CVSS:3.0 | 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.4low CVSS:2.0 | AV:L/AC:H/Au:S/C:N/I:P/A:P/E:POC/RL:ND/RC:UR |
| GitHub | 3.6low CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L |
| GitHub | low CVSS:4.0 | 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 |
| PyPA Advisory Database | 3.6low CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L |
| PyPA Advisory Database | Not scored CVSS:4.0 | 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 |
Classification
What each source says
CVE List
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.
NVD (es)
Una vulnerabilidad de seguridad ha sido detectada en modelscope ms-swift hasta la versión 4.2.0. Esto afecta a la función Template._save_pil_image del archivo swift/template/base.py del componente PIL Image Cache Key Gestor. La manipulación conduce al uso de un hash débil. Un ataque debe ser abordado localmente. Se necesita un alto grado de complejidad para el ataque. Se indica que la explotabilidad es difícil. El exploit ha sido divulgado públicamente y puede ser utilizado. La solicitud de extracción para solucionar este problema espera ser aceptada.
References
| https://vuldb.com/vuln/368250 | technical-description, vdb-entry, web | |
| https://vuldb.com/vuln/368250/cti | permissions-required, signature, web | |
| https://vuldb.com/cve/CVE-2026-10801 | third-party-advisory, web | |
| https://vuldb.com/submit/831455 | third-party-advisory, web | |
| https://vuldb.com/submit/831456 | third-party-advisory, web | |
| https://github.com/modelscope/ms-swift/issues/9360 | exploit, issue-tracking, web | |
| https://github.com/modelscope/ms-swift/pull/9359 | issue-tracking, patch, web | |
| https://github.com/modelscope/ms-swift/ | product | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-10801 | advisory | |
| https://github.com/modelscope/ms-swift/commit/27426a6431759a82e2a1c98344b425f90be17e07 | web | |
| https://github.com/modelscope/ms-swift | package | |
| https://pypi.org/project/ms-swift | package | |
| https://github.com/advisories/GHSA-prfw-69r3-wqxf | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-10801 changed 2026-06-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-prfw-69r3-wqxf changed 2026-07-23 | CC-BY-4.0 |
| NVD | CVE-2026-10801 changed 2026-07-22 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3488 changed 2026-07-23 | CC-BY-4.0 |