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
4DescriptionCVE.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.
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
Same weakness CWE-94 – Code Injection
View allVendor StatusVendor
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2025-209897
GHSA-fhhq-h4hg-549x