{"id":"CVE-2022-21797","aliases":["CVE-2022-21797","GHSA-6hrg-qmvc-2xh8","PYSEC-2022-288"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Code Execution","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"The package joblib from 0 and before 1.2.0 is vulnerable to Arbitrary Code Execution via the `pre_dispatch` flag in `Parallel()` class due to the `eval()` statement.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete joblib versiones a partir de 0 anteriores a 1.2.0, son vulnerables a una Ejecución de Código Arbitraria por medio del flag pre_dispatch en la clase Parallel() debido a la sentencia eval().","source":"nvd"}],"published":"2022-09-26T05:05:17.410Z","modified":"2026-06-17T04:27:00.063Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","fixed":"1.2.0","status":"affected"}],"product":"joblib","source":"cvelist"},{"ranges":[{"version":"36","status":"affected"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"10.0","status":"affected"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"37","status":"affected"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.2.0","status":"affected"}],"vendor":"joblib_project","product":"joblib","cpe":"cpe:2.3:a:joblib_project:joblib:*:*:*:*:*:python:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.2.0"}],"ecosystem":"PyPI","package":"joblib","purl":"pkg:pypi/joblib","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.1.1"}],"vendor":"joblib_project","product":"joblib","cpe":"cpe:2.3:a:joblib_project:joblib:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"36"},{"status":"affected","version":"37"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"b90f10efeb670a2cc877fb88ebb3f2019189e059"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.2.0"}],"ecosystem":"PyPI","package":"joblib","purl":"pkg:pypi/joblib","repo":"https://github.com/joblib/joblib","source":"pysec"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-JOBLIB-3027033","tags":["exploit","issue-tracking","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/joblib/joblib/commit/b90f10efeb670a2cc877fb88ebb3f2019189e059","tags":["fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/joblib/joblib/issues/1128","tags":["exploit","issue-tracking","report","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/joblib/joblib/pull/1321","tags":["issue-tracking","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BVOMMW37OXZWU2EV5ONAAS462IQEHZOF/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MJ5XTJS6OKJRRVXWFN5J67K3BYPEOBDF/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00020.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00027.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.gentoo.org/glsa/202401-01","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21797","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/joblib/joblib/pull/1327","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/joblib/joblib/pull/1352","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/joblib/joblib/commit/6638b9e9711ad1ebbf6dd95aa7cee0dca9897b42","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MJ5XTJS6OKJRRVXWFN5J67K3BYPEOBDF","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BVOMMW37OXZWU2EV5ONAAS462IQEHZOF","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MJ5XTJS6OKJRRVXWFN5J67K3BYPEOBDF","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BVOMMW37OXZWU2EV5ONAAS462IQEHZOF","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/joblib/PYSEC-2022-288.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/joblib/joblib","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-6hrg-qmvc-2xh8","tags":["advisory"],"sources":["pysec"]}],"credits":["Jim Lin"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-08-23T03:55:38.496Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21797","url":"https://www.cve.org/CVERecord?id=CVE-2022-21797","licence":"CVE Terms of Use","modified":"2024-09-17T04:24:12.503Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6hrg-qmvc-2xh8","url":"https://github.com/advisories/GHSA-6hrg-qmvc-2xh8","licence":"CC-BY-4.0","modified":"2025-02-14T05:27:38.075Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21797","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21797","licence":"Public domain","modified":"2026-06-17T04:27:00.063Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-288","url":"https://osv.dev/vulnerability/PYSEC-2022-288","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:53.951Z"}],"updatedAt":"2026-11-25T22:58:15.290Z","epss":{"score":0.02803,"percentile":0.8688,"date":"2026-12-02T12:00:21.000Z"}}