CVE-2026-10801: Use of Weak Hash in modelscope ms-swift
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.
AI Analysis
Technical Summary
This vulnerability in modelscope ms-swift (versions 4.0, 4.1, and 4.2.0) arises from the use of a weak hash algorithm in the Template._save_pil_image function located in swift/template/base.py. The weakness affects the PIL Image Cache Key Handler component, potentially allowing an attacker with local access to exploit the issue. The attack complexity is high, and no privileges are elevated or user interaction required. Although the exploit has been publicly disclosed, no official patch or remediation has been released yet; a pull request addressing the issue is pending acceptance.
Potential Impact
The impact is limited due to the requirement for local access and the high complexity of exploitation. The vulnerability involves weak hashing, which could affect the integrity or caching mechanisms related to PIL images within the application. There is no indication of privilege escalation, remote exploitation, or significant confidentiality, integrity, or availability impact based on the available data.
Mitigation Recommendations
No official fix or patch is currently available. A pull request to address the vulnerability has been submitted but not yet accepted. Users should monitor the vendor's repository or advisory channels for the acceptance of the fix and apply it once available. Until then, limiting local access to trusted users may reduce risk.
CVE-2026-10801: Use of Weak Hash in modelscope ms-swift
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.
CVSS v4.0
Score 2.0low
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in modelscope ms-swift (versions 4.0, 4.1, and 4.2.0) arises from the use of a weak hash algorithm in the Template._save_pil_image function located in swift/template/base.py. The weakness affects the PIL Image Cache Key Handler component, potentially allowing an attacker with local access to exploit the issue. The attack complexity is high, and no privileges are elevated or user interaction required. Although the exploit has been publicly disclosed, no official patch or remediation has been released yet; a pull request addressing the issue is pending acceptance.
Potential Impact
The impact is limited due to the requirement for local access and the high complexity of exploitation. The vulnerability involves weak hashing, which could affect the integrity or caching mechanisms related to PIL images within the application. There is no indication of privilege escalation, remote exploitation, or significant confidentiality, integrity, or availability impact based on the available data.
Mitigation Recommendations
No official fix or patch is currently available. A pull request to address the vulnerability has been submitted but not yet accepted. Users should monitor the vendor's repository or advisory channels for the acceptance of the fix and apply it once available. Until then, limiting local access to trusted users may reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulDB
- Date Reserved
- 2026-06-04T04:59:37.871Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a215bc3e29bf47b5097b122
Added to database: 06/04/2026, 11:04:35 UTC
Last enriched: 06/11/2026, 13:11:46 UTC
Last updated: 07/31/2026, 19:22:57 UTC
Views: 78
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.