Skip to main content

ModelScope CVE-2025-51427

| EUVDEUVD-2025-209897 HIGH
Code Injection (CWE-94)
2026-05-19 mitre GHSA-fhhq-h4hg-549x
7.3
CVSS 3.1 · Vendor: mitre
Share

Severity by source

Vendor (mitre) PRIMARY
7.3 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
vuln.today AI
8.8 HIGH

Loading an attacker-supplied model is required (UI:R) but needs no authentication (PR:N); arbitrary Python execution in the victim process yields full C/I/A (H).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat
8.1 HIGH
qualitative

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

4
Source Code Evidence Fetched
Jul 23, 2026 - 17:59 vuln.today
Analysis Generated
Jul 23, 2026 - 17:59 vuln.today
CVE Published
May 19, 2026 - 00:00 cve.org
HIGH 7.3
CVE Published
May 19, 2026 - 00:00 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

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'].

AnalysisAI

Arbitrary code execution in Alibaba ModelScope 1.25.0 allows attackers to run attacker-controlled Python by publishing or supplying a malicious model repository whose configuration file (dey_mini.yaml) names a hostile module under the ['nnet']['module'] key, which the library imports/executes when a victim loads the model (notably via the linear AEC audio pipeline). This is a classic 'trust_remote_code' code-injection flaw (CWE-94): the framework executed repo-supplied module paths without requiring the user to opt into trusting remote code. Publicly available exploit code exists (independent disclosure write-up and vendor issue/PR), but there is no public evidence of active exploitation; EPSS is very low at 0.03% (8th percentile).

Technical ContextAI

ModelScope is an open-source 'Model-as-a-Service' library (developed by Alibaba) that downloads and instantiates ML models and pipelines from a model hub. Models ship with YAML configuration that declares which Python module implements the network/pipeline; here, dey_mini.yaml specifies ['nnet']['module'], and the linear_aec_pipeline (and base model/pipeline loaders) dynamically imported and executed that module. The root cause is CWE-94 (Improper Control of Generation of Code / Code Injection): a repo-controlled string is used to import and run code with no trust boundary. The fix (PR #1333) introduces a trust_remote_code flag and a check_trust_remote_code() gate in modelscope/models/base/base_model.py and modelscope/pipelines/base.py, asserting trust_remote_code=True before importing extra libs or executing code defined in a model repo - the same defensive pattern Hugging Face Transformers uses. The CPE in the feed (cpe:2.3:a:n/a:n/a) is a placeholder and does not identify the product; identification relies on the description and GitHub evidence.

RemediationAI

Upstream fix available (PR/commit); a released patched version is not independently confirmed in the provided data - the fix is delivered via GitHub PR https://github.com/modelscope/modelscope/pull/1333, which adds a trust_remote_code gate, so upgrade to the first ModelScope release that includes that PR (verify the tagged version against the vendor changelog before deploying, and do not rely on the '1.25.0' number as fixed). After upgrading, treat trust_remote_code as a security boundary: keep it False (the new default) and only set it True for model repositories you have audited. As a compensating control until patched, do not load ModelScope models from untrusted or unverified publishers, pin/mirror only vetted model repos, and inspect any model's dey_mini.yaml (and other configs) for a suspicious ['nnet']['module'] value before loading; run model-loading workloads in a sandboxed, least-privilege container with no outbound network and no access to secrets so that code execution is contained. Trade-off: restricting to vetted repos and sandboxing reduces convenience and may break pipelines (e.g., linear AEC) that legitimately rely on remote module loading, which will now require an explicit trust_remote_code=True.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

Vendor StatusVendor

Share

CVE-2025-51427 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy