CVE-2022-21797: joblib vulnerable to arbitrary code execution
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.29309%
CWE
Published
9/27/2022
Updated
9/23/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| joblib | pip | < 1.2.0 | 1.2.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsafe use of eval() in processing the pre_dispatch parameter in Parallel class initialization. The commit diff shows the vulnerable line 'pre_dispatch = eval(pre_dispatch)' was replaced with a restricted eval and later an AST-based parser. The CVE description explicitly cites improper eval usage in pre_dispatch handling as the root cause. The function responsible for processing this parameter resides in Parallel's initialization logic in parallel.py.