Vulnerability · Published Sep 26, 2022 · Assigned by snyk
CVE-2022-21797Arbitrary Code Execution
High 7.3
In plain English
A high-severity code injection in joblib. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.6% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.3High
Exploit odds (30 days)2.6%top 14.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
The package joblib from 0 and before 1.2.0 are vulnerable to Arbitrary Code Execution via the pre_dispatch flag in Parallel() class due to the eval() statement.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-joblib | 1.2.0-r0 | ALPINE-CVE-2022-21797 |
| Alpine:v3.21 | py3-joblib | 1.2.0-r0 | ALPINE-CVE-2022-21797 |
| Alpine:v3.22 | py3-joblib | 1.2.0-r0 | ALPINE-CVE-2022-21797 |
| Alpine:v3.23 | py3-joblib | 1.2.0-r0 | ALPINE-CVE-2022-21797 |
| Alpine:v3.24 | py3-joblib | 1.2.0-r0 | ALPINE-CVE-2022-21797 |
| Debian:12 | joblib | 1.2.0-1 | DEBIAN-CVE-2022-21797 |
| Debian:13 | joblib | 1.2.0-1 | DEBIAN-CVE-2022-21797 |
| Debian:14 | joblib | 1.2.0-1 | DEBIAN-CVE-2022-21797 |
| PyPI | joblib | 1.2.0 | GHSA-6hrg-qmvc-2xh8 |
| PyPI | joblib | 1.2.0 | PYSEC-2022-288 |
| Ubuntu:22.04:LTS | joblib | no fix listed | UBUNTU-CVE-2022-21797 |
Affected products (as reported)
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
References
- https://security.snyk.io/vuln/SNYK-PYTHON-JOBLIB-3027033
- https://github.com/joblib/joblib/commit/b90f10efeb670a2cc877fb88ebb3f2019189e059
- https://github.com/joblib/joblib/issues/1128
- https://github.com/joblib/joblib/pull/1321
- FEDORA-2022-c0bfe37ae5 vendor-advisory
- FEDORA-2022-c83ce1c000 vendor-advisory
- [debian-lts-announce] 20221117 [SECURITY] [DLA 3193-1] joblib security update mailing-list
- [debian-lts-announce] 20230330 [SECURITY] [DLA 3193-2] joblib security update mailing-list
- GLSA-202401-01 vendor-advisory