CVE-2022-21797: Arbitrary Code Execution

Published Sep 26, 2022
·
Updated

The package joblib from 0 and before 1.2.0 are vulnerable to Arbitrary Code Execution via the predispatch flag in Parallel() class due to the eval() statement.

Other sources

The package joblib from 0 and before 1.2.0 is vulnerable to Arbitrary Code Execution via the predispatch flag in Parallel() class due to the eval() statement.

Affected Software

19 affected componentsFixes available
pip/joblib<1.2.0
1.2.0
Joblib Project Joblib Python<1.1.1
Fedoraproject Fedora=36
Fedoraproject Fedora=37
Debian Debian Linux=10.0
IBM Watson Studio on Cloud Pak for Data<=4.0
IBM Watson Studio on Cloud Pak for Data<=5.0
debian/joblib<1.2.0-1
1.2.0-1
debian/joblib<1.2.0-1
1.2.0-1
debian/joblib<1.2.0-1
1.2.0-1
debian/joblib
1.2.0-4+deb12u11.4.2-41.5.3-2
alpine/py3-joblib<1.2.0-r0
1.2.0-r0
alpine/py3-joblib<1.2.0-r0
1.2.0-r0
alpine/py3-joblib<1.2.0-r0
1.2.0-r0
alpine/py3-joblib<1.2.0-r0
1.2.0-r0
alpine/py3-joblib<1.2.0-r0
1.2.0-r0
alpine/py3-joblib<1.2.0-r0
1.2.0-r0
alpine/py3-joblib<1.2.0-r0
1.2.0-r0
alpine/py3-joblib<1.2.0-r0
1.2.0-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/joblib to a version that resolves this vulnerability.

    Fixed in 1.2.0
  2. Upgrade

    Upgrade debian/joblib to a version that resolves this vulnerability.

    Fixed in 1.2.0-4+deb12u1Fixed in 1.4.2-4Fixed in 1.5.3-2
  3. Upgrade

    Upgrade alpine/py3-joblib to a version that resolves this vulnerability.

    Fixed in 1.2.0-r0
  4. Upgrade

    Upgrade debian/joblib to a version that resolves this vulnerability.

    Fixed in 1.2.0-1
  5. Upgrade

    Upgrade joblib to a version that resolves this vulnerability.

    Fixed in 1.2.0

Event History

Sep 26, 2022
CVE Published
via MITRE·05:05 AM
Data Sourced
via MITRE·05:05 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·05:15 AM
DescriptionSeverityAffected Software
Sep 27, 2022
Advisory Published
via GitHub·12:00 AM
Aug 28, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2022-21797?

CVE-2022-21797 is classified as a high severity vulnerability due to the risk of arbitrary code execution.

2

How do I fix CVE-2022-21797?

To fix CVE-2022-21797, upgrade the joblib package to version 1.2.0 or higher.

3

What systems are affected by CVE-2022-21797?

CVE-2022-21797 affects joblib versions from 0 to 1.1.1, specifically those installed via pip and certain Linux distributions like Fedora and Debian.

4

What type of vulnerability is CVE-2022-21797?

CVE-2022-21797 is an arbitrary code execution vulnerability caused by the misuse of the eval() function in the joblib library.

5

Can CVE-2022-21797 be exploited remotely?

Yes, CVE-2022-21797 can be exploited remotely if an attacker can control the input parameters sent to the affected joblib function.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203