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.

Project Subscriptions

Vendors Products
Modelscope Subscribe
Ms-swift Subscribe
Ms Swift Subscribe
Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Thu, 04 Jun 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 04 Jun 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Modelscope ms Swift
Vendors & Products Modelscope ms Swift

Thu, 04 Jun 2026 11:15:00 +0000

Type Values Removed Values Added
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.
Title modelscope ms-swift PIL Image Cache Key base.py Template._save_pil_image weak hash
First Time appeared Modelscope
Modelscope ms-swift
Weaknesses CWE-327
CWE-328
CPEs cpe:2.3:a:modelscope:ms-swift:*:*:*:*:*:*:*:*
Vendors & Products Modelscope
Modelscope ms-swift
References
Metrics cvssV2_0

{'score': 2.4, 'vector': 'AV:L/AC:H/Au:S/C:N/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 3.6, 'vector': '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'}

cvssV3_1

{'score': 3.6, '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'}

cvssV4_0

{'score': 2, 'vector': '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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-06-04T12:44:47.466Z

Reserved: 2026-06-04T04:59:37.871Z

Link: CVE-2026-10801

cve-icon Vulnrichment

Updated: 2026-06-04T12:44:43.591Z

cve-icon NVD

Status : Deferred

Published: 2026-06-04T11:16:25.800

Modified: 2026-06-04T16:35:27.803

Link: CVE-2026-10801

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-04T12:30:13Z

Weaknesses