CVE-2025-51427: Code Injection

Published May 19, 2026
·
Updated

An issue was discovered in ModelScope 1.25.0 allowing attackers to execute arbitrary code via crafted module listed in the configuration file (deymini.yaml) under the key ['nnet']['module'].

Affected Software

1 affected component
modelscope ModelScope=1.25.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ModelScope to a version that resolves this vulnerability.

    Fixed in 1.25.0
  2. Configuration

    In dey_mini.yaml, ensure the value under key ['nnet']['module'] is not attacker-controlled and refers only to a trusted/expected module.

    ModelScope ['nnet']['module'] in dey_mini.yaml = Use only trusted modules; do not load attacker-controlled/crafted module values

Event History

May 19, 2026
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via Red Hat·03:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the risk level of CVE-2025-51427?

CVE-2025-51427 has a risk level of 75, indicating a high threat to security.

2

What is the severity rating of CVE-2025-51427?

CVE-2025-51427 has a severity rating of 8.1 according to the CVSS v3.1 framework.

3

How does CVE-2025-51427 allow code execution?

CVE-2025-51427 allows attackers to execute arbitrary code by injecting malicious module configurations in the 'dey_mini.yaml' file.

4

What version of ModelScope is affected by CVE-2025-51427?

ModelScope version 1.25.0 is vulnerable to CVE-2025-51427.

5

How can I mitigate the risk of CVE-2025-51427?

To mitigate CVE-2025-51427, ensure that only trusted modules are listed in the configuration file and update to a patched version of ModelScope.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203