# CVE-2020-13092: scikit-learn Deserialization of Untrusted Data

Source: https://junglewise.ai/threats/cve-2020-13092-scikit-learn-deserialization-of-untrusted-data  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2020-05-15  
License: CC BY 4.0 with a link back

CVE-2020-13092 · Severity: low · CVSS 3.1 · Published 2020-05-15

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

Technologies: [scikit-learn (PyPI)](https://junglewise.ai/threats/technologies/scikit-learn). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2020-13092 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2020-13092 being exploited in the wild.

**How severe is CVE-2020-13092?** Low severity, with a CVSS score of 3.1, published 15 May 2020.

**Which products and versions are affected?** scikit-learn (PyPI) ECOSYSTEM:introduced=0,fixed=0.23.1, ECOSYSTEM:introduced=0,last_affected=0.23.0.

**Is there a fix for CVE-2020-13092?** Yes. scikit-learn (PyPI): upgrade to 0.23.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2020-13092?** Check whether you run scikit-learn (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- scikit-learn (PyPI): upgrade to 0.23.1 or later

  ```sh
  pip install "scikit-learn>=0.23.1"
  ```


## Affected products

- scikit-learn (PyPI) ECOSYSTEM:introduced=0,fixed=0.23.1, ECOSYSTEM:introduced=0,last_affected=0.23.0

## Identifiers

- CVE-2020-13092
- GHSA-jjw5-xxj6-pcv5
- PYSEC-2020-107

## Related threats

- [PYSEC-2024-110 - A sensitive data leakage vulnerability was identified in scikit-learn's TfidfVectorizer, specifically in versions up to and including 1.4.1.](https://junglewise.ai/threats/cve-2024-5206-scikit-learn-sensitive-data-leakage-vulnerability)
- [scikit-learn Denial of Service](https://junglewise.ai/threats/cve-2020-28975-scikit-learn-denial-of-service)
