Read the docs
TI-2022-06075 Aliases CVE-2022-21699GHSA-pq7m-3gw7-gq5x

Execution with Unnecessary Privileges in ipython

Priority HIGH 73CWE-250Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Privilege escalation
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-250.

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00652 51st percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed ipython (ipython): 5.11, 7.16.3, 7.31.1 +1ipython (PyPI): 5.11, 7.16.3, 7.31.1 +1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
ipythonipythonbefore 5.11; 6.0.0 to before 7.16.3; 7.17.0 to before 7.31.1; 8.0.0 to before 8.0.15.11, 7.16.3, 7.31.1, 8.0.1Patch availableCNA
—ipython (PyPI)before 5.115.11Patch availableGHSA-pq7m-3gw7-gq5x
—ipython (PyPI)6.0.0 to before 7.16.37.16.3Patch availableGHSA-pq7m-3gw7-gq5x
—ipython (PyPI)7.17.0 to before 7.31.17.31.1Patch availableGHSA-pq7m-3gw7-gq5x
—ipython (PyPI)8.0.0 to before 8.0.18.0.1Patch availableGHSA-pq7m-3gw7-gq5x
  • ipython Vendoripython Affected before 5.11; 6.0.0 to before 7.16.3; 7.17.0 to before 7.31.1; 8.0.0 to before 8.0.1 Fixed in 5.11, 7.16.3, 7.31.1, 8.0.1 Patch available CNA
  • ipython (PyPI) Vendor— Affected before 5.11 Fixed in 5.11 Patch available GHSA-pq7m-3gw7-gq5x
  • ipython (PyPI) Vendor— Affected 6.0.0 to before 7.16.3 Fixed in 7.16.3 Patch available GHSA-pq7m-3gw7-gq5x
  • ipython (PyPI) Vendor— Affected 7.17.0 to before 7.31.1 Fixed in 7.31.1 Patch available GHSA-pq7m-3gw7-gq5x
  • ipython (PyPI) Vendor— Affected 8.0.0 to before 8.0.1 Fixed in 8.0.1 Patch available GHSA-pq7m-3gw7-gq5x

CPE configurations NVD · 6

CPEVersionsRoleVendor
cpe:2.3:a:ipython:ipython:*:*:*:*:*:*:*:*up to 5.10.0; 6.0.0 to before 7.16.3; 7.17.0 to before 7.31.1; 8.0.0 to before 8.0.1Vulnerableipython
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*9.0VulnerableDebian
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*10.0VulnerableDebian
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*11.0VulnerableDebian
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*34VulnerableFedoraproject
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*35VulnerableFedoraproject
  • cpe:2.3:a:ipython:ipython:*:*:*:*:*:*:*:* Versions up to 5.10.0; 6.0.0 to before 7.16.3; 7.17.0 to before 7.31.1; 8.0.0 to before 8.0.1 Vulnerable ·ipython
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
  • cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
  • cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Versions 11.0 Vulnerable ·Debian
  • cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
  • cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject

Remediation

  • Fix · CNA ipython (ipython) Fixed in 5.11, 7.16.3, 7.31.1, 8.0.1
  • Fix · GHSA-pq7m-3gw7-gq5x ipython (PyPI) Fixed in 5.11 Advisory →
  • Fix · GHSA-pq7m-3gw7-gq5x ipython (PyPI) Fixed in 7.16.3 Advisory →
  • Fix · GHSA-pq7m-3gw7-gq5x ipython (PyPI) Fixed in 7.31.1 Advisory →
  • Fix · GHSA-pq7m-3gw7-gq5x ipython (PyPI) Fixed in 8.0.1 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-21699
  2. 2026-10-03 Alias added: GHSA-pq7m-3gw7-gq5x
  3. 2026-10-14 EPSS moved to the 50th–90th percentile

References

  • TI-2023-10316 set_term_title command injection in ipython CVSS 3.1HIGH 7.0
  • TI-2015-04725 Cross-site request forgery in the REST API in IPython 2 and 3. CVSS 3.0HIGH 8.8
  • TI-2015-03937 Cross-site scripting (XSS) vulnerability in IPython before 3.2 allows remote attackers to… CVSS 3.1MEDIUM 6.1
  • TI-2015-03936 Cross-site scripting (XSS) vulnerability in IPython 3.x before 3.2 allows remote… CVSS 3.0MEDIUM 6.1

Sources