Skip to content
Heist/ feed
Back to feed
High

ipython — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2023-24816

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.

Products
ipython
Affected versions
0.13.2-2, 1.1.0-1, 1.2.0~rc1-1, 1.2.1-2, 1.2.1-2ubuntu0.1~esm1, 2.3.0-2ubuntu1, 2.3.0-2ubuntu2, 2.4.1-1, 2.4.1-1ubuntu0.1~esm2, 5.1.0-3, 5.5.0-1, 5.5.0-1ubuntu0.1~esm1, 5.8.0-1, 5.8.0-1build1, 5.8.0-2, 7.12.0-1, 7.13.0-1, 7.13.0-1ubuntu0.1~esm1, 7.20.0-1, 7.22.0-1, 7.27.0-1, 7.31.0-1, 7.31.1-1, 8.14.0-2, 8.20.0-1, 8.30.0-2, 8.35.0-1, 8.35.0-2, 8.35.0-3, 9.11.0-1, 9.11.0-2, 9.8.0-4
Fixed versions
Not specified
CVEs
CVE-2023-24816
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:49 UTC · Revision 1

Source evidence

UBUNTU-CVE-2023-24816

core-osv · Original source

Published 10 Feb 2023, 20:15 UTC

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.

osv:UBUNTU-CVE-2023-24816

ipython

Fixed versions: Not specified

ipython

Fixed versions: Not specified

ipython

Fixed versions: Not specified

ipython

Fixed versions: Not specified

ipython

Fixed versions: Not specified

ipython

Fixed versions: Not specified

ipython

Fixed versions: Not specified

ipython

Fixed versions: Not specified

ipython

Fixed versions: Not specified

