{"id":"CVE-2025-51427","aliases":["GHSA-fhhq-h4hg-549x","PYSEC-2026-2663"],"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'].","published_at":"2026-05-19T00:00:00Z","modified_at":"2026-07-15T01:26:10.373Z","products":[],"rating":{"severity":"high","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0052200001664459705,"percentile":0.4510599970817566,"date":"2026-11-19T00:00:00Z"},"priority":10.1,"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_stack":[],"affected_other":[{"ecosystem":"PyPI","package":"modelscope","purl":"pkg:pypi/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"],"fixed":["1.27.0"],"provider":"osv","source":"GHSA-fhhq-h4hg-549x","relation":"self"},{"ecosystem":"PyPI","package":"modelscope","purl":"pkg:pypi/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"],"fixed":["1.27.0"],"provider":"osv","source":"PYSEC-2026-2663","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2025-51427"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2025-51427","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2025-51427","license":"CC-BY-4.0","published_at":"2026-05-19T00:00:00Z","modified_at":"2026-07-15T01:26:10.373Z","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'].","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":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","source":"CISA-ADP:CVE-2025-51427"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"redhat-SADP:CVE-2025-51427"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/modelscope/modelscope/issues/1331"},{"type":"WEB","url":"https://github.com/modelscope/modelscope/pull/1333"},{"type":"WEB","url":"https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md"}]},{"provider":"osv","source_id":"GHSA-fhhq-h4hg-549x","relation":"self","url":"https://osv.dev/vulnerability/GHSA-fhhq-h4hg-549x","license":"CC-BY-4.0","published_at":"2026-05-19T15:31:35Z","modified_at":"2026-07-13T16:42:27.445121Z","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":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","source":"GHSA-fhhq-h4hg-549x"}],"affected":[{"ecosystem":"PyPI","package":"modelscope","purl":"pkg:pypi/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"],"fixed":["1.27.0"],"provider":"osv","source":"GHSA-fhhq-h4hg-549x","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-51427"},{"type":"WEB","url":"https://github.com/modelscope/modelscope/issues/1331"},{"type":"WEB","url":"https://github.com/modelscope/modelscope/pull/1333"},{"type":"WEB","url":"https://github.com/modelscope/modelscope/commit/75d54927e112261d39598ca08c15b66a7ff3f735"},{"type":"WEB","url":"https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md"},{"type":"PACKAGE","url":"https://github.com/modelscope/modelscope"}]},{"provider":"osv","source_id":"PYSEC-2026-2663","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-2663","license":"CC-BY-4.0","published_at":"2026-07-13T15:19:09.174645Z","modified_at":"2026-07-13T16:32:39.622315Z","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":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","source":"PYSEC-2026-2663"}],"affected":[{"ecosystem":"PyPI","package":"modelscope","purl":"pkg:pypi/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"],"fixed":["1.27.0"],"provider":"osv","source":"PYSEC-2026-2663","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-51427"},{"type":"WEB","url":"https://github.com/modelscope/modelscope/issues/1331"},{"type":"WEB","url":"https://github.com/modelscope/modelscope/pull/1333"},{"type":"WEB","url":"https://github.com/modelscope/modelscope/commit/75d54927e112261d39598ca08c15b66a7ff3f735"},{"type":"WEB","url":"https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md"},{"type":"PACKAGE","url":"https://github.com/modelscope/modelscope"},{"type":"PACKAGE","url":"https://pypi.org/project/modelscope"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-fhhq-h4hg-549x"}]},{"provider":"redhat-vex","source_id":"CVE-2025-51427","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2025-51427","license":"CC-BY-4.0","published_at":"2026-05-19T00:00:00Z","modified_at":"2026-05-27T09:40:20.551461Z","summary":"ModelScope: ModelScope: Arbitrary code execution via crafted configuration module","details":"A flaw was found in ModelScope. This vulnerability allows a remote attacker to execute arbitrary code by providing a specially crafted module within the configuration file (dey_mini.yaml) under the 'nnet.module' key. Successful exploitation could lead to complete system compromise.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2025-51427"},{"type":"Red Hat","score":"Important","source":"CVE-2025-51427"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2025-51427"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-51427.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-51427"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2479894"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-51427"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-51427"},{"type":"WEB","url":"https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md"},{"type":"WEB","url":"https://github.com/modelscope/modelscope/issues/1331"},{"type":"WEB","url":"https://github.com/modelscope/modelscope/pull/1333"}]}],"references":[{"type":"WEB","url":"https://github.com/modelscope/modelscope/issues/1331"},{"type":"WEB","url":"https://github.com/modelscope/modelscope/pull/1333"},{"type":"WEB","url":"https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-51427"},{"type":"WEB","url":"https://github.com/modelscope/modelscope/commit/75d54927e112261d39598ca08c15b66a7ff3f735"},{"type":"PACKAGE","url":"https://github.com/modelscope/modelscope"},{"type":"PACKAGE","url":"https://pypi.org/project/modelscope"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-fhhq-h4hg-549x"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-51427.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-51427"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2479894"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-51427"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2025-51427","url":"https://www.cve.org/CVERecord?id=CVE-2025-51427","license":"CC-BY-4.0","modified_at":"2026-07-15T01:26:10.373Z","relation":"self"},{"provider":"osv","source_id":"GHSA-fhhq-h4hg-549x","url":"https://osv.dev/vulnerability/GHSA-fhhq-h4hg-549x","license":"CC-BY-4.0","modified_at":"2026-07-13T16:42:27.445121Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-2663","url":"https://osv.dev/vulnerability/PYSEC-2026-2663","license":"CC-BY-4.0","modified_at":"2026-07-13T16:32:39.622315Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2025-51427","url":"https://access.redhat.com/security/cve/CVE-2025-51427","license":"CC-BY-4.0","modified_at":"2026-05-27T09:40:20.551461Z","relation":"self"}]}
