CVE-2026-10801: ms-swift Image Cache Hash Collision Vulnerability

LOW
Advisory Identifier: GHSA-prfw-69r3-wqxf
CVSS 3.6
CWE-327
Published
Advisory Summary

CVE-2026-10801 is a LOW (CVSS 3.6) image cache hash collision vulnerability (CWE-327: Use of a Broken or Risky Cryptographic Algorithm) affecting ms-swift libraries in the PyPI ecosystem. The issue involves image cache hash collision via missing dimension metadata. Remediation is available in the latest vendor maintenance releases.

CVE-2026-10801 at a Glance

CVE Identifier CVE-2026-10801
GHSA Identifier GHSA-prfw-69r3-wqxf
Severity LOW
CVSS v3.1 Base Score 3.6
CWE Classification CWE-327: Use of a Broken or Risky Cryptographic Algorithm
Affected Product ms-swift
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 3.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-10801

To remediate this vulnerability, upgrade all affected ms-swift dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ms-swift fixed: Latest secure release
pip install ms-swift>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show ms-swift

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-10801, inspect your installed packages using pip:

pip show ms-swift

Analyze the terminal output to locate any version of ms-swift in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show ms-swift command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-327: Use of a Broken or Risky Cryptographic Algorithm, where the product uses a broken or risky cryptographic algorithm or protocol. In ms-swift, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-10801 Affected ms-swift Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
ms-swift
PyPI
≤ 4.2.0

References

Frequently Asked Questions

What is CVE-2026-10801?
CVE-2026-10801 is a security vulnerability in ms-swift involving Image Cache Hash Collision via Missing Dimension Metadata under CWE-327: Use of a Broken or Risky Cryptographic Algorithm.
Which ms-swift versions are affected?
Affected versions include releases prior to current release patches across affected packages: ms-swift.
What version fixes CVE-2026-10801?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is ms-swift affected?
Yes, ms-swift is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-10801?
CVE-2026-10801 has a CVSS v3.1 base score of 3.6 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2026-10801?
CVE-2026-10801 is classified under CWE-327: Use of a Broken or Risky Cryptographic Algorithm (The product uses a broken or risky cryptographic algorithm or protocol.).
How can I check PyPI dependencies for CVE-2026-10801?
Run the dependency tree command: 'pip show ms-swift'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-prfw-69r3-wqxf",
  "modified" : "2026-07-14T20:47:50Z",
  "published" : "2026-06-04T12:30:25Z",
  "aliases" : [ "CVE-2026-10801" ],
  "summary" : "ms-swift: Image Cache Hash Collision via Missing Dimension Metadata",
  "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ms-swift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "4.2.0"
      } ]
    } ]
  } ],
  "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"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-327" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-14T20:47:50Z",
    "nvd_published_at" : "2026-06-04T11:16:25Z"
  }
}