Intel

AIKIDO-2026-188932

modelscope is vulnerable to Deserialization of Untrusted Data

Deserialization of Untrusted DataCVE-2026-84202 Published Yesterday

87

High Risk

This Affects:

PYTHONmodelscope
1.0.4 - 1.40.0
Fixed in 1.40.1
Are you affected? Scan for Free

TL;DR

ModelScope parses model and dataset configuration files with PyYAML's unsafe yaml.Loader, which constructs arbitrary Python objects from YAML tags. When a model repository is loaded, a poisoned configuration file containing Python object construction tags is deserialized during model resolution. This lets externally controlled repository content run arbitrary code on the machine loading the model. The remediation parses configuration YAML with a safe loader that does not instantiate arbitrary Python objects.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you load MPlug, HiTeA, or Sambert TTS models (or otherwise parse their repository config.yaml with ModelScope) from untrusted or externally controlled repositories.

Background info

modelscope is vulnerable to Deserialization of Untrusted Data in versions 1.0.4 - 1.40.0.

How to fix this

Upgrade the modelscope library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform