CVE-2025-54413: Skops Arbitrary Code Execution via MethodNode Vulnerability

skops Updated 07 Jul 2026

Summary

07/07/2026
Yes i
High
8.7

CVE-2025-54413: An inconsistency in MethodNode can be exploited to access unexpected object fields through dot notation. Affects skops versions < 0.12.0. Fixed in 0.12.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Skops is an open-source library designed for the serialization and deserialization of machine learning models in Python. It allows users to save and load models in a structured format, facilitating easy sharing and deployment. However, a critical vulnerability has been identified in the MethodNode component, which can lead to arbitrary code execution during the loading process of models, posing significant security risks.

Vulnerability Detail

The vulnerability arises from an inconsistency in the MethodNode's handling of object attributes accessed via dot notation. Specifically, while the class and module fields are checked during the loading phase, they are not utilized by MethodNode to enforce security. This oversight allows attackers to chain multiple MethodNode instances, traversing the object hierarchy to access dangerous attributes or methods, including built-in functions like exec and eval. As a result, an attacker can craft a malicious model file that executes arbitrary code on the victim's machine at load time, without any user interaction beyond loading the model.

How To Fix

Latest published version: 0.16.0 as of 23 Oct 2026

pip install --upgrade "skops==0.16.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.12.0

This is the first release that contains the fix.

pip install --upgrade "skops==0.12.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid loading untrusted model files or ensure that the models you load are from trusted sources. Additionally, you can implement strict validation checks on the attributes accessed through MethodNode to mitigate the risk of arbitrary code execution.

Conclusion

The CVE-2025-54413 vulnerability in the Skops library poses a significant risk due to its potential for arbitrary code execution during model loading. Users are strongly advised to update to the latest version to protect against this threat and to implement best practices for loading models from trusted sources.

See every vulnerability recorded for skops →

Share this vulnerability

FAQ

CVE-2025-54413 is a vulnerability in the Skops library that allows for arbitrary code execution through the MethodNode component during model loading.

The vulnerability has a CVSS score of 8.7, indicating a high severity level that can lead to significant security risks if exploited.

If you are using Skops, it is crucial to update to version 0.12.0 or later to mitigate the risks associated with this vulnerability.

Yes, you can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploitation of this vulnerability can lead to arbitrary code execution on the victim's machine, allowing attackers to execute malicious commands or access sensitive data.

Related vulnerabilities

Recent vulnerabilities recorded for skops.

How To Fix

Latest published version: 0.16.0 as of 23 Oct 2026

pip install --upgrade "skops==0.16.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.12.0

This is the first release that contains the fix.

pip install --upgrade "skops==0.12.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback