PyPI: scikit-learn

CVE-2020-13092

Safety vulnerability ID: SFTY-20220524-46487

scikit-learn (aka sklearn) through 0.23.0 can unserialize and execute commands from an untrusted file that is passed to the `joblib.load()` function, if `__reduce__` makes an `os.system call`. NOTE: third parties dispute this issue because the joblib.load() function is documented as unsafe and it is the user's responsibility to use the function in a secure manner.

Created at: Oct 11, 2025Updated at: Oct 11, 2025

Overview

scikit-learn Deserialization of Untrusted Data

Advisory

scikit-learn Deserialization of Untrusted Data

Affected Package

Affecting scikit-learn package, versions
<= 0.23.0

Also affects

---

How to Fix

We recommend updating scikit-learn to the latest non-vulnerable version.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more