CVE-2025-54886: skops Arbitrary Code Execution Vulnerability

skops Updated 07 Jul 2026

Summary

07/07/2026
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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The skops package is designed for model documentation and sharing in Python, primarily used in machine learning applications. It allows users to create and manage model cards that provide metadata about machine learning models. However, a significant security flaw exists in the Card class, which can lead to arbitrary code execution when improperly formatted model files are loaded.

Vulnerability Detail

The vulnerability arises from the Card class's handling of model files. When a file other than a .zip is provided, the Card.get_model method defaults to using the joblib library for loading the model without any warning. This behavior bypasses the security mechanisms inherent in skops, allowing malicious code execution through untrusted files. The issue is exacerbated by the fact that the user does not need to explicitly call get_model; it is invoked during the instantiation of the Card object. This silent fallback to joblib poses a significant risk, especially in collaborative environments where users may unknowingly load compromised files.

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.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, users should ensure that only .zip files are provided to the Card class during instantiation. For example:

from skops.card import Card

# Ensure the model file is a .zip file
card = Card('model.zip')

Conclusion

The skops package contains a critical vulnerability (CVE-2025-54886) that allows arbitrary code execution through improper file handling. Users are strongly advised to update to the patched version 0.13.0 or later and to implement workarounds until the update can be applied.

See every vulnerability recorded for skops →

Share this vulnerability

FAQ

CVE-2025-54886 is a vulnerability in the skops package that allows arbitrary code execution through improper handling of model files.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which monitors open-source vulnerabilities in real-time.

If an immediate update is not possible, ensure that only .zip files are used with the Card class to mitigate the risk of arbitrary code execution.

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

More information about skops can be found on its official documentation and repository on GitHub.

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.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