Command Injection Vulnerability in IPython Package

ipython Updated 02 Oct 2025

Summary

10/02/2023
N/A
No i
Medium
4.5

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. Affects ipython versions 0.13.2-2 – 1.2.1-2ubuntu0.1~esm1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

IPython is an interactive command shell designed for computing in various programming languages, primarily Python. It provides a rich toolkit to help users with interactive computing, including features like dynamic introspection, rich media, and shell syntax. However, certain versions of IPython are vulnerable to a command injection issue that can be exploited under specific conditions.

Vulnerability Detail

The vulnerability arises from the function IPython.utils.terminal.set_term_title, which can be exploited in a Windows Python environment where the ctypes library is not available. This flaw allows an attacker to inject shell commands if untrusted input is passed to this function. The potential ramifications include unauthorized command execution within the scope of the current process, which could lead to further exploitation or data compromise.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If upgrading is not feasible, users should ensure that any calls to the IPython.utils.terminal.set_term_title function are made with trusted or filtered input to mitigate the risk of command injection.

Conclusion

The command injection vulnerability in IPython poses a risk to users who utilize the affected versions of the package. It is crucial to upgrade to the patched version to mitigate this risk. Users unable to upgrade should implement input validation as a temporary measure.

See every vulnerability recorded for ipython →

Share this vulnerability

FAQ

Versions prior to 8.1.0 are vulnerable to this command injection issue.

The CVSS score for this vulnerability is 4.5, indicating a moderate severity level.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If upgrading is not an option, ensure that any input to the set_term_title function is trusted or filtered to prevent command injection.

While the primary risk is unauthorized command execution, it could potentially lead to data loss or further exploitation depending on the commands executed.

Related vulnerabilities

Recent vulnerabilities recorded for ipython.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback