modelscope@1.40.1

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

Direct Vulnerabilities

Known vulnerabilities in the modelscope package. This does not include vulnerabilities belonging to this package’s dependencies.

Fix vulnerabilities automatically

Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

Fix for free
VulnerabilityVulnerable Version
  • H
Arbitrary Code Injection

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.

How to fix Arbitrary Code Injection?

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

[0,)