{"id":"CVE-2025-51427","aliases":["CVE-2025-51427","GHSA-fhhq-h4hg-549x","PYSEC-2026-2663"],"related":[],"kind":"vulnerability","state":"published","title":"ModelScope is vulnerable to arbitrary code injection via a crafted module","summary":"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'].","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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'].","source":"cvelist"},{"lang":"es","text":"Se descubrió un problema en ModelScope 1.25.0 que permite a los atacantes ejecutar código arbitrario a través de un módulo especialmente diseñado listado en el archivo de configuración (dey_mini.yaml) bajo la clave ['nnet']['module'].","source":"nvd"}],"published":"2026-05-19T00:00:00.000Z","modified":"2026-07-24T12:10:00.210Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"}],"cwes":["CWE-94","CWE-502"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-agent-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-controller-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-router-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-storage-initializer-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.27.0"}],"ecosystem":"PyPI","package":"modelscope","purl":"pkg:pypi/modelscope","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.27.0"}],"ecosystem":"PyPI","package":"modelscope","purl":"pkg:pypi/modelscope","source":"pysec"}],"references":[{"url":"https://github.com/modelscope/modelscope/issues/1331","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/modelscope/modelscope/pull/1333","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-51427","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2479894","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-51427.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-51427","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/modelscope/modelscope/commit/75d54927e112261d39598ca08c15b66a7ff3f735","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/modelscope/modelscope","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/modelscope","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-fhhq-h4hg-549x","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-05-19T14:33:32.620Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-51427","url":"https://www.cve.org/CVERecord?id=CVE-2025-51427","licence":"CVE Terms of Use","modified":"2026-07-15T01:26:10.373Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fhhq-h4hg-549x","url":"https://github.com/advisories/GHSA-fhhq-h4hg-549x","licence":"CC-BY-4.0","modified":"2026-07-13T16:42:27.445Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-51427","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-51427","licence":"Public domain","modified":"2026-07-24T12:10:00.210Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2663","url":"https://osv.dev/vulnerability/PYSEC-2026-2663","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:39.622Z"}],"updatedAt":"2026-11-25T22:59:12.205Z","epss":{"score":0.00522,"percentile":0.45818,"date":"2026-12-01T12:00:22.000Z"}}