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

Source: https://junglewise.ai/threats/cve-2022-21699-execution-with-unnecessary-privileges-in-ipython  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-01-19  
License: CC BY 4.0 with a link back

CVE-2022-21699 · Severity: low · CVSS 3.1 · Published 2022-01-19

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.

Technologies: [ipython (PyPI)](https://junglewise.ai/threats/technologies/ipython). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2022-21699 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-21699 being exploited in the wild.

**How severe is CVE-2022-21699?** Low severity, with a CVSS score of 3.1, published 19 January 2022.

**Which products and versions are affected?** ipython (PyPI) ECOSYSTEM:introduced=0,fixed=5.11, GIT:introduced=0,fixed=46a51ed69cdf41b4333943d9ceeb945c4ede5668|ECOSYSTEM:introduced=0,fixed=6.0.0rc1,introduced=6.0.0,fixed=7.16.3,introduced=7.17.0,fixed=7.31.1,introduced=8.0.0,fixed=8.0.1.

**Is there a fix for CVE-2022-21699?** Yes. ipython (PyPI): upgrade to 5.11, 8.0.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-21699?** Check whether you run ipython (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- ipython (PyPI): upgrade to 5.11, 8.0.1 or later

  ```sh
  pip install "ipython>=8.0.1"
  ```


## Affected products

- ipython (PyPI) ECOSYSTEM:introduced=0,fixed=5.11, GIT:introduced=0,fixed=46a51ed69cdf41b4333943d9ceeb945c4ede5668|ECOSYSTEM:introduced=0,fixed=6.0.0rc1,introduced=6.0.0,fixed=7.16.3,introduced=7.17.0,fixed=7.31.1,introduced=8.0.0,fixed=8.0.1

## Identifiers

- CVE-2022-21699
- GHSA-pq7m-3gw7-gq5x
- PYSEC-2022-12

## Related threats

- [IPython command injection in set_term_title](https://junglewise.ai/threats/cve-2023-24816-ipython-command-injection-in-set-term-title)
- [Improper Neutralization of Input During Web Page Generation in IPython](https://junglewise.ai/threats/cve-2015-4706-improper-neutralization-of-input-during-web-page-generation-in)
- [Improper Neutralization of Input During Web Page Generation in IPython](https://junglewise.ai/threats/cve-2015-4707-improper-neutralization-of-input-during-web-page-generation-in)
- [PYSEC-2017-47 - Cross-site request forgery in the REST API in IPython 2 and 3.](https://junglewise.ai/threats/cve-2015-5607-ipython-vulnerable-to-cross-site-request-forgery-csrf)
- [Improper Input Validation in Jupyter Notebook](https://junglewise.ai/threats/cve-2015-7337-improper-input-validation-in-jupyter-notebook)
