CVE-2022-21699 json
Execution with Unnecessary Privileges in ipython
published 2022-01-19 4 y ago modified 2026-09-10 1 mo ago also GHSA-pq7m-3gw7-gq5x , PYSEC-2022-12 , EUVD-2022-0126
- cvss
- 8.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi ipython 5.11, 6.0.0rc1, 7.16.3, 7.31.1, 8.0.1
- ipython ipython 7.16.3, 7.31.1, 8.0.1
- ipython Debian 14, Debian 13, Debian 12 7.31.1-1
debian advisories DEBIAN-CVE-2022-21699
- ipython Ubuntu Pro 18.04 LTS 5.5.0-1ubuntu0.1~esm1
- ipython Ubuntu Pro 20.04 LTS 7.13.0-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2022-21699
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-ipython openSUSE Tumbleweed 8.31.0-1.1
- python-ipython Package Hub 15 SP3, openSUSE Leap 15.3 7.13.0-bp153.2.6.1
- python-ipython-test Package Hub 15 SP3, openSUSE Leap 15.3 7.13.0-bp153.2.6.6
opensuse advisories openSUSE-SU-2025:14718-1openSUSE-SU-2022:10043-1
- ipython Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 7.31.1-r0
alpine advisories ALPINE-CVE-2022-21699
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
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-21699 updated cvss 8.8
ipython: arbitrary code execution by cross user temporary files mismanagment
-
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
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
0.65% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.2 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 2.0 | 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.2 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | ipython | <5.11 >=6.0.0, <7.16.3 >=7.17.0, <7.31.1 >=8.0.0, <8.0.1 <6.0.0rc1 |
5.11 7.16.3 7.31.1 8.0.1 6.0.0rc1 |
Affected products
- ipython ipython
Classification
References
-
github.com
/ipython/ipython/commit/46a51ed69cdf41b4333943d9ceeb945c4ede5668
web, patch, third-party-advisory
-
github.com
/ipython/ipython/commit/5fa1e409d2dc126c456510c16ece18e08b524e5b
web
-
github.com
/ipython/ipython/commit/67ca2b3aa9039438e6f80e3fccca556f26100b4d
web
-
github.com
/ipython/ipython/commit/a06ca837273271b4acb82c29be97c0b6d12a30ea
web
-
github.com
/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x
web, exploit, third-party-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/CRQRTWHYXMLDJ572VGVUZMUPEOTPM3KB/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/DZ7LVZBB4D7KVSFNEQUBEHFO3JW6D2ZK/
vendor-advisory
-
ipython.readthedocs.io
/en/stable/whatsnew/version8.html#ipython-8-0-1-cve-2022-21699
web, release-notes, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/01/msg00021.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-21699
advisory
-
github.com
/ipython/ipython
package
-
github.com
/pypa/advisory-database/tree/main/vulns/ipython/PYSEC-2022-12.yaml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/CRQRTWHYXMLDJ572VGVUZMUPEOTPM3KB
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/DZ7LVZBB4D7KVSFNEQUBEHFO3JW6D2ZK
web
Sources
- CVE List CVE-2022-21699
- GitHub Advisory GHSA-pq7m-3gw7-gq5x
- NVD CVE-2022-21699
- OSV PYSEC-2022-12
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.