Vulnerability · Published Jan 19, 2022 · Assigned by GitHub_M
CVE-2022-21699Execution with Unnecessary Privileges in ipython
High 8.2
In plain English
A high-severity security flaw in ipython from ipython. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | ipython | 7.31.1-r0 | ALPINE-CVE-2022-21699 |
| Alpine:v3.21 | ipython | 7.31.1-r0 | ALPINE-CVE-2022-21699 |
| Alpine:v3.22 | ipython | 7.31.1-r0 | ALPINE-CVE-2022-21699 |
| Alpine:v3.23 | ipython | 7.31.1-r0 | ALPINE-CVE-2022-21699 |
| Alpine:v3.24 | ipython | 7.31.1-r0 | ALPINE-CVE-2022-21699 |
| Debian:12 | ipython | 7.31.1-1 | DEBIAN-CVE-2022-21699 |
| Debian:13 | ipython | 7.31.1-1 | DEBIAN-CVE-2022-21699 |
| Debian:14 | ipython | 7.31.1-1 | DEBIAN-CVE-2022-21699 |
| PyPI | ipython | 8.0.1 | GHSA-pq7m-3gw7-gq5x |
| PyPI | ipython | 6.0.0rc1, 7.16.3, 7.31.1, 8.0.1 | PYSEC-2022-12 |
| PyPI | ipython | 7.31.1 | GHSA-pq7m-3gw7-gq5x |
| PyPI | ipython | 7.16.3 | GHSA-pq7m-3gw7-gq5x |
| PyPI | ipython | 5.11 | GHSA-pq7m-3gw7-gq5x |
Affected products (as reported)
Weakness: CWE-250, CWE-279 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
References
- https://github.com/ipython/ipython/security/advisories/GHSA-pq7m-3gw7-gq5x x_refsource_CONFIRM
- https://github.com/ipython/ipython/commit/46a51ed69cdf41b4333943d9ceeb945c4ede5668 x_refsource_MISC
- https://ipython.readthedocs.io/en/stable/whatsnew/version8.html#ipython-8-0-1-cve-2022-21699 x_refsource_MISC
- [debian-lts-announce] 20220124 [SECURITY] [DLA 2896-1] ipython security update mailing-list, x_refsource_MLIST
- FEDORA-2022-b58d156ab0 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-b9e38f8a56 vendor-advisory, x_refsource_FEDORA