{"id":"CVE-2025-51427","aliases":["EUVD-2025-209897","GHSA-fhhq-h4hg-549x","PYSEC-2026-2663"],"status":"published","title":"ModelScope is vulnerable to arbitrary code injection via a crafted module","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'].","severity":{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-11","score":0.00522,"percentile":0.44798,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-502","CWE-94"],"published":"2026-05-19T00:00:00Z","modified":"2026-07-24T12:10:00Z","fixes":[{"ecosystem":"PyPI","package":"modelscope","fixed_in":["1.27.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"modelscope","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.27.0"}]}]},{"source":"osv","ecosystem":"PyPI","package":"modelscope","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.27.0"}]}],"versions":["1.0.4","1.1.1","1.1.3","1.10.0","1.11.0","1.11.1","1.12.0","1.13.0","1.13.1","1.13.2","1.13.3","1.14.0","1.15.0","1.16.0","1.16.1","1.17.0","1.17.1","1.18.0","1.18.1","1.19.0","1.19.1","1.19.2","1.2.0","1.2.1","1.20.0","1.20.1","1.21.0","1.21.1","1.22.0","1.22.1","1.22.2","1.22.3","1.23.0","1.23.1","1.23.2","1.24.0","1.24.1","1.25.0","1.26.0","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.4.2","1.5.0","1.5.1","1.5.2","1.6.0","1.6.1","1.7.0","1.7.1","1.8.0","1.8.0rc0","1.8.1","1.8.3","1.8.4","1.9.0","1.9.1","1.9.2","1.9.3","1.9.4","1.9.5"]},{"source":"osv","ecosystem":"PyPI","package":"modelscope","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.27.0"}]}],"versions":["1.0.4","1.1.1","1.1.3","1.10.0","1.11.0","1.11.1","1.12.0","1.13.0","1.13.1","1.13.2","1.13.3","1.14.0","1.15.0","1.16.0","1.16.1","1.17.0","1.17.1","1.18.0","1.18.1","1.19.0","1.19.1","1.19.2","1.2.0","1.2.1","1.20.0","1.20.1","1.21.0","1.21.1","1.22.0","1.22.1","1.22.2","1.22.3","1.23.0","1.23.1","1.23.2","1.24.0","1.24.1","1.25.0","1.26.0","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.4.2","1.5.0","1.5.1","1.5.2","1.6.0","1.6.1","1.7.0","1.7.1","1.8.0","1.8.0rc0","1.8.1","1.8.3","1.8.4","1.9.0","1.9.1","1.9.2","1.9.3","1.9.4","1.9.5"]}],"products":[{"vendor":"red hat","product":"red hat openshift ai (rhoai)"}],"references":[{"url":"https://github.com/modelscope/modelscope/issues/1331","tags":["web"]},{"url":"https://github.com/modelscope/modelscope/pull/1333","tags":["web"]},{"url":"https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md","tags":["exploit","web"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-51427","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2479894","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-51427.json","tags":["x_sadp-csaf-vex"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-51427","tags":["advisory"]},{"url":"https://github.com/modelscope/modelscope/commit/75d54927e112261d39598ca08c15b66a7ff3f735","tags":["web"]},{"url":"https://github.com/advisories/GHSA-fhhq-h4hg-549x","tags":["advisory"]},{"url":"https://github.com/modelscope/modelscope","tags":["package"]},{"url":"https://pypi.org/project/modelscope","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-51427","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'].","status":"published","published":"2026-05-19T00:00:00Z","modified":"2026-07-15T01:26:10.373Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"adp"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-94","CWE-502"],"updated_at":"2026-11-02T14:32:30.302289Z"}],"euvd":[{"id":"EUVD-2025-209897","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'].","status":"published","published":"2026-05-19T00:00:00Z","modified":"2026-07-15T01:26:10Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T18:19:54.255702Z"}],"ghsa":[{"id":"GHSA-fhhq-h4hg-549x","title":"ModelScope is vulnerable to arbitrary code injection via a crafted module","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'].","status":"published","published":"2026-05-19T15:31:35Z","modified":"2026-06-04T18:52:31Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:40:16.698699Z"}],"nvd":[{"id":"CVE-2025-51427","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'].","status":"published","published":"2026-05-19T15:16:27.03Z","modified":"2026-07-24T12:10:00.21Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"secondary"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-94","CWE-502"],"updated_at":"2026-11-02T14:12:02.090779Z"}],"osv":[{"id":"GHSA-fhhq-h4hg-549x","title":"ModelScope is vulnerable to arbitrary code injection via a crafted module","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'].","status":"published","published":"2026-05-19T15:31:35Z","modified":"2026-07-13T16:42:27.445121464Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:46.39441Z"},{"id":"PYSEC-2026-2663","title":"ModelScope is vulnerable to arbitrary code injection via a crafted module","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'].","status":"published","published":"2026-07-13T15:19:09.174645Z","modified":"2026-07-13T16:32:39.622315206Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"updated_at":"2026-11-02T15:52:55.961245Z"}]}}
