Skip to main content
Public proof of conceptFix available

CVE-2022-21699

A public proof of concept exists; no exploitation attested.

  • Published2022-01-19
  • Fixed in8.0.1 · 7.31.1 · 7.16.3 · 6.0.0rc1 · 5.11
  • WeaknessCWE-250 · CWE-269 · CWE-279

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2022-01-1922:15CVE publishedNVD

Versions per branch

NVD · OSV
Ipython
BranchAffectedFixed in
8.0≥ 8.0.0, < 8.0.18.0.1
7.x≥ 7.17.0, < 7.31.17.31.1
7.16≥ 6.0.0, < 7.16.37.16.3
6.0< 6.0.0rc16.0.0rc1
5.11< 5.115.11
5.10≤ 5.10.0no fix published
Debian debian linux
BranchAffectedFixed in
9.0= 9.0no fix published
10.0= 10.0no fix published
11.0= 11.0no fix published
Fedoraproject fedora
BranchAffectedFixed in
34.x= 34no fix published
35.x= 35no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • ipython
    Affected
    • = < 5.11no fix stated
    • = >= 6.0.0, < 7.16.3no fix stated
    • = >= 7.17.0, < 7.31.1no fix stated
    • = >= 8.0.0, < 8.0.1no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2022-02-12

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • ipythonUbuntu:Pro:20.04:LTSall versions · fixed in 7.13.0-1ubuntu0.1~esm1
  • ipythonUbuntu:Pro:18.04:LTSall versions · fixed in 5.5.0-1ubuntu0.1~esm1
  • ipythonUbuntu:Pro:16.04:LTSall versions · no fixed version listed
  • ipythonUbuntu:Pro:14.04:LTSall versions · fixed in 1.2.1-2ubuntu0.1~esm1
  • ipythonMageia:8all versions · fixed in 7.31.1-1.mga8
  • ipythonDebian:14all versions · fixed in 7.31.1-1
  • ipythonDebian:13all versions · fixed in 7.31.1-1
  • ipythonDebian:12all versions · fixed in 7.31.1-1

21 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-21699 Red Hat Product Security

    ipython: arbitrary code execution by cross user temporary files mismanagment

Full record on NVD

Fix

  1. Update Ipython to 8.0.1 · 7.31.1 · 7.16.3 · 6.0.0rc1 · 5.11

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-04-22
  • CNACVSS 3.18.2known since 2026-10-23
  • NVDCVSS 3.18.8read 2026-10-23
  • NVDCVSS 2.04.6read 2026-10-23
  • CNAweakness (CWE)CWE-250, CWE-279known since 2026-10-23
  • NVDweakness (CWE)CWE-269read 2026-10-23
  • FIRST EPSSEPSS score0.7 %2026-11-18
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2022-01-19

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Published
2022-01-19
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-pq7m-3gw7-gq5x

Frequently asked questions

What is CVE-2022-21699?

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.

Is CVE-2022-21699 actively exploited?

A proof-of-concept exploit exists for CVE-2022-21699, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2022-21699?

CVE-2022-21699 has a CVSS v3 base score of 8.8 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.

Running ipython? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record