CVE-2026-84202: ModelScope through 1.40.0 Unsafe YAML Deserialization in Model Config Loading

Published Sep 1, 2026
·
Updated

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.

Affected Software

1 affected component
modelscope ModelScope<=1.40.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ModelScope to a version that resolves this vulnerability.

    Fixed in 1.40.0
  2. Configuration

    Update ModelScope model configuration parsing to avoid PyYAML's unsafe yaml.Loader (which allows Python object construction tags), and instead use a safe loader so malicious tags cannot trigger code execution when config files are loaded.

    ModelScope model config loading YAML loader used for model configuration files (PyYAML yaml.Loader) = Do not use PyYAML's unsafe yaml.Loader; use a safe YAML loader instead

Event History

Sep 1, 2026
CVE Published
via MITRE·03:18 PM
Data Sourced
via MITRE·03:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Users who load model repositories whose configuration files are parsed by ModelScope are exposed, particularly when obtaining models from untrusted or insufficiently vetted sources.

2

What does an attacker need to exploit it?

An attacker needs to craft a malicious model repository containing a poisoned YAML configuration file that uses Python object construction tags. The victim must load that repository; no attacker authentication or special privileges are required.

3

Does exploitation require user interaction?

Yes. Exploitation occurs when a user loads a malicious model repository or its configuration, as reflected by the UI:R vector.

4

What can be done if updating is not immediately possible?

Avoid loading model repositories from untrusted sources, and review YAML model configuration files for Python object construction tags before loading them. Limit use to repositories that have been vetted and trusted.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203