CVEfocus › CVE database › CVE-2022-21699

CVE-2022-21699Execution with Unnecessary Privileges in ipython

CVSS 8.2 HighEPSS 0.6% (higher than 41% of CVEs)Published 2022-01-19Updated 2025-04-22Assigner: GitHub_M

IPython (Interactive Python) is a command shell for interactive computing in multiple programming languages, originally developed for the Python programming language. Affected versions are subject to an arbitrary code execution vulnerability achieved by not properly managing cross user temporary files. This vulnerability allows one user to run code as another on the same machine. All users are advised to upgrade.

CWE-250CWE-279

What to do

Fixed builds are available from Alpine, Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

13Fixed
4Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04ipythonNot affected
vulnerable_code_not_present
Ubuntu 22.04ipythonNot affected
vulnerable_code_not_present
Ubuntu 20.04ipythonFix pending7.13.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-21699
Ubuntu 18.04ipythonFix pending5.5.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-21699
Ubuntu 16.04ipythonFix pendingUBUNTU-CVE-2022-21699
Ubuntu 14.04ipythonFix pendingUBUNTU-CVE-2022-21699
Debian 14ipythonFixed7.31.1-1DEBIAN-CVE-2022-21699
Debian 13ipythonFixed7.31.1-1DEBIAN-CVE-2022-21699
Debian 12ipythonFixed7.31.1-1DEBIAN-CVE-2022-21699
Alpine Linux 3.24ipythonFixed7.31.1-r0ALPINE-CVE-2022-21699
Alpine Linux 3.23ipythonFixed7.31.1-r0ALPINE-CVE-2022-21699
Alpine Linux 3.22ipythonFixed7.31.1-r0ALPINE-CVE-2022-21699
Alpine Linux 3.21ipythonFixed7.31.1-r0ALPINE-CVE-2022-21699
Alpine Linux 3.20ipythonFixed7.31.1-r0ALPINE-CVE-2022-21699
Alpine Linux 3.19ipythonFixed7.31.1-r0ALPINE-CVE-2022-21699
Alpine Linux 3.18ipythonFixed7.31.1-r0ALPINE-CVE-2022-21699
Alpine Linux 3.17ipythonFixed7.31.1-r0ALPINE-CVE-2022-21699
Alpine Linux 3.16ipythonFixed7.31.1-r0ALPINE-CVE-2022-21699
PyPI libraryipythonFixed7.31.1PYSEC-2022-12

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.