# IPython vulnerable to command injection via set_term_title

Advisory record · `GHSA-29gw-9793-fvw7`

- **Identifiers:** `GHSA-29gw-9793-fvw7` · `CVE-2023-24816` · `PYSEC-2023-17`
- **State:** Confirmed
- **Severity:** CVSS 4.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-20](https://cwe.mitre.org/data/definitions/20.html) · [CWE-78](https://cwe.mitre.org/data/definitions/78.html)
- **Tags:** [Command injection](https://agentprime.io/advisories/tag/command-injection.md) · [CWE-20](https://agentprime.io/advisories/tag/cwe-20.md)
- **Published:** 10 Feb 2023
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 10 Feb 2023, 19:55 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `ipython` (PyPI): affected `<8.10.0`; fixed in `8.10.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> IPython versions prior to 8.10.0 are vulnerable to command injection in the set_term_title function, but only on Windows in Python environments where ctypes is not available. An attacker who can control directory names and get a user to change into such a directory could run arbitrary commands. Upgrade IPython to version 8.10.0 or later.

Written 5 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 4.5 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.013, the 71st percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:37 UTC: First seen by agentprime
- 31 Oct 2026, 14:37 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-29gw-9793-fvw7)

## Sources

- [GitHub Advisory Database: GHSA-29gw-9793-fvw7](https://github.com/advisories/GHSA-29gw-9793-fvw7)
- [OSV: GHSA-29gw-9793-fvw7](https://osv.dev/vulnerability/GHSA-29gw-9793-fvw7)
- <https://github.com/ipython/ipython/security/advisories/GHSA-29gw-9793-fvw7>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-24816>
- <https://github.com/ipython/ipython/commit/385d69325319a5972ee9b5983638e3617f21cb1f>
- <https://github.com/ipython/ipython/commit/991849c247fc208628879e7ca2923b3c218a5a75>
- <https://github.com/Carreau/ipython/blob/7557ade0ed927475d5ab5b573d0ea4febfb22683/docs/source/whatsnew/version8.rst#ipython-810>
- <https://github.com/ipython/ipython>
- <https://github.com/ipython/ipython/blob/3f0bf05f072a91b2a3042d23ce250e5e906183fd/IPython/utils/terminal.py#L103-L117>
- <https://github.com/ipython/ipython/blob/56e6925dfa50e2c7f4a6471547b8176275db7c25/IPython/utils/_process_win32.py#L20>
- <https://github.com/pypa/advisory-database/tree/main/vulns/ipython/PYSEC-2023-17.yaml>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-29gw-9793-fvw7>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-29gw-9793-fvw7/>. Everything for agents: <https://agentprime.io/llms.txt>.
