CVE-2025-51427 json
ModelScope is vulnerable to arbitrary code injection via a crafted module
published 2026-05-19 5 mo ago modified 2026-07-24 3 mo ago also GHSA-fhhq-h4hg-549x , PYSEC-2026-2663 , EUVD-2025-209897
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 44%
- public exploits
- 0
- none known
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'].
Patch / fix
- pypi modelscope 1.27.0
- github.com/modelscope/modelscope@75d5492 commit
- github.com/modelscope/modelscope#1333 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-51427 updated cvss 8.1
ModelScope: ModelScope: Arbitrary code execution via crafted configuration module
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-kserve-agent-rhel9, rhoai/odh-kserve-router-rhel9, rhoai/odh-kserve-controller-rhel9, rhoai/odh-kserve-storage-initializer-rhel9not affected: vulnerable code not in execute path
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 5 mo ago
Exploit prediction
0.52% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| CISA ADP | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | modelscope | <1.27.0 |
1.27.0 |
Affected products
- Red Hat Red Hat OpenShift AI (RHOAI)
Classification
References
-
github.com
/modelscope/modelscope/pull/1333
web
-
github.com
/modelscope/modelscope/commit/75d54927e112261d39598ca08c15b66a7ff3f735
web
-
github.com
/JIRUWOZHI/vulnerability-disclosure/blob/main/CVE-2025-51427/CVE_2025_51427.md
exploit, web
-
github.com
/modelscope/modelscope/issues/1331
web
-
access.redhat.com
/security/cve/CVE-2025-51427
vdb-entry
-
bugzilla.redhat.com
/show_bug.cgi?id=2479894
issue-tracking
- security.access.redhat.com /data/csaf/v2/vex/2025/cve-2025-51427.json
-
nvd.nist.gov
/vuln/detail/CVE-2025-51427
advisory
-
github.com
/modelscope/modelscope
package
-
pypi.org
/project/modelscope
package
-
github.com
/advisories/GHSA-fhhq-h4hg-549x
advisory
Sources
- CVE List CVE-2025-51427
- GitHub Advisory GHSA-fhhq-h4hg-549x
- NVD CVE-2025-51427
- OSV PYSEC-2026-2663
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.