Skip to content
Fencer Vulns
high 8.2

CVE-2022-21699 json

Execution with Unnecessary Privileges in ipython

published 2022-01-19 4 y ago modified 2026-09-10 1 mo ago also GHSA-pq7m-3gw7-gq5x , PYSEC-2022-12 , EUVD-2022-0126

cvss
8.2
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.7%
EPSS 0.7% chance of exploitation in 30 days, percentile 51%
public exploits
0
none known

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.

Patch / fix

  • pypi ipython 5.11, 6.0.0rc1, 7.16.3, 7.31.1, 8.0.1
  • ipython ipython 7.16.3, 7.31.1, 8.0.1
  • ipython Debian 14, Debian 13, Debian 12 7.31.1-1

debian advisories DEBIAN-CVE-2022-21699

  • ipython Ubuntu Pro 18.04 LTS 5.5.0-1ubuntu0.1~esm1
  • ipython Ubuntu Pro 20.04 LTS 7.13.0-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2022-21699

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python-ipython openSUSE Tumbleweed 8.31.0-1.1
  • python-ipython Package Hub 15 SP3, openSUSE Leap 15.3 7.13.0-bp153.2.6.1
  • python-ipython-test Package Hub 15 SP3, openSUSE Leap 15.3 7.13.0-bp153.2.6.6

opensuse advisories openSUSE-SU-2025:14718-1openSUSE-SU-2022:10043-1

  • ipython Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 7.31.1-r0

alpine advisories ALPINE-CVE-2022-21699

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-21699 updated cvss 8.8

ipython: arbitrary code execution by cross user temporary files mismanagment

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
18 mo ago

Exploit prediction

0.65% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 8.2 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
NVD 3.1 8.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD 2.0 4.6 AV:L/AC:L/Au:N/C:P/I:P/A:P
GitHub 3.1 8.2 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi ipython
<5.11
>=6.0.0, <7.16.3
>=7.17.0, <7.31.1
>=8.0.0, <8.0.1
<6.0.0rc1
5.11
7.16.3
7.31.1
8.0.1
6.0.0rc1

Affected products

  • ipython ipython

Classification

Weakness
  • CWE-250 Execution with Unnecessary Privileges
  • CWE-279 Incorrect Execution-Assigned Permissions
  • CWE-269 Improper Privilege Management

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.