CVE-2026-10801
modelscope ms-swift PIL Image Cache Key base.py Template._save_pil_image weak hash
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
2.0
modelscope ms-swift PIL Image Cache Key base.py Template._save_pil_image weak hash
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.
- Record
CVE-2026-10801- CVSS 4.0
- 2.0 Low
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 - CVSS 3.1
- 3.6 Low
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 - CVSS 3.0
- 3.6 Low
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 - CVSS 2.0
- 2.4
AV:L/AC:H/Au:S/C:N/I:P/A:P/E:POC/RL:ND/RC:UR - Weakness
- CWE-328, CWE-327
- Updated
- 2026-11-02
EUVDEUVD-2026-34242
2.0
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.
- Record
EUVD-2026-34242- CVSS 4.0
- 2.0 Low
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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-prfw-69r3-wqxf
1.1
ms-swift: Image Cache Hash Collision via Missing Dimension Metadata
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.
- Record
GHSA-prfw-69r3-wqxf- CVSS 4.0
- 1.1 Low
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 - CVSS 3.1
- 3.6 Low
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L - Weakness
- CWE-327
- Updated
- 2026-11-02
NVD
1.1
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.
- Record
CVE-2026-10801- CVSS 4.0
- 1.1 Low
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 3.6 Low
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L - CVSS 2.0
- 2.4 Low
AV:L/AC:H/Au:S/C:N/I:P/A:P - Weakness
- CWE-327, CWE-328
- Updated
- 2026-11-02
OSV
1.1
modelscope ms-swift PIL Image Cache Key base.py Template._save_pil_image weak hash
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.
- Record
CVE-2026-10801- CVSS 4.0
- 1.1 Low
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 - Weakness
- CWE-327, CWE-328
- Updated
- 2026-11-02
OSVGHSA-prfw-69r3-wqxf
1.1
ms-swift: Image Cache Hash Collision via Missing Dimension Metadata
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.
- Record
GHSA-prfw-69r3-wqxf- CVSS 4.0
- 1.1 Low
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 - CVSS 3.1
- 3.6 Low
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L - Weakness
- CWE-327
- Updated
- 2026-11-02
OSVPYSEC-2026-3488
1.1
ms-swift: Image Cache Hash Collision via Missing Dimension Metadata
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.
- Record
PYSEC-2026-3488- CVSS 4.0
- 1.1 Low
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 - CVSS 3.1
- 3.6 Low
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
ms-swiftPyPI |
through 4.2.0 | None known |
ms-swiftPyPI |
through 4.2.0, plus listed versions 1.0.01.1.01.2.01.2.11.3.0 Show 45 moreShow less1.4.01.5.01.5.11.5.21.5.31.5.41.6.01.6.11.6.21.6.31.7.01.7.11.7.21.7.32.0.02.0.12.0.22.0.32.0.3.post12.0.42.0.52.0.5.post12.1.02.1.12.1.1.post12.1.1.post22.2.02.2.12.2.22.2.32.2.42.2.52.3.02.3.0.post12.3.12.3.22.3.2.post12.4.02.4.0.post12.4.12.4.22.4.2.post12.4.2.post22.5.0.post12.5.1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-10801 is a low vulnerability (CVSS 2.0) in Modelscope Ms-swift, published June 4, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.07%, the 0th percentile. No source names a fixed version.
References
vuldb.com/vuln/368250
vuldb.com/vuln/368250/cti
vuldb.com/cve/CVE-2026-10801
vuldb.com/submit/831455
vuldb.com/submit/831456
github.com/modelscope/ms-swift/issues/9360
Show 7 moreShow less
github.com/modelscope/ms-swift/pull/9359
github.com/modelscope/ms-swift
nvd.nist.gov/vuln/detail/CVE-2026-10801
github.com/modelscope/ms-swift/commit/27426a6431759a82e2a1c98344b425f90be17e07
github.com/advisories/GHSA-prfw-69r3-wqxf
github.com/CVEProject/cvelistV5/tree/main/cves/2026/10xxx/CVE-2026-10801.json
pypi.org/project/ms-swift
Left out here: 71 versions. The JSON record has them.