Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious ModelScope model repo
-
DeliverySet ['nnet']['module'] in dey_mini.yaml
-
ExploitVictim loads model via pipeline
-
ExecutionLoader imports crafted module
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
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).
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.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'].
Blast Radius
ecosystem impact- 2 pypi packages depend on modelscope (2 direct, 0 indirect)
Ecosystem-wide dependent count for version 1.27.0.
Executive ViewAI
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
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.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2025-209897
GHSA-fhhq-h4hg-549x
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB