# CVE-2025-51427: ModelScope is vulnerable to arbitrary code injection via a crafted module

- Severity: High 7.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T00:00:00.000Z
- Modified: 2026-07-24T12:10:00.210Z
- Also known as: GHSA-fhhq-h4hg-549x, PYSEC-2026-2663
- Weaknesses: CWE-94, CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- rhoai/odh-kserve-agent-rhel9: no versions given
- rhoai/odh-kserve-controller-rhel9: no versions given
- rhoai/odh-kserve-router-rhel9: no versions given
- rhoai/odh-kserve-storage-initializer-rhel9: no versions given
- modelscope (PyPI): before 1.27.0

## Every score

- CISA-ADP: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- redhat-SADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- PyPA Advisory Database: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md> (exploit, web)
- <https://github.com/modelscope/modelscope/issues/1331> (web)
- <https://github.com/modelscope/modelscope/pull/1333> (web)
- <https://access.redhat.com/security/cve/CVE-2025-51427> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2479894> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-51427.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-51427> (advisory)
- <https://github.com/modelscope/modelscope/commit/75d54927e112261d39598ca08c15b66a7ff3f735> (web)
- <https://github.com/modelscope/modelscope> (package)
- <https://pypi.org/project/modelscope> (package)
- <https://github.com/advisories/GHSA-fhhq-h4hg-549x> (advisory)

## Sources

- CVE List: [CVE-2025-51427](https://www.cve.org/CVERecord?id=CVE-2025-51427), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-fhhq-h4hg-549x](https://github.com/advisories/GHSA-fhhq-h4hg-549x), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2025-51427](https://nvd.nist.gov/vuln/detail/CVE-2025-51427), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-2663](https://osv.dev/vulnerability/PYSEC-2026-2663), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2025-51427 · Whole record: https://cve.day/CVE-2025-51427.json · Rebuilt by cve.day 2026-11-25T22:59:12.205Z
