CVE-2022-21797 json
Arbitrary Code Execution
published 2022-09-26 4 y ago modified 2026-06-17 4 mo ago also GHSA-6hrg-qmvc-2xh8 , PYSEC-2022-288 , EUVD-2022-0128
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi joblib 1.2.0
- n/a joblib 1.2.0
- joblib_project joblib 1.2.0
- joblib Debian 14, Debian 13, Debian 12 1.2.0-1
debian advisories DEBIAN-CVE-2022-21797
- python-joblib openSUSE Tumbleweed 1.4.2-2.1
- python-joblib Package Hub 15 SP3, openSUSE Leap 15.3 0.16.0-bp153.2.3.1
opensuse advisories openSUSE-SU-2025:14914-1openSUSE-SU-2022:10214-1
- py3-joblib Alpine 3.24, Alpine 3.23, Alpine 3.22 +5 more 1.2.0-r0
alpine advisories ALPINE-CVE-2022-21797
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/joblib/joblib@b90f10e commit
- github.com/joblib/joblib@6638b9e commit
- github.com/joblib/joblib#1321 pull request
- github.com/joblib/joblib#1327 pull request
- github.com/joblib/joblib#1352 pull request
- security.snyk.io/vuln/SNYK-PYTHON-JOBLIB-3027033 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-21797 updated cvss 7.3
joblib: Arbitrary Code Execution in joblib
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
2.63% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-PYTHON-JOBLIB-3027033 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/joblib/joblib/issues/1128 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P |
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | joblib | <1.2.0 |
1.2.0 |
Affected products
- n/a joblib
- fedoraproject fedora
- debian debian_linux
- joblib_project joblib
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/joblib/joblib/commit/b90f10efeb670a2cc877fb88ebb3f2019189e059
web, patch, third-party-advisory
-
github.com
/joblib/joblib/pull/1321
web, issue-tracking, patch, third-party-advisory
-
security.snyk.io
/vuln/SNYK-PYTHON-JOBLIB-3027033
web, exploit, issue-tracking, patch, third-party-advisory
-
github.com
/joblib/joblib/pull/1327
web
-
github.com
/joblib/joblib/pull/1352
web
-
github.com
/joblib/joblib/commit/6638b9e9711ad1ebbf6dd95aa7cee0dca9897b42
web
-
github.com
/joblib/joblib/issues/1128
web, exploit, issue-tracking, third-party-advisory, report
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/BVOMMW37OXZWU2EV5ONAAS462IQEHZOF/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/MJ5XTJS6OKJRRVXWFN5J67K3BYPEOBDF/
vendor-advisory
-
security.gentoo.org
/glsa/202401-01
vendor-advisory, web
-
lists.debian.org
/debian-lts-announce/2022/11/msg00020.html
mailing-list, web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2023/03/msg00027.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-21797
advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/MJ5XTJS6OKJRRVXWFN5J67K3BYPEOBDF
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/BVOMMW37OXZWU2EV5ONAAS462IQEHZOF
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/MJ5XTJS6OKJRRVXWFN5J67K3BYPEOBDF
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/BVOMMW37OXZWU2EV5ONAAS462IQEHZOF
web
-
github.com
/pypa/advisory-database/tree/main/vulns/joblib/PYSEC-2022-288.yaml
web
-
github.com
/joblib/joblib
package
-
github.com
/advisories/GHSA-6hrg-qmvc-2xh8
advisory
Sources
- CVE List CVE-2022-21797
- GitHub Advisory GHSA-6hrg-qmvc-2xh8
- NVD CVE-2022-21797
- OSV PYSEC-2022-288
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.