CVE-2022-21699
HIGH 8.8CVSS 3.1Execution with Unnecessary Privileges in ipython
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.
- Published
- 19 Jan 2022
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-250CWE-269CWE-279
- Also known as
- GHSA-pq7m-3gw7-gq5xPYSEC-2022-12
- Sources
- NVDJSONOSV GHSA-pq7m-3gw7-gq5xJSONOSV PYSEC-2022-12JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ipython | ipythoncpe:2.3:a:ipython:ipython:*:*:*:*:*:*:*:* |
<= 5.10.0 | |
| NVD | ipython | ipythoncpe:2.3:a:ipython:ipython:*:*:*:*:*:*:*:* |
>= 6.0.0, < 7.16.3 | 7.16.3 |
| NVD | ipython | ipythoncpe:2.3:a:ipython:ipython:*:*:*:*:*:*:*:* |
>= 7.17.0, < 7.31.1 | 7.31.1 |
| NVD | ipython | ipythoncpe:2.3:a:ipython:ipython:*:*:*:*:*:*:*:* |
>= 8.0.0, < 8.0.1 | 8.0.1 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
= 11.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |
= 35 | |
| OSV | PyPI | ipython | < 5.11 | 5.11 |
| OSV | PyPI | ipython | >= 6.0.0, < 7.16.3 | 7.16.3 |
| OSV | PyPI | ipython | >= 7.17.0, < 7.31.1 | 7.31.1 |
| OSV | PyPI | ipython | >= 8.0.0, < 8.0.1 | 8.0.1 |
| OSV | 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 |
References
- https://github.com/ipython/ipython/commit/46a51ed69cdf41b4333943d9ceeb945c4ede5668 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x · Exploit, Third Party Advisory, WEB, ADVISORY
- https://ipython.readthedocs.io/en/stable/whatsnew/version8.html#ipython-8-0-1-cve-2022-21699 · Release Notes, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/01/msg00021.html · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CRQRTWHYXMLDJ572VGVUZMUPEOTPM3KB/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DZ7LVZBB4D7KVSFNEQUBEHFO3JW6D2ZK/
- https://nvd.nist.gov/vuln/detail/CVE-2022-21699 · ADVISORY
- https://github.com/ipython/ipython/commit/5fa1e409d2dc126c456510c16ece18e08b524e5b · WEB
- https://github.com/ipython/ipython/commit/67ca2b3aa9039438e6f80e3fccca556f26100b4d · WEB
- https://github.com/ipython/ipython/commit/a06ca837273271b4acb82c29be97c0b6d12a30ea · WEB
- https://github.com/ipython/ipython · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/ipython/PYSEC-2022-12.yaml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CRQRTWHYXMLDJ572VGVUZMUPEOTPM3KB · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DZ7LVZBB4D7KVSFNEQUBEHFO3JW6D2ZK · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 19 Jan 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Jan 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Jan 2022)