ADVISORIES

PyPA Advisory Database

PYSEC-2026-2663

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

Affected packages

EcosystemPackageAffected versions
PyPImodelscope
All versions before 1.27.0 (fixed in 1.27.0)

References