CVE-2025-54886: SKOPS Arbitrary Code Execution via Card.get_model

skops Updated 02 Oct 2025

Summary

07/08/2025
Yes i
High
8.4

CVE-2025-54886: SKOPS Card.get_model happily allows arbitrary code execution. Affects skops versions < 0.13.0. Fixed in 0.13.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 a Python library designed for managing and loading machine learning models securely. It provides functionalities to load models in a safe manner, ensuring that only trusted models are executed. However, a vulnerability has been identified in the Card.get_model function, which can lead to arbitrary code execution if not properly managed.

Vulnerability Detail

The vulnerability arises from the Card.get_model function, which allows loading models using both skops and joblib libraries. While skops is designed to be secure, joblib does not enforce the same security measures, allowing for arbitrary code execution when loading untrusted model files. This occurs silently when a non-zip file is provided, leading to potential exploitation by attackers who can craft malicious model files that execute code on the victim's machine without any indication of risk.

How To Fix

Minimum fixed version

0.13.0

This is the first release that contains the fix.

pip install --upgrade "skops==0.13.0"

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

Workaround

As a temporary workaround, ensure that only trusted model files are loaded and avoid using joblib for loading models. You can explicitly check the file type before loading, as shown in the following code snippet:

import zipfile
from skops.card import Card

model_path = 'model.skops'
if zipfile.is_zipfile(model_path):
    card = Card(model_path)
    clf = card.get_model()
else:
    raise ValueError('Untrusted model file format. Please provide a .skops file.')

Conclusion

The vulnerability identified in the SKOPS library poses a significant risk due to the potential for arbitrary code execution. It is crucial for users to update to the patched version and implement recommended workarounds to mitigate risks until they can upgrade.

See every vulnerability recorded for skops →

Share this vulnerability

FAQ

CVE-2025-54886 is a vulnerability in the SKOPS library that allows for arbitrary code execution through the Card.get_model function.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which monitors open-source vulnerabilities without requiring installation.

The CVSS score of this vulnerability is 8.4, indicating a high severity level.

If you cannot update the package, ensure that you only load trusted model files and implement checks to prevent loading untrusted formats.

The implications include the potential for attackers to execute arbitrary code on a victim's machine, leading to data breaches or system compromise.

Related vulnerabilities

Recent vulnerabilities recorded for skops.

How To Fix

Minimum fixed version

0.13.0

This is the first release that contains the fix.

pip install --upgrade "skops==0.13.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