Execution with Unnecessary Privileges in ipython
Package
Affected versions
< 5.11
>= 6.0.0, < 7.16.3
>= 7.17.0, < 7.31.1
>= 8.0.0, < 8.0.1
Patched versions
5.11
7.16.3
7.31.1
8.0.1
Description
Reviewed
Jan 19, 2022
Published by the National Vulnerability Database
Jan 19, 2022
Published to the GitHub Advisory Database
Jan 21, 2022
Last updated
Sep 27, 2024
We’d like to disclose an arbitrary code execution vulnerability in IPython that stems from IPython executing untrusted files in CWD. This vulnerability allows one user to run code as another.
Proof of concept
User1:
User2:
User2 will see:
Patched release and documentation
See https://ipython.readthedocs.io/en/stable/whatsnew/version8.html#ipython-8-0-1-cve-2022-21699,
Version 8.0.1, 7.31.1 for current Python version are recommended.
Version 7.16.3 has also been published for Python 3.6 users,
Version 5.11 (source only, 5.x branch on github) for older Python versions.
References