CVE-2023-24816 json
set_term_title command injection in ipython
published 3y ago modified 2mo ago also EUVD-2023-0099 , GHSA-29gw-9793-fvw7 , PYSEC-2023-17
- cvss
- 4.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi ipython 8.10.0
- ipython ipython 8.10.0
Is CVE-2023-24816 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
1.31% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-15).
Exploits and checks
- github.com https://github.com/ipython/ipython/security/advisories/GHSA-29gw-9793-fvw7 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.5 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
| GitHub | 3.1 | 4.5 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | ipython | <8.10.0 |
8.10.0 |
Affected products
- ipython ipython
Classification
References
-
github.com
/ipython/ipython/commit/385d69325319a5972ee9b5983638e3617f21cb1f
web, patch
-
github.com
/ipython/ipython/commit/991849c247fc208628879e7ca2923b3c218a5a75
web
-
github.com
/ipython/ipython/security/advisories/GHSA-29gw-9793-fvw7
web, exploit, mitigation, vendor-advisory, evidence, advisory
-
github.com
/ipython/ipython/blob/3f0bf05f072a91b2a3042d23ce250e5e906183fd/IPython/utils/terminal.py#L103-L117
web, issue-tracking, report
-
github.com
/ipython/ipython/blob/56e6925dfa50e2c7f4a6471547b8176275db7c25/IPython/utils/_process_win32.py#L20
web, issue-tracking, report
-
nvd.nist.gov
/vuln/detail/CVE-2023-24816
advisory
-
github.com
/Carreau/ipython/blob/7557ade0ed927475d5ab5b573d0ea4febfb22683/docs/source/whatsnew/version8.rst#ipython-810
web
-
github.com
/ipython/ipython
package
-
github.com
/pypa/advisory-database/tree/main/vulns/ipython/PYSEC-2023-17.yaml
web
Sources
- CVE List CVE-2023-24816
- GitHub Advisory GHSA-29gw-9793-fvw7
- NVD CVE-2023-24816
- OSV PYSEC-2023-17
- Maintainer advisory GHSA-29gw-9793-fvw7
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of ipython/ipython published their own advisory on GitHub. Reviewed sources take precedence over it.