.. / CVE-2022-21699

Exploit for IPython privilege escalation vulnerability (CVE-2022-21699)

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.

Proof of Concept

PoC exploit

Try the exploit in a lab environment:

Lab Machine Link
Hack The Box Shared Go to Practice

References:

https://nvd.nist.gov/vuln/detail/CVE-2022-21699
https://github.com/advisories/GHSA-pq7m-3gw7-gq5x