Advisory

PYSEC-2026-2663

Also known as: CVE-2025-51427, GHSA-fhhq-h4hg-549x

Summary

ModelScope is vulnerable to arbitrary code injection via a crafted module

Details

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

Severity

High Basis: CVSS v3 score 7.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Dates

Published
2026-07-13 15:19 UTC
Modified
2026-07-13 16:32 UTC

Affected packages and fixes

modelscope

PyPI · All systems

Affected

  • introduced 0, fixed 1.27.0 (ecosystem)

Fixed versions

1.27.0

Fix

  • Fixed version 1.27.0
    pip install --upgrade modelscope==1.27.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences