{"id":"CVE-2022-21699","published":"2022-01-19T21:15:11Z","modified":"2025-04-22T18:33:01Z","title":"Execution with Unnecessary Privileges in ipython","vendor":"ipython","product":"ipython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0069,"percentile":0.53709,"provenance":"source"},"cwes":[{"id":"CWE-250","name":"Execution with Unnecessary Privileges"},{"id":"CWE-279","name":"Incorrect Execution-Assigned Permissions"}],"references":[{"url":"https://github.com/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ipython/ipython/commit/46a51ed69cdf41b4333943d9ceeb945c4ede5668","tags":["x_refsource_MISC"]},{"url":"https://ipython.readthedocs.io/en/stable/whatsnew/version8.html#ipython-8-0-1-cve-2022-21699","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00021.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CRQRTWHYXMLDJ572VGVUZMUPEOTPM3KB/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DZ7LVZBB4D7KVSFNEQUBEHFO3JW6D2ZK/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":10.74},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"ipython","affectedVersions":[{"vendor":"ipython","product":"ipython","versions":["< 5.11",">= 6.0.0, < 7.16.3",">= 7.17.0, < 7.31.1",">= 8.0.0, < 8.0.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-22T15:45:17.424524Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"ipython","vulnerableRanges":["<5.11",">=6.0.0, <7.16.3",">=7.17.0, <7.31.1",">=8.0.0, <8.0.1","<6.0.0rc1"],"patched":["5.11","7.16.3","7.31.1","8.0.1","6.0.0rc1"],"from":["GHSA-pq7m-3gw7-gq5x","PYSEC-2022-12"],"provenance":"source"}],"summary":{"text":"The ipython command shell (the IPython interactive computing environment) contains a flaw in how it handles temporary files shared between users on the same machine, which leads to execution with unnecessary privileges. An attacker with a local account on the affected system can exploit it, with user interaction required, to run code as another user on that machine.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:13:53Z"},"euvd":{"id":"EUVD-2022-0126","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-ipython-cve-2022-21699","children":[{"from":"CVE-2022-21699","to":"CVE-2023-24816","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ipython","fromFixed":"8.0.1","toFixed":"8.10.0","daysApart":387},{"kind":"same-code","provenance":"machine","files":["IPython/__init__.py"],"commits":["https://github.com/ipython/ipython/commit/46a51ed69cdf41b4333943d9ceeb945c4ede5668","https://github.com/ipython/ipython/commit/5fa1e409d2dc126c456510c16ece18e08b524e5b","https://github.com/ipython/ipython/commit/385d69325319a5972ee9b5983638e3617f21cb1f","https://github.com/ipython/ipython/commit/991849c247fc208628879e7ca2923b3c218a5a75"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2015-6938","published":"2015-09-21","fixed":"3.2.2","kev":false},{"cve":"CVE-2015-7337","published":"2015-09-29","fixed":"3.2.2","kev":false},{"cve":"CVE-2015-5607","published":"2017-09-20","fixed":"3.2.3","kev":false},{"cve":"CVE-2022-21699","published":"2022-01-19","fixed":"8.0.1","kev":false},{"cve":"CVE-2023-24816","published":"2023-02-10","fixed":"8.10.0","kev":false}],"package":"PyPI:ipython"}}