GitHub Advisoryadvisory · PyPI
GHSA-fhhq-h4hg-549x ModelScope is vulnerable to arbitrary code injection via a crafted module
HIGH
Official page ↗
- Aliases
- CVE-2025-51427
- Ecosystem
- PyPI
- Packages
- modelscope
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Weaknesses
- CWE-94
- Reviewed
- 2026-06-04
Affected packages
• PyPI modelscope: < 1.27.0 → fixed in 1.27.0
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'].
Related
Alias · CVE (1)
- CVE-2025-51427 An issue was discovered in ModelScope 1.25.0 allowing attackers to execute arbitrary code via crafted module listed in the configuration… vulnerability
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-51427 advisory
- https://github.com/modelscope/modelscope/issues/1331 web
- https://github.com/modelscope/modelscope/pull/1333 web
- https://github.com/modelscope/modelscope/commit/75d54927e112261d39598ca08c15b66a7ff3f735 web
- https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md web
- https://github.com/modelscope/modelscope package