CVE-2025-51427

ModelScope: ModelScope: Arbitrary code execution via crafted configuration module

Published May 19, 2026 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
Description
An issue was discovered in ModelScope 1.25.0 allowing attackers to execute arbitrary code via crafted module listed in the configuration file (dey_mini.yaml) under the key ['nnet']['module'].

Analysis

AI-generated

Technical impact

An arbitrary code execution vulnerability exists in ModelScope 1.25.0. The flaw allows an attacker to create a malicious entry under the ['nnet']['module'] key in the dey_mini.yaml configuration file, causing the application to load and run code supplied by the attacker. This can compromise the confidentiality, integrity, and availability of the host system.

Affected Systems

ModelScope version 1.25.0 is affected. No additional vendors or product versions are listed in CNA data, and no other releases are known to be impacted.

Risk and Exploitability

The CVSS score of 7.3 indicates a high severity risk. The EPSS score is less than 1%, suggesting that exploitation is considered unlikely, yet the vulnerability is still present. Because the code is executed through manipulated configuration, the attack requires write access to dey_mini.yaml or the ability to influence its contents, which may be possible in environments where configuration files are writable by untrusted users or processes. The vulnerability is not listed in the CISA KEV catalog, implying no known active exploitation at this time.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest ModelScope release that includes the patch from the fix in pull/1333.
  • Remove or lock the dey_mini.yaml file so that only privileged administrators can edit it, preventing unauthorized module definitions.
  • Add input validation to the configuration parser so that only an approved list of module names can be specified, rejecting or sanitizing any non‑whitelisted entries.

Generated by OpenCVE AI on May 28, 2026 at 02:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-fhhq-h4hg-549x ModelScope is vulnerable to arbitrary code injection via a crafted module
History
Type Values Removed Values Added
Title Arbitrary Code Execution via Malicious Module Configuration in ModelScope 1.25.0 ModelScope: ModelScope: Arbitrary code execution via crafted configuration module
Weaknesses CWE-502
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
First Time appeared Modelscope
Modelscope modelscope
Vendors & Products Modelscope
Modelscope modelscope
Type Values Removed Values Added
Title Arbitrary Code Execution via Malicious Module Configuration in ModelScope 1.25.0
Type Values Removed Values Added
Weaknesses CWE-94
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description An issue was discovered in ModelScope 1.25.0 allowing attackers to execute arbitrary code via crafted module listed in the configuration file (dey_mini.yaml) under the key ['nnet']['module'].
References
Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jul 15, 2026, 1:26 AM
Reserved
Jun 16, 2025, 12:00 AM
Status
Deferred
Published
May 19, 2026, 3:16 PM
Modified
Jul 24, 2026, 12:10 PM
Severity
Important
Public date
May 19, 2026, 12:00 AM