CVE-2026-10801 Details
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.
A vulnerability exists in Modelscope ms-swift versions up to 4.2.0, specifically within the PIL Image Cache Key Handler. The issue arises in the function Template._save_pil_image, located in swift/template/base.py, where the caching mechanism uses a weak hash. This flaw allows two different images with the same raw pixel data but different dimensions to collide in the cache, leading to incorrect image data being used in multimodal tasks. The vulnerability requires local exploitation and involves a high level of complexity.
A pull request to fix this vulnerability has been submitted and is awaiting acceptance. The proposed solution involves modifying the cache key generation to include the image's mode, width, and height, preventing collisions across different dimensions.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 4, 2026CISA-ADP
Assessed Jun 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/modelscope/ms-swift/ | [email protected] | Vendor |
| https://github.com/modelscope/ms-swift/issues/9360 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/modelscope/ms-swift/pull/9359 | [email protected] | Issue TrackingVendor |
| https://vuldb.com/cve/CVE-2026-10801 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/831455 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/submit/831456 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/368250 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/368250/cti | [email protected] | AdvisoryPermission Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-327 | Use of a Broken or Risky Cryptographic Algorithm | [email protected] |
| CWE-328 | Use of Weak Hash | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| modelscope ms-swift | <= 4.2.0 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 4, 2026 | New CVE Received | [email protected] |
Volerion