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
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish malicious ModelScope model repo
  2. Delivery
    Set ['nnet']['module'] in dey_mini.yaml
  3. Exploit
    Victim loads model via pipeline
  4. Execution
    Loader imports crafted module
  5. Impact
    Execute arbitrary Python as victim

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to load an attacker-controlled ModelScope model whose configuration file dey_mini.yaml specifies a malicious module under the ['nnet']['module'] key - the concrete trigger is ModelScope processing that config (observed via the linear AEC audio pipeline / model loaders) and importing/executing the named module. In the pre-patch version, no trust_remote_code opt-in was needed, so merely loading the crafted model runs the code. Limiting factors: an attacker cannot exploit a target that never loads their model, so successful attacks depend on social delivery / supply-chain trust (the user must select and load the malicious repo); it is not a listening-service RCE. After the fix, exploitation additionally requires the user to have explicitly set trust_remote_code=True. Platform: affects ModelScope 1.25.0 (Python); impact is code execution in the loading process with that process's privileges.

Impact

Signals conflict on severity. The NVD-style CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L = 7.3) implies remote, unauthenticated, no-interaction exploitation with only partial impact - but that is inconsistent with the mechanism: arbitrary code execution normally yields high C/I/A, and in practice a victim must actively choose to load an attacker-supplied model, which is effectively user interaction. So the 'partial impact' rating understates code-execution consequences while the 'no user interaction' rating overstates automatability. SSVC lists Exploitation=poc, Automatable=yes, Technical Impact=partial, aligning with 'exploit exists but requires a target to load malicious content.' EPSS is very low (0.03%, 8th percentile) and there is no KEV listing, indicating no observed mass exploitation. Realistically this is a supply-chain / social-delivery RCE (trust the wrong model repo → code runs), which is a genuine risk for ML pipelines but not a wormable internet-facing bug. Priority: moderate - patch promptly if you load third-party ModelScope models, lower urgency if you only load first-party/trusted models.

Exploit ScenarioDerived

An attacker publishes an attractive ModelScope model (e.g., an audio echo-cancellation model) whose dey_mini.yaml sets ['nnet']['module'] to a malicious Python module included in the repo. A data scientist downloads and loads the model through the linear AEC pipeline; ModelScope imports the named module and the attacker's code executes in the victim's process with the victim's privileges. A public proof-of-concept and technical write-up for this exact flow already exist.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

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

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.

Affected VersionsENISA

n/a n/a

Affected Packages

pypi modelscope fix: 1.27.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when N A gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

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

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

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

Executive ViewAI

Why It Matters

Alibaba ModelScope 1.25.0 is vulnerable to remote code execution when loading malicious model repositories, with publicly available exploit code but no confirmed active exploitation to date. This vulnerability affects any organization deploying machine learning models through ModelScope, particularly those with audio processing pipelines, and creates direct data theft and system compromise risk. A vendor patch is available and should be prioritized given the critical nature of the vulnerability.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Prevalence
Medium
Popular Alibaba ML model-hub library, common in AI/ML pipelines but not universal
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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

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