---
id: CVE-2026-84202
title: >-
  ModelScope uses PyYAML's unsafe yaml.Loader to parse model configuration
  files, allowing arbitrary code execution through Python object construction
  tags
summary: >-
  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…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-502
  - CWE-94
published: '2026-09-01'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T20:18:59.270'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-84202'
references:
  - url: 'https://github.com/modelscope/modelscope'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/modelscope/modelscope/blob/v1.40.0/modelscope/models/audio/tts/voice.py
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/modelscope/modelscope/blob/v1.40.0/modelscope/models/multi_modal/mplug/configuration_mplug.py
    label: disclosure@vulncheck.com
  - url: 'https://github.com/modelscope/modelscope/issues/1660'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/modelscope-through-1.40.0-unsafe-yaml-deserialization-in-model-config-loading
    label: disclosure@vulncheck.com
  - url: 'https://github.com/modelscope/modelscope/issues/1660'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-84202.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-84202'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2526873'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-84202'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-84202'
  - url: 'https://access.redhat.com/errata/RHSA-2026:84734'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
epss: 0.00682
epssPercentile: 0.52285
ingestedAt: '2026-09-08T21:11:12.289Z'
vendor: Red Hat
product: Red Hat OpenShift AI 3.4
affected:
  - openshift_ai 3.4
patched:
  - openshift_ai 3.4
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Important · updated 2026-09-29 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-84202.json)
- **RHSA-2026:84734** · Red Hat · fixed in: Red Hat OpenShift AI 3.4 · released 2026-10-19 · [advisory](https://access.redhat.com/errata/RHSA-2026:84734)