Complete source record
{
  "id": "463d83f963f4bf09800c3de8209e7e508c6950753b8ef7e154669e8829a28595",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2023-24816",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2023-24816",
    "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.",
    "evidence": "osv:UBUNTU-CVE-2023-24816",
    "products": [
      {
        "name": {
          "value": "ipython",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.13.2-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.0~rc1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.1-2ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ipython",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.3.0-2ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.3.0-2ubuntu2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.4.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.4.1-1ubuntu0.1~esm2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ipython",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.1.0-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.5.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "5.5.0-1ubuntu0.1~esm1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ipython",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.8.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.8.0-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.8.0-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "7.12.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "7.13.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "7.13.0-1ubuntu0.1~esm1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ipython",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.20.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "7.22.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "7.27.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "7.31.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "7.31.1-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ipython",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "8.14.0-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "8.20.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ipython",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "8.30.0-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "8.35.0-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ipython",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "9.11.0-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "9.11.0-2",
            "evidence": "/affected/7/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ipython",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "8.35.0-1",
            "evidence": "/affected/8/versions"
          },
          {
            "value": "8.35.0-2",
            "evidence": "/affected/8/versions"
          },
          {
            "value": "8.35.0-3",
            "evidence": "/affected/8/versions"
          },
          {
            "value": "9.8.0-4",
            "evidence": "/affected/8/versions"
          },
          {
            "value": "9.11.0-1",
            "evidence": "/affected/8/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2023-24816",
      "aliases": [
        "UBUNTU-CVE-2023-24816"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "low"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ipython",
            "purl": "pkg:deb/ubuntu/ipython?arch=source&distro=esm-infra-legacy%2Ftrusty",
            "ecosystem": "Ubuntu:Pro:14.04:LTS"
          },
          "versions": [
            "0.13.2-2",
            "1.1.0-1",
            "1.2.0~rc1-1",
            "1.2.1-2",
            "1.2.1-2ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24816.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ipython",
                "binary_version": "1.2.1-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "ipython-notebook",
                "binary_version": "1.2.1-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "ipython-notebook-common",
                "binary_version": "1.2.1-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "ipython-qtconsole",
                "binary_version": "1.2.1-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "ipython3",
                "binary_version": "1.2.1-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "ipython3-notebook",
                "binary_version": "1.2.1-2ubuntu0.1~esm1"
              },
              {
                "binary_name": "ipython3-qtconsole",
                "binary_version": "1.2.1-2ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ipython",
            "purl": "pkg:deb/ubuntu/ipython?arch=source&distro=esm-apps%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "2.3.0-2ubuntu1",
            "2.3.0-2ubuntu2",
            "2.4.1-1",
            "2.4.1-1ubuntu0.1~esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24816.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ipython",
                "binary_version": "2.4.1-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "ipython-notebook",
                "binary_version": "2.4.1-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "ipython-notebook-common",
                "binary_version": "2.4.1-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "ipython-qtconsole",
                "binary_version": "2.4.1-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "ipython3",
                "binary_version": "2.4.1-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "ipython3-notebook",
                "binary_version": "2.4.1-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "ipython3-qtconsole",
                "binary_version": "2.4.1-1ubuntu0.1~esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ipython",
            "purl": "pkg:deb/ubuntu/ipython?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "5.1.0-3",
            "5.5.0-1",
            "5.5.0-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24816.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ipython",
                "binary_version": "5.5.0-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "ipython3",
                "binary_version": "5.5.0-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python-ipython",
                "binary_version": "5.5.0-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python3-ipython",
                "binary_version": "5.5.0-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ipython",
            "purl": "pkg:deb/ubuntu/ipython?arch=source&distro=esm-apps%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "5.8.0-1",
            "5.8.0-1build1",
            "5.8.0-2",
            "7.12.0-1",
            "7.13.0-1",
            "7.13.0-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24816.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ipython3",
                "binary_version": "7.13.0-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python3-ipython",
                "binary_version": "7.13.0-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ipython",
            "purl": "pkg:deb/ubuntu/ipython?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "7.20.0-1",
            "7.22.0-1",
            "7.27.0-1",
            "7.31.0-1",
            "7.31.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24816.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ipython3",
                "binary_version": "7.31.1-1"
              },
              {
                "binary_name": "python3-ipython",
                "binary_version": "7.31.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ipython",
            "purl": "pkg:deb/ubuntu/ipython?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "8.14.0-2",
            "8.20.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24816.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ipython3",
                "binary_version": "8.20.0-1"
              },
              {
                "binary_name": "python3-ipython",
                "binary_version": "8.20.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ipython",
            "purl": "pkg:deb/ubuntu/ipython?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "8.30.0-2",
            "8.35.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24816.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ipython3",
                "binary_version": "8.35.0-1"
              },
              {
                "binary_name": "python3-ipython",
                "binary_version": "8.35.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ipython",
            "purl": "pkg:deb/ubuntu/ipython?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "9.11.0-1",
            "9.11.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24816.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ipython3",
                "binary_version": "9.11.0-2"
              },
              {
                "binary_name": "python3-ipython",
                "binary_version": "9.11.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ipython",
            "purl": "pkg:deb/ubuntu/ipython?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "8.35.0-1",
            "8.35.0-2",
            "8.35.0-3",
            "9.8.0-4",
            "9.11.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24816.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ipython3",
                "binary_version": "9.11.0-1"
              },
              {
                "binary_name": "python3-ipython",
                "binary_version": "9.11.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:04.509870112Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-24816"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2023-24816",
        "https://github.com/ipython/ipython/security/advisories/GHSA-29gw-9793-fvw7",
        "https://github.com/ipython/ipython/commit/991849c247fc208628879e7ca2923b3c218a5a75",
        "https://github.com/ipython/ipython/blob/3f0bf05f072a91b2a3042d23ce250e5e906183fd/IPython/utils/terminal.py#L103-L117",
        "https://github.com/ipython/ipython/commit/385d69325319a5972ee9b5983638e3617f21cb1f",
        "https://github.com/ipython/ipython/blob/56e6925dfa50e2c7f4a6471547b8176275db7c25/IPython/utils/_process_win32.py#L20",
        "https://www.cve.org/CVERecord?id=CVE-2023-24816"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-24816",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 354767,
  "published_at": "2023-02-10T20:15:00+00:00"
}