{"id":"CVE-2022-21699","state":"PUBLISHED","title":"Execution with Unnecessary Privileges in ipython","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.","publishedAt":"2022-01-19T21:15:11.000Z","updatedAt":"2025-04-22T18:33:01.284Z","severity":{"score":8.2,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["ipython ipython"],"affected":[{"vendor":"ipython","product":"ipython","versions":[{"version":"< 5.11","status":"affected"},{"version":">= 6.0.0, < 7.16.3","status":"affected"},{"version":">= 7.17.0, < 7.31.1","status":"affected"},{"version":">= 8.0.0, < 8.0.1","status":"affected"}]}],"references":["https://github.com/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x","https://github.com/ipython/ipython/commit/46a51ed69cdf41b4333943d9ceeb945c4ede5668","https://ipython.readthedocs.io/en/stable/whatsnew/version8.html#ipython-8-0-1-cve-2022-21699","https://lists.debian.org/debian-lts-announce/2022/01/msg00021.html","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CRQRTWHYXMLDJ572VGVUZMUPEOTPM3KB/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DZ7LVZBB4D7KVSFNEQUBEHFO3JW6D2ZK/"],"weaknesses":["CWE-250","CWE-279"],"ingestedAt":"2026-10-29T19:49:35.025Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/21xxx/CVE-2022-21699.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-21699","state":"PUBLISHED","datePublished":"2022-01-19T21:15:11.000Z","dateUpdated":"2025-04-22T18:33:01.284Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2021-11-16T00:00:00.000Z"},"containers":{"cna":{"title":"Execution with Unnecessary Privileges in ipython","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"ipython","product":"ipython","versions":[{"version":"< 5.11","status":"affected"},{"version":">= 6.0.0, < 7.16.3","status":"affected"},{"version":">= 7.17.0, < 7.31.1","status":"affected"},{"version":">= 8.0.0, < 8.0.1","status":"affected"}]}],"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","name":"[debian-lts-announce] 20220124 [SECURITY] [DLA 2896-1] ipython security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CRQRTWHYXMLDJ572VGVUZMUPEOTPM3KB/","name":"FEDORA-2022-b58d156ab0","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DZ7LVZBB4D7KVSFNEQUBEHFO3JW6D2ZK/","name":"FEDORA-2022-b9e38f8a56","tags":["vendor-advisory","x_refsource_FEDORA"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-250","description":"CWE-250: Execution with Unnecessary Privileges","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-279","description":"CWE-279: Incorrect Execution-Assigned Permissions","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2022-02-12T02:06:46.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-pq7m-3gw7-gq5x","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-21699","STATE":"PUBLIC","TITLE":"Execution with Unnecessary Privileges in ipython"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"ipython","version":{"version_data":[{"version_value":"< 5.11"},{"version_value":">= 6.0.0, < 7.16.3"},{"version_value":">= 7.17.0, < 7.31.1"},{"version_value":">= 8.0.0, < 8.0.1"}]}}]},"vendor_name":"ipython"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-250: Execution with Unnecessary Privileges"}]},{"description":[{"lang":"eng","value":"CWE-279: Incorrect Execution-Assigned Permissions"}]}]},"references":{"reference_data":[{"name":"https://github.com/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x","refsource":"CONFIRM","url":"https://github.com/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x"},{"name":"https://github.com/ipython/ipython/commit/46a51ed69cdf41b4333943d9ceeb945c4ede5668","refsource":"MISC","url":"https://github.com/ipython/ipython/commit/46a51ed69cdf41b4333943d9ceeb945c4ede5668"},{"name":"https://ipython.readthedocs.io/en/stable/whatsnew/version8.html#ipython-8-0-1-cve-2022-21699","refsource":"MISC","url":"https://ipython.readthedocs.io/en/stable/whatsnew/version8.html#ipython-8-0-1-cve-2022-21699"},{"name":"[debian-lts-announce] 20220124 [SECURITY] [DLA 2896-1] ipython security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00021.html"},{"name":"FEDORA-2022-b58d156ab0","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CRQRTWHYXMLDJ572VGVUZMUPEOTPM3KB/"},{"name":"FEDORA-2022-b9e38f8a56","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DZ7LVZBB4D7KVSFNEQUBEHFO3JW6D2ZK/"}]},"source":{"advisory":"GHSA-pq7m-3gw7-gq5x","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/ipython/ipython/commit/46a51ed69cdf41b4333943d9ceeb945c4ede5668","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://ipython.readthedocs.io/en/stable/whatsnew/version8.html#ipython-8-0-1-cve-2022-21699","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00021.html","name":"[debian-lts-announce] 20220124 [SECURITY] [DLA 2896-1] ipython security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CRQRTWHYXMLDJ572VGVUZMUPEOTPM3KB/","name":"FEDORA-2022-b58d156ab0","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DZ7LVZBB4D7KVSFNEQUBEHFO3JW6D2ZK/","name":"FEDORA-2022-b9e38f8a56","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T02:53:34.751Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-22T15:45:17.424524Z","id":"CVE-2022-21699","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-22T18:33:01.284Z"}}]}}}