First published: Fri Feb 10 2023(Updated: )
IPython (Interactive Python) is a command shell for interactive computing in multiple programming languages, originally developed for the Python programming language. Versions prior to 8.1.0 are subject to a command injection vulnerability with very specific prerequisites. This vulnerability requires that the function `IPython.utils.terminal.set_term_title` be called on Windows in a Python environment where ctypes is not available. The dependency on `ctypes` in `IPython.utils._process_win32` prevents the vulnerable code from ever being reached in the ipython binary. However, as a library that could be used by another tool `set_term_title` could be called and hence introduce a vulnerability. Should an attacker get untrusted input to an instance of this function they would be able to inject shell commands as current process and limited to the scope of the current process. Users of ipython as a library are advised to upgrade. Users unable to upgrade should ensure that any calls to the `IPython.utils.terminal.set_term_title` function are done with trusted or filtered input.
Credit: security-advisories@github.com security-advisories@github.com security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Ipython Ipython | <8.10.0 | |
All of | ||
Ipython Ipython | <8.10.0 | |
Microsoft Windows | ||
pip/ipython | <8.10.0 | 8.10.0 |
IBM Cognos Analytics | <=12.0.0-12.0.3 | |
IBM Cognos Analytics | <=11.2.0-11.2.4 FP4 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2023-24816 is a vulnerability that allows for command injection in the `set_term_title` function in IPython.
CVE-2023-24816 has a severity level of 7 (high).
Versions of IPython prior to 8.10.0 are affected by CVE-2023-24816.
To fix CVE-2023-24816, upgrade to IPython version 8.10.0 or later.
Yes, you can find more information about CVE-2023-24816 in the following references: [Reference 1](https://github.com/ipython/ipython/security/advisories/GHSA-29gw-9793-fvw7), [Reference 2](https://github.com/ipython/ipython/commit/385d69325319a5972ee9b5983638e3617f21cb1f), [Reference 3](https://github.com/ipython/ipython/commit/991849c247fc208628879e7ca2923b3c218a5a75).