Open-source package vulnerability · PyPI
CVE-2025-51427: ModelScope is vulnerable to arbitrary code injection via a crafted module
highCVSS 3.1 7.3GHSA-fhhq-h4hg-549x
An issue was discovered in ModelScope 1.25.0 allowing attackers to execute arbitrary code via crafted module listed in the configuration file (deymini.yaml) under the key ['nnet']['module'].
Published May 19, 2026 · Updated Jun 4, 2026
Affected packages
modelscope
- Ecosystem
- PyPI
- Affected
- < 1.27.0
- Fixed in
- 1.27.0
- Check
pip show modelscope
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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'].
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-51427
- https://github.com/modelscope/modelscope/issues/1331
- https://github.com/modelscope/modelscope/pull/1333
- https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md
- https://github.com/modelscope/modelscope/commit/75d54927e112261d39598ca08c15b66a7ff3f735
- https://github.com/advisories/GHSA-fhhq-h4hg-549x
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
