CVE-2023-24816
IPython Windows Command Injection Vulnerability
Description
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.
INFO
Published Date :
Feb. 10, 2023, 8:15 p.m.
Last Modified :
Aug. 7, 2024, 5:30 p.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.0
Public PoC/Exploit Available at Github
CVE-2023-24816 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-24816
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
A centralized repository of standalone security patches for open source libraries.
appsec backport cve devsecops fix hotfix open-source patch protection remediation seal security update upgrade vulnerability
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-24816
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-24816
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Reanalysis by [email protected]
Aug. 07, 2024
Action Type Old Value New Value Changed CPE Configuration OR *cpe:2.3:a:ipython:ipython:*:*:*:*:*:*:*:* versions up to (excluding) 8.10.0 AND OR *cpe:2.3:a:ipython:ipython:*:*:*:*:*:*:*:* versions up to (excluding) 8.10.0 OR cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Feb. 23, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/ipython/ipython/blob/3f0bf05f072a91b2a3042d23ce250e5e906183fd/IPython/utils/terminal.py#L103-L117 No Types Assigned https://github.com/ipython/ipython/blob/3f0bf05f072a91b2a3042d23ce250e5e906183fd/IPython/utils/terminal.py#L103-L117 Issue Tracking Changed Reference Type https://github.com/ipython/ipython/blob/56e6925dfa50e2c7f4a6471547b8176275db7c25/IPython/utils/_process_win32.py#L20 No Types Assigned https://github.com/ipython/ipython/blob/56e6925dfa50e2c7f4a6471547b8176275db7c25/IPython/utils/_process_win32.py#L20 Issue Tracking Changed Reference Type https://github.com/ipython/ipython/commit/385d69325319a5972ee9b5983638e3617f21cb1f No Types Assigned https://github.com/ipython/ipython/commit/385d69325319a5972ee9b5983638e3617f21cb1f Patch Changed Reference Type https://github.com/ipython/ipython/security/advisories/GHSA-29gw-9793-fvw7 No Types Assigned https://github.com/ipython/ipython/security/advisories/GHSA-29gw-9793-fvw7 Exploit, Mitigation, Vendor Advisory Added CWE NIST CWE-78 Added CPE Configuration OR *cpe:2.3:a:ipython:ipython:*:*:*:*:*:*:*:* versions up to (excluding) 8.10.0
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-24816
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-24816
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.19 }} 0.05%
score
0.56972
percentile