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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ipython | ipython | < 5.11, >= 6.0.0, < 7.16.3, >= 7.17.0, < 7.31.1, >= 8.0.0, < 8.0.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ipython | 7.31.1-1 | — |
| Debian 13 | ipython | 7.31.1-1 | — |
| Debian 12 | ipython | 7.31.1-1 | — |
| Debian 11 | ipython | 7.20.0-1+deb11u1 | DSA-5065-1 |
| Debian 10 | ipython | 5.8.0-1+deb10u1 | DSA-5065-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | ipython | 5.1.0-3+deb9u1 | DLA-2896-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | ipython | 7.13.0-1ubuntu0.1~esm1 | USN-5953-1 |
| Ubuntu Pro 18.04 LTS | ipython | 5.5.0-1ubuntu0.1~esm1 | USN-5953-1 |
| Ubuntu Pro 16.04 LTS | ipython | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | ipython | 1.2.1-2ubuntu0.1~esm1 | USN-5953-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP3 | python-ipython | 7.13.0-bp153.2.6.1 | openSUSE-SU-2022:10043-1 |
| SUSE Package Hub 15 SP3 | python-ipython-test | 7.13.0-bp153.2.6.6 | openSUSE-SU-2022:10043-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-ipython | 8.31.0-1.1 | openSUSE-SU-2025:14718-1 |
| openSUSE Leap 15.3 | python-ipython | 7.13.0-bp153.2.6.1 | openSUSE-SU-2022:10043-1 |
| openSUSE Leap 15.3 | python-ipython-test | 7.13.0-bp153.2.6.6 | openSUSE-SU-2022:10043-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | ipython | 7.31.1-r0 | — |
| Alpine v3.23 | ipython | 7.31.1-r0 | — |
| Alpine v3.22 | ipython | 7.31.1-r0 | — |
| Alpine v3.21 | ipython | 7.31.1-r0 | — |
| Alpine v3.20 | ipython | 7.31.1-r0 | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | ipython | 7.31.1-r0 | — |
| Alpine v3.18 | ipython | 7.31.1-r0 | — |
| Alpine v3.17 | ipython | 7.31.1-r0 | — |
| Alpine v3.16 | ipython | 7.31.1-r0 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python-py | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | kubeflow-pipelines-visualization-server | 2.4.0-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | ipython | < 5.11 | 5.11 | GHSA-pq7m-3gw7-gq5x |
| PyPI | ipython | >= 6.0.0, < 7.16.3 | 7.16.3 | GHSA-pq7m-3gw7-gq5x |
| PyPI | ipython | >= 7.17.0, < 7.31.1 | 7.31.1 | GHSA-pq7m-3gw7-gq5x |
| PyPI | ipython | >= 8.0.0, < 8.0.1 | 8.0.1 | GHSA-pq7m-3gw7-gq5x |
| PyPI | ipython | < 6.0.0rc1 · >= 6.0.0, < 7.16.3 · >= 7.17.0, < 7.31.1 · >= 8.0.0, < 8.0.1 | 6.0.0rc1, 7.16.3, 7.31.1, 8.0.1 | PYSEC-2022-12 |
Advisories 6
- USN-5953-1 ipython vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- DSA-5065-1 ipython - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2896-1 ipython - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2022:10043-1 Security update for python-ipython SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:14718-1 python311-ipython-8.31.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-0064 Juniper Produkte: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 10, 2025
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
- [debian-lts-announce] 20220124 [SECURITY] [DLA 2896-1] ipython security update mailing-list
- FEDORA-2022-b58d156ab0 vendor-advisory
- FEDORA-2022-b9e38f8a56 vendor-advisory