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.
Published: 2026-09-01
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Wed, 02 Sep 2026 03:45:00 +0000

Type Values Removed Values Added
First Time appeared Modelscope
Modelscope modelscope
Vendors & Products Modelscope
Modelscope modelscope

Wed, 02 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94
References
Metrics threat_severity

None

threat_severity

Important


Tue, 01 Sep 2026 22:00:00 +0000

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'}


Subscriptions

Modelscope Modelscope
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-01T17:37:34.765Z

Reserved: 2026-09-01T11:03:27.973Z

Link: CVE-2026-84202

cve-icon Vulnrichment

Updated: 2026-09-01T17:37:23.996Z

cve-icon NVD

Status : Deferred

Published: 2026-09-01T16:17:34.450

Modified: 2026-09-08T20:18:59.270

Link: CVE-2026-84202

cve-icon Redhat

Severity : Important

Publid Date: 2026-09-01T15:18:57Z

Links: CVE-2026-84202 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T05:00:13Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

  • CWE-94

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