PYSEC-2026-3488
Vulnerability from pysec - Published: 2026-07-23 11:41 - Updated: 2026-07-23 14:31A 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.
| Name | purl | ms-swift | pkg:pypi/ms-swift |
|---|
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "ms-swift",
"purl": "pkg:pypi/ms-swift"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "4.2.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.0.0",
"1.1.0",
"1.2.0",
"1.2.1",
"1.3.0",
"1.4.0",
"1.5.0",
"1.5.1",
"1.5.2",
"1.5.3",
"1.5.4",
"1.6.0",
"1.6.1",
"1.6.2",
"1.6.3",
"1.7.0",
"1.7.1",
"1.7.2",
"1.7.3",
"2.0.0",
"2.0.1",
"2.0.2",
"2.0.3",
"2.0.3.post1",
"2.0.4",
"2.0.5",
"2.0.5.post1",
"2.1.0",
"2.1.1",
"2.1.1.post1",
"2.1.1.post2",
"2.2.0",
"2.2.1",
"2.2.2",
"2.2.3",
"2.2.4",
"2.2.5",
"2.3.0",
"2.3.0.post1",
"2.3.1",
"2.3.2",
"2.3.2.post1",
"2.4.0",
"2.4.0.post1",
"2.4.1",
"2.4.2",
"2.4.2.post1",
"2.4.2.post2",
"2.5.0.post1",
"2.5.1",
"2.5.1.post1",
"2.5.2",
"2.5.2.post1",
"2.6.0",
"2.6.0.post1",
"2.6.0.post2",
"2.6.1",
"3.0.0",
"3.0.1",
"3.0.1.post1",
"3.0.2",
"3.0.2.post1",
"3.0.3",
"3.1.0",
"3.1.1",
"3.1.1.post1",
"3.10.0",
"3.10.1",
"3.10.2",
"3.10.3",
"3.11.0",
"3.11.1",
"3.11.2",
"3.11.3",
"3.12.0",
"3.12.1",
"3.12.2",
"3.12.3",
"3.12.4",
"3.12.5",
"3.12.6",
"3.2.0",
"3.2.0.post2",
"3.2.1",
"3.2.2",
"3.3.0",
"3.3.0.post1",
"3.3.1",
"3.4.0",
"3.4.1",
"3.4.1.post1",
"3.5.0",
"3.5.1",
"3.5.2",
"3.5.3",
"3.6.0",
"3.6.1",
"3.6.2",
"3.6.3",
"3.6.4",
"3.7.0",
"3.7.1",
"3.7.2",
"3.7.3",
"3.8.0",
"3.8.1",
"3.8.2",
"3.8.3",
"3.9.0",
"3.9.1",
"3.9.2",
"3.9.3",
"4.0.0",
"4.0.1",
"4.0.2",
"4.0.3",
"4.0.4",
"4.1.0",
"4.1.1",
"4.1.2",
"4.1.3",
"4.2.0"
]
}
],
"aliases": [
"CVE-2026-10801",
"GHSA-prfw-69r3-wqxf"
],
"details": "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.",
"id": "PYSEC-2026-3488",
"modified": "2026-07-23T14:31:49.052103Z",
"published": "2026-07-23T11:41:38.269101Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-10801"
},
{
"type": "WEB",
"url": "https://github.com/modelscope/ms-swift/issues/9360"
},
{
"type": "WEB",
"url": "https://github.com/modelscope/ms-swift/pull/9359"
},
{
"type": "WEB",
"url": "https://github.com/modelscope/ms-swift/commit/27426a6431759a82e2a1c98344b425f90be17e07"
},
{
"type": "PACKAGE",
"url": "https://github.com/modelscope/ms-swift"
},
{
"type": "WEB",
"url": "https://vuldb.com/cve/CVE-2026-10801"
},
{
"type": "WEB",
"url": "https://vuldb.com/submit/831455"
},
{
"type": "WEB",
"url": "https://vuldb.com/submit/831456"
},
{
"type": "WEB",
"url": "https://vuldb.com/vuln/368250"
},
{
"type": "WEB",
"url": "https://vuldb.com/vuln/368250/cti"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/ms-swift"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-prfw-69r3-wqxf"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L",
"type": "CVSS_V3"
},
{
"score": "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",
"type": "CVSS_V4"
}
],
"summary": "ms-swift: Image Cache Hash Collision via Missing Dimension Metadata"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.