Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. modelscope
  4. ›
  5. CVE-2025-51427

CVE-2025-51427: ModelScope is vulnerable to arbitrary code injection via a crafted module

May 19, 2026 (updated June 4, 2026)

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

  • github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md
  • github.com/advisories/GHSA-fhhq-h4hg-549x
  • github.com/modelscope/modelscope/commit/75d54927e112261d39598ca08c15b66a7ff3f735
  • github.com/modelscope/modelscope/issues/1331
  • github.com/modelscope/modelscope/pull/1333
  • nvd.nist.gov/vuln/detail/CVE-2025-51427

Code Behaviors & Features

Detect and mitigate CVE-2025-51427 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.27.0

Fixed versions

  • 1.27.0

Solution

Upgrade to version 1.27.0 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/modelscope/CVE-2025-51427.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:51 +0000.