Home / ipython / ipython / CVE-2023-24816
CVE-2023-24816: is it exploited, and which versions of ipython are affected and fixed?
CVE-2023-24816 is an improper input validation vulnerability in ipython. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: ipython before 8.10.0 (GitHub advisory GHSA-29gw-9793-fvw7). Fixed in 8.10.0 (GitHub advisory GHSA-29gw-9793-fvw7). Severity: Medium (4.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:41 UTC.
What is CVE-2023-24816?
set_term_title command injection in ipython
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.
From the CVE record by GitHub_M, last updated March 10, 2025, 21:13 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| ipython | ipython | < 8.10 |
As the CVE record by GitHub_M states it, last updated March 10, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | ipython | < 8.10.0 | 8.10.0 | GHSA-29gw-9793-fvw7 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 24, 2024. Summary: IPython vulnerable to command injection via set_term_title.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| ipython | ipython | before 8.10.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 05:39 UTC.
How severe is CVE-2023-24816?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.5 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L | GitHub_M |
| High 7.0 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-24816 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, March 10, 2025)
- EPSS
- 1.32% probability of exploitation activity in the next 30 days, percentile 71.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-20 Improper Input Validation
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Where are the vendor advisories and references?
- https://github.com/ipython/ipython/security/advisories/GHSA-29gw-9793-fvw7 x_refsource_CONFIRM
- https://github.com/ipython/ipython/commit/385d69325319a5972ee9b5983638e3617f21cb1f x_refsource_MISC
- https://github.com/ipython/ipython/blob/3f0bf05f072a91b2a3042d23ce250e5e906183fd/IPython/utils/terminal.py#L103-L117 x_refsource_MISC
- https://github.com/ipython/ipython/blob/56e6925dfa50e2c7f4a6471547b8176275db7c25/IPython/utils/_process_win32.py#L20 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- January 30, 2023
- Published
- February 10, 2023, 19:52 UTC
- CVE record updated
- March 10, 2025, 21:13 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 05:39 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:41 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect ipython?
- Jan 19, 2022CVE-2022-21699 ipython: runs with more privileges than needed
- Sep 21, 2017CVE-2015-4706 Ipython: cross-site scripting (XSS)
- Sep 20, 2017CVE-2015-4707 Ipython: cross-site scripting (XSS)
- Sep 20, 2017CVE-2015-5607 Ipython: cross-site request forgery (CSRF)
Questions about CVE-2023-24816
Is CVE-2023-24816 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 1.32% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of ipython are affected by CVE-2023-24816?
ipython before 8.10.0, per the GitHub advisory GHSA-29gw-9793-fvw7. The tables above give every range the sources list.
Which version fixes CVE-2023-24816?
8.10.0, per the GitHub advisory GHSA-29gw-9793-fvw7. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-24816?
Medium (4.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-24816?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.