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).

Severity (CVSS 3.1)3.6Low
Exploit odds (30 days)<0.1%top 99.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
PyPIms-swiftno fix listedGHSA-prfw-69r3-wqxf
PyPIms-swiftno fix listedPYSEC-2026-3488

Affected products (as reported)

VendorProductVersions
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