GitHub Advisoryadvisory · PyPI

GHSA-prfw-69r3-wqxf ms-swift: Image Cache Hash Collision via Missing Dimension Metadata

LOW Published 2026-06-04 Modified 2026-07-14 Official page ↗
Aliases
CVE-2026-10801
Ecosystem
PyPI
Packages
ms-swift
Severity
Low
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
Weaknesses
CWE-327
Reviewed
2026-07-14

Affected packages

• PyPI ms-swift: <= 4.2.0 (no fix yet)

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.

Related

Alias · CVE (1)

  • CVE-2026-10801 A security vulnerability has been detected in modelscope ms-swift up to 4.2.0. vulnerability

Weakness · CWE (1)

  • CWE-327 Use of a Broken or Risky Cryptographic Algorithm weakness

References