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

Low 2.0 Published Updated

A weak hash implementation in ms-swift's image caching allows local attackers to potentially manipulate cache keys, requiring high complexity and local access.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-10801?

CVE-2026-10801 is a low-severity vulnerability in modelscope ms-swift, published on 4 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-328, CWE-327

Which versions are affected by CVE-2026-10801?

3 open source packages ship an affected version, including ms-swift.

PackageAffectedFixed in
ms-swift PyPIAll versions to 4.2.0None
ms-swift PyPIAll versions to 4.2.0None
ms-swift PyPIAll versions to 4.2.0None

How do I fix CVE-2026-10801?

No fix has been published for CVE-2026-10801 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-10801 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-10801 exists.

Sources

Also known as GHSA-prfw-69r3-wqxf, PYSEC-2026-3488.

Is CVE-2026-10801 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free