# CVE-2022-21699: Execution with Unnecessary Privileges in ipython

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-01-19T21:15:11.000Z
- Modified: 2026-09-10T03:49:11.109Z
- Also known as: GHSA-pq7m-3gw7-gq5x, PYSEC-2022-12
- Weaknesses: CWE-250, CWE-269, CWE-279
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- ipython ipython: < 5.11; >= 6.0.0, < 7.16.3; >= 7.17.0, < 7.31.1; >= 8.0.0, < 8.0.1; up to 5.10.0; from 6.0.0 before 7.16.3; from 7.17.0 before 7.31.1; from 8.0.0 before 8.0.1
- ipython (PyPI): before 5.11; from 6.0.0 before 7.16.3; from 7.17.0 before 7.31.1; from 8.0.0 before 8.0.1; before 46a51ed69cdf41b4333943d9ceeb945c4ede5668; before 6.0.0rc1
- debian debian_linux: 9.0; 10.0; 11.0
- fedoraproject fedora: 34; 35

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 8.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x> (exploit, advisory, third-party-advisory, web)
- <https://github.com/ipython/ipython/commit/46a51ed69cdf41b4333943d9ceeb945c4ede5668> (fix, patch, third-party-advisory, web)
- <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/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DZ7LVZBB4D7KVSFNEQUBEHFO3JW6D2ZK/> (vendor-advisory)
- <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)

## Sources

- CVE List: [CVE-2022-21699](https://www.cve.org/CVERecord?id=CVE-2022-21699), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-pq7m-3gw7-gq5x](https://github.com/advisories/GHSA-pq7m-3gw7-gq5x), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-21699](https://nvd.nist.gov/vuln/detail/CVE-2022-21699), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-12](https://osv.dev/vulnerability/PYSEC-2022-12), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-21699 · Whole record: https://cve.day/CVE-2022-21699.json · Rebuilt by cve.day 2026-11-25T22:58:09.375Z
