Skip to content
Heist/ feed
Back to feed
Low

modelscope ms-swift PIL Image Cache Key base.py Template._save_pil_image weak hash

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-10801
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 01:13 UTC · Revision 1

Source evidence

modelscope ms-swift PIL Image Cache Key base.py Template._save_pil_image weak hash

core-osv · Original source

Published 4 Jun 2026, 11:00 UTC

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.

osv:CVE-2026-10801
Complete source record
{
  "id": "3b2e3da158ba564547f88f94f648afc26eff19890d505ffe9b191bcf56272ccf",
  "url": "https://osv.dev/vulnerability/CVE-2026-10801",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "modelscope ms-swift PIL Image Cache Key base.py Template._save_pil_image weak hash",
    "summary": "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.",
    "evidence": "osv:CVE-2026-10801",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-10801",
      "aliases": [
        "CVE-2026-10801",
        "GHSA-prfw-69r3-wqxf",
        "PYSEC-2026-3488"
      ],
      "metrics": [
        {
          "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": [
        {
          "ranges": [
            {
              "repo": "https://github.com/modelscope/ms-swift",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5e853413bce67a41f329e7bf4c5b3fd443e4af20"
                },
                {
                  "last_affected": "73b97df14ec4f6d3415461d75487cc2a88ab6d09"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "4.0"
                      },
                      {
                        "last_affected": "4.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "4.1"
                      },
                      {
                        "last_affected": "4.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "4.2.0"
                      },
                      {
                        "last_affected": "4.2.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "4.2.0"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0",
            "4.1",
            "4.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-10801.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.485648834Z",
      "provider": "osv",
      "references": [
        "https://github.com/modelscope/ms-swift/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/10xxx/CVE-2026-10801.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-10801",
        "https://vuldb.com/cve/CVE-2026-10801",
        "https://vuldb.com/submit/831455",
        "https://vuldb.com/submit/831456",
        "https://vuldb.com/vuln/368250",
        "https://github.com/modelscope/ms-swift/issues/9360",
        "https://vuldb.com/vuln/368250/cti",
        "https://github.com/modelscope/ms-swift/pull/9359"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-327",
          "CWE-328"
        ],
        "cna_assigner": "VulDB",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/10xxx/CVE-2026-10801.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-10801",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521245,
  "published_at": "2026-06-04T11:00:13.074+00:00"
}