CVE-2023-24816: IPython - Command Injection
- Cve: CVE-2023-24816
- Name: IPython - Command Injection
- 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.
- Impact: Attackers can execute arbitrary shell commands within the current process, potentially leading to privilege escalation or system compromise.
- Remediation: Upgrade IPython to version 8.1.0 or later. If upgrading is not possible, ensure `set_term_title` is called only with trusted input.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.01319
- Epss percentile: 0.71588
- Assignee: [email protected]
- Published at: 2023-02-10T20:15:53Z
- Age in days: 1383
- Modified at: 2026-06-17T05:39:55Z
- Patch available: yes
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-24816
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/ipython/ipython/security/advisories/GHSA-29gw-9793-fvw7 | nvd | 2023-02-10 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ipython:ipython | < 8.10.0 | yes | nvd | /v1/products/ipython/ipython |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ipython/ipython | commit, fix, package, security_advisory | yes | /v1/repositories/ipython/ipython |
Index
- Repositories: 580
- Repositories high signal: 306
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2023-02-10
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts