---
id: CVE-2026-10801
aliases:
  - GHSA-prfw-69r3-wqxf
title: 'ms-swift: Image Cache Hash Collision via Missing Dimension Metadata'
summary: 'ms-swift: Image Cache Hash Collision via Missing Dimension Metadata'
severity: low
cvss: 3.6
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L'
vendor: ms-swift
product: ms-swift
ecosystem: pip
affected:
  - ms-swift <= 4.2.0
published: '2026-06-04'
updated: '2026-07-14'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-prfw-69r3-wqxf'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-10801'
  - url: 'https://github.com/modelscope/ms-swift/issues/9360'
  - url: 'https://github.com/modelscope/ms-swift/pull/9359'
  - url: >-
      https://github.com/modelscope/ms-swift/commit/27426a6431759a82e2a1c98344b425f90be17e07
  - url: 'https://github.com/modelscope/ms-swift'
  - url: 'https://vuldb.com/cve/CVE-2026-10801'
  - url: 'https://vuldb.com/submit/831455'
  - url: 'https://vuldb.com/submit/831456'
  - url: 'https://vuldb.com/vuln/368250'
  - url: 'https://vuldb.com/vuln/368250/cti'
tags:
  - osv
  - pip
epss: 0.00075
epssPercentile: 0.00079
ingestedAt: '2026-07-15T03:19:00.563Z'
---

## Overview

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

- `ms-swift <= 4.2.0`

## Remediation

Refer to the advisory for the patched release.
