cve.bz

CVE-2022-21699 Improper Privilege Management

8.8 highExploit referenceEPSS 0.7%Fix available

High (8.8). EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in ipython 5.11, 6.0.0rc1, 7.16.3.

On this page
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.

Severity

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
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-269 Improper Privilege Management
CWE-250 Execution with Unnecessary Privileges
CWE-279 Incorrect Execution-Assigned Permissions
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-21699 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-21699?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-21699?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-21699 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ipython:ipythonthrough 5.10.0
ipython:ipythonfrom 6.0.0 before 7.16.3
ipython:ipythonfrom 7.17.0 before 7.31.1
ipython:ipythonfrom 8.0.0 before 8.0.1
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0
fedoraproject:fedora34
fedoraproject:fedora35

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pq7m-3gw7-gq5xPyPIipython<5.115.11
GHSA-pq7m-3gw7-gq5xPyPIipython>=6.0.0 <7.16.37.16.3
GHSA-pq7m-3gw7-gq5xPyPIipython>=7.17.0 <7.31.17.31.1
GHSA-pq7m-3gw7-gq5xPyPIipython>=8.0.0 <8.0.18.0.1
PYSEC-2022-12PyPIipython<6.0.0rc1
>=6.0.0 <7.16.3
>=7.17.0 <7.31.1
>=8.0.0 <8.0.1
6.0.0rc1, 7.16.3, 7.31.1, 8.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9ipython5.1.0-3+deb9u1DLA-2896-1
Debian10ipython5.8.0-1+deb10u1DSA-5065-1
Debian11ipython7.20.0-1+deb11u1DSA-5065-1
Debian12, 13, 14ipython7.31.1-1DEBIAN-CVE-2022-21699
UbuntuPro:14.04:LTS, Pro:16.04:LTSipythonno fix listedUBUNTU-CVE-2022-21699 USN-5953-1
UbuntuPro:18.04:LTSipython5.5.0-1ubuntu0.1~esm1UBUNTU-CVE-2022-21699 USN-5953-1
UbuntuPro:20.04:LTSipython7.13.0-1ubuntu0.1~esm1UBUNTU-CVE-2022-21699 USN-5953-1
SUSEPackage Hub 15 SP3python-ipython7.13.0-bp153.2.6.1openSUSE-SU-2022:10043-1
SUSEPackage Hub 15 SP3python-ipython-test7.13.0-bp153.2.6.6openSUSE-SU-2022:10043-1
openSUSELeap 15.3python-ipython7.13.0-bp153.2.6.1openSUSE-SU-2022:10043-1
openSUSELeap 15.3python-ipython-test7.13.0-bp153.2.6.6openSUSE-SU-2022:10043-1
openSUSETumbleweedpython-ipython8.31.0-1.1openSUSE-SU-2025:14718-1
Alpinev3.16, v3.17, v3.18 and 6 moreipython7.31.1-r0ALPINE-CVE-2022-21699
Azure Linux3python-pyno fix listedAZL-109526

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Attack patterns (CAPEC)

  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-58 Restful Privilege Elevation Likelihood: High · Severity: High
  • CAPEC-122 Privilege Abuse Likelihood: High · Severity: Medium
  • CAPEC-233 Privilege Escalation
  • CAPEC-69 Target Programs with Elevated Privileges Likelihood: High · Severity: Very High
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON