CVE-2025-51427 Details
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'].
A remote code execution vulnerability has been identified in ModelScope version 1.25.0, and potentially earlier versions. The issue arises when models are loaded through the 'pipeline' interface for acoustic echo cancellation tasks. During the model initialization process, the framework dynamically imports Python modules based on configuration files from the model repository. This behavior can be exploited by modifying the 'dey_mini.yaml' file to include malicious code, which is then executed when the model is loaded.
Users can update to ModelScope version 1.27.0, which includes a patch for this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 19, 2026CISA-ADP
Assessed May 19, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2025-51427 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2479894 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-51427.json | redhat-SADP | |
| https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md | CISA-ADP | ExploitTechnical Description |
| https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md | [email protected] | ExploitTechnical Description |
| https://github.com/modelscope/modelscope/issues/1331 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/modelscope/modelscope/pull/1333 | [email protected] | Source CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-502 | Deserialization of Untrusted Data | redhat-SADP |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| ModelScope | 1.25.0 (semver) |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| May 19, 2026 | CVE Modified | CISA-ADP |
| May 19, 2026 | New CVE Received | [email protected] |
Volerion