CVE-2022-21699
Execution with Unnecessary Privileges in ipython
Reported by github_m · Published January 19, 2022
ipython is fixed in 8.0.1, 7.31.1, 7.16.3 and 3 more (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ipython | PyPI | 8.0.1, 7.31.1, 7.16.3, 6.0.0rc1, 5.11, 46a51ed69cdf41b4333943d9ceeb945c4ede5668 |
| ipython | ipython | 8.0.1, 7.31.1, 7.16.3, 5.10.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ipython | ipython | < 5.11, >= 6.0.0, < 7.16.3, >= 7.17.0, < 7.31.1 |
| ipython | ipython | 7.17.0, 6.0.0, 8.0.0 |
| PyPI | ipython | 7.17.0, 0, 6.0.0 |
| chainguard | kubeflow-pipelines-visualization-server | 0 |
| wolfi | kubeflow-pipelines-visualization-server | 0 |
| alpine | ipython | 0 |
Timeline
- Jan 19, 2022 CVE Published
- Feb 8, 2022 EPSS Score (30 in total, the first dated here)
- Apr 10, 2025 CVE Updated
- Mar 9, 2026 Security Advisory (3 in total, the first dated here)
- Jul 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-21699
vulnetix vdb fixes CVE-2022-21699
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-21699/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- [debian-lts-announce] 20220124 [SECURITY] [DLA 2896-1] ipython security update mailing-listx_refsource_MLIST
- FEDORA-2022-b58d156ab0 vendor-advisoryx_refsource_FEDORA
- FEDORA-2022-b9e38f8a56 vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2022-21699 advisory
- https://github.com/advisories/GHSA-pq7m-3gw7-gq5x advisory
- https://github.com/ipython/ipython/commit/5fa1e409d2dc126c456510c16ece18e08b524e5b patch
- https://github.com/ipython/ipython/commit/67ca2b3aa9039438e6f80e3fccca556f26100b4d patch
- https://github.com/ipython/ipython/commit/a06ca837273271b4acb82c29be97c0b6d12a30ea patch
- https://github.com/ipython/ipython url
- https://github.com/pypa/advisory-database/tree/main/vulns/ipython/PYSEC-2022-12.yaml advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CRQRTWHYXMLDJ572VGVUZMUPEOTPM3KB url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DZ7LVZBB4D7KVSFNEQUBEHFO3JW6D2ZK url