Arbitrary Code Injection Affecting modelscope package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-MODELSCOPE-19497923
  • published2 Sept 2026
  • disclosed1 Sept 2026
  • creditVancir, Michael Holmquist

Introduced: 1 Sep 2026

NewCVE-2026-84202  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

modelscope is a ModelScope: bring the notion of Model-as-a-Service to life.

Affected versions of this package are vulnerable to Arbitrary Code Injection due to unsafe YAML deserialization in the model configuration loading paths in modelscope/models/audio/tts/voice.py and modelscope/models/multi_modal/mplug/configuration_mplug.py. An attacker can execute Python code by supplying a malicious model repository or poisoned YAML configuration file that yaml.Loader loads and that contains object-construction tags. When a user opens or trains a model that reads these configuration files, the YAML parser instantiates attacker-controlled objects instead of treating the content as data. This can lead to arbitrary code execution while loading the model, putting the user’s environment and data at risk.

CVSS Base Scores

version 4.0
version 3.1