CVE-2026-84202

ModelScope through 1.40.0 Unsafe YAML Deserialization in Model Config Loading

Published Sep 1, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The flaw arises from ModelScope using PyYAML's unsafe yaml.Loader to read model configuration files. This allows an attacker to insert Python object construction tags that are instantiated when the file is parsed, giving the attacker arbitrary code execution on the system that loads the model. The vulnerability therefore enables a compromise that undermines confidentiality, integrity, and availability of the host environment.

Affected Systems

The vulnerability is present in ModelScope version 1.40.0 and earlier, specifically the YAML parsing routines used by the audio TTS voice and multi‑modal mplug configuration modules. All users running version 1.40.0 of the ModelScope framework are exposed unless they upgrade to a later release that fixes the deserialization logic.

Risk and Exploitability

With a CVSS score of 8.7 the flaw is considered a high‑severity vulnerability. The EPSS score is not available, meaning the exploitation likelihood is unknown, but the presence of arbitrary code execution potential is alarming. The vulnerability is not listed in the CISA KEV catalog, yet the attack path—uploading a malicious model repository—could be leveraged in targeted or supply‑chain attacks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update ModelScope to the latest version that removes the unsafe yaml.Loader usage.
  • If an upgrade is not immediately possible, load model configuration files using a safe YAML parser that explicitly disallows arbitrary constructors.
  • Restrict the permissions of the environment that imports models, running it in a sandbox or container with only the necessary privileges.

Generated by OpenCVE AI on September 2, 2026 at 04:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Modelscope
Modelscope modelscope
Vendors & Products Modelscope
Modelscope modelscope
Type Values Removed Values Added
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.
Title ModelScope through 1.40.0 Unsafe YAML Deserialization in Model Config Loading
Weaknesses CWE-502
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 1, 2026, 5:37 PM
Reserved
Sep 1, 2026, 11:03 AM
Status
Deferred
Published
Sep 1, 2026, 4:17 PM
Modified
Sep 8, 2026, 8:18 PM
Severity
Important
Public date
Sep 1, 2026, 3:18 PM