Skip to content
OpenAdvisories
High · 8.2 CVE-2022-21699 EUVD-2022-0126GHSA-pq7m-3gw7-gq5xPYSEC-2022-12

Execution with Unnecessary Privileges in ipython

Published Jan 19, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
ipython ipython < 5.11, >= 6.0.0, < 7.16.3, >= 7.17.0, < 7.31.1, >= 8.0.0, < 8.0.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ipython 7.31.1-1 —
Debian 13 ipython 7.31.1-1 —
Debian 12 ipython 7.31.1-1 —
Debian 11 ipython 7.20.0-1+deb11u1 DSA-5065-1
Debian 10 ipython 5.8.0-1+deb10u1 DSA-5065-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 ipython 5.1.0-3+deb9u1 DLA-2896-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS ipython 7.13.0-1ubuntu0.1~esm1 USN-5953-1
Ubuntu Pro 18.04 LTS ipython 5.5.0-1ubuntu0.1~esm1 USN-5953-1
Ubuntu Pro 16.04 LTS ipython No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS ipython 1.2.1-2ubuntu0.1~esm1 USN-5953-1
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP3 python-ipython 7.13.0-bp153.2.6.1 openSUSE-SU-2022:10043-1
SUSE Package Hub 15 SP3 python-ipython-test 7.13.0-bp153.2.6.6 openSUSE-SU-2022:10043-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-ipython 8.31.0-1.1 openSUSE-SU-2025:14718-1
openSUSE Leap 15.3 python-ipython 7.13.0-bp153.2.6.1 openSUSE-SU-2022:10043-1
openSUSE Leap 15.3 python-ipython-test 7.13.0-bp153.2.6.6 openSUSE-SU-2022:10043-1
ReleasePackageFixed inAdvisory
Alpine v3.24 ipython 7.31.1-r0 —
Alpine v3.23 ipython 7.31.1-r0 —
Alpine v3.22 ipython 7.31.1-r0 —
Alpine v3.21 ipython 7.31.1-r0 —
Alpine v3.20 ipython 7.31.1-r0 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 ipython 7.31.1-r0 —
Alpine v3.18 ipython 7.31.1-r0 —
Alpine v3.17 ipython 7.31.1-r0 —
Alpine v3.16 ipython 7.31.1-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-py No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kubeflow-pipelines-visualization-server 2.4.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI ipython < 5.11 5.11 GHSA-pq7m-3gw7-gq5x
PyPI ipython >= 6.0.0, < 7.16.3 7.16.3 GHSA-pq7m-3gw7-gq5x
PyPI ipython >= 7.17.0, < 7.31.1 7.31.1 GHSA-pq7m-3gw7-gq5x
PyPI ipython >= 8.0.0, < 8.0.1 8.0.1 GHSA-pq7m-3gw7-gq5x
PyPI ipython < 6.0.0rc1 · >= 6.0.0, < 7.16.3 · >= 7.17.0, < 7.31.1 · >= 8.0.0, < 8.0.1 6.0.0rc1, 7.16.3, 7.31.1, 8.0.1 PYSEC-2022-12

Advisories 6

References