CVE-2026-10801
JSON

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 packageVersionsReported by
modelscope ms-swift4.0, 4.1, 4.2.0CVE List
ms-swift (PyPI)up to 4.2.0GitHub Advisory Database, PyPA Advisory Database

All scores

VulDB2.0low CVSS:4.0CVSS: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
VulDB3.6low CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L/E:P/RL:X/RC:R
VulDB3.6low CVSS:3.0CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L/E:P/RL:X/RC:R
VulDB2.4low CVSS:2.0AV:L/AC:H/Au:S/C:N/I:P/A:P/E:POC/RL:ND/RC:UR
GitHub3.6low CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
GitHublow CVSS:4.0CVSS: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 Database3.6low CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS: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

CWE-327CWE-328

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

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/368250technical-description, vdb-entry, web
https://vuldb.com/vuln/368250/ctipermissions-required, signature, web
https://vuldb.com/cve/CVE-2026-10801third-party-advisory, web
https://vuldb.com/submit/831455third-party-advisory, web
https://vuldb.com/submit/831456third-party-advisory, web
https://github.com/modelscope/ms-swift/issues/9360exploit, issue-tracking, web
https://github.com/modelscope/ms-swift/pull/9359issue-tracking, patch, web
https://github.com/modelscope/ms-swift/product
https://nvd.nist.gov/vuln/detail/CVE-2026-10801advisory
https://github.com/modelscope/ms-swift/commit/27426a6431759a82e2a1c98344b425f90be17e07web
https://github.com/modelscope/ms-swiftpackage
https://pypi.org/project/ms-swiftpackage

Sources

SourceRecordLicence
CVE ListCVE-2026-10801 changed 2026-06-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-prfw-69r3-wqxf changed 2026-07-23CC-BY-4.0
NVDCVE-2026-10801 changed 2026-07-22Public domain
PyPA Advisory DatabasePYSEC-2026-3488 changed 2026-07-23CC-BY-4.0