Description
ModelScope uses PyYAML's unsafe yaml.Loader to parse model configuration files, allowing arbitrary code execution through Python object construction tags. Attackers can craft malicious model repositories with poisoned configuration files that execute code when loaded by users.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| modelscope | modelscope | ≤ 1.40.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-modelscope | 1.40.0-1.1 | openSUSE-SU-2026:11736-1 |
| openSUSE Tumbleweed | python-modelscope-hub | 0.4.2-1.1 | openSUSE-SU-2026:11746-1 |
Advisories 2
- openSUSE-SU-2026:11746-1 python313-modelscope-hub-0.4.2-1.1 on GA media SUSE / openSUSE Security Updates · Sep 11, 2026
- openSUSE-SU-2026:11736-1 python313-modelscope-1.40.0-1.1 on GA media SUSE / openSUSE Security Updates · Sep 10, 2026
References
- https://github.com/modelscope/modelscope product
- https://github.com/modelscope/modelscope/issues/1660 issue-tracking
- https://github.com/modelscope/modelscope/blob/v1.40.0/modelscope/models/audio/tts/voice.py technical-description
- https://github.com/modelscope/modelscope/blob/v1.40.0/modelscope/models/multi_modal/mplug/configuration_mplug.py technical-description
- VulnCheck Advisory: ModelScope through 1.40.0 Unsafe YAML Deserialization in Model Config Loading third-party-advisory