Critical Reverse Shell Vulnerability in matlab-cli Package

matlab-cli Updated 03 Dec 2025

Summary

09/05/2025
CRITICAL
No i
Critical
Not published

MAL-2025-191785: Malicious code in matlab-cli (PyPI). Affected versions are not published. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The matlab-cli package is a Python library available on PyPI that facilitates command-line interactions with MATLAB. It is designed to streamline workflows for users who need to execute MATLAB commands from a terminal environment. However, this package has been found to contain malicious code that poses a significant security risk, allowing unauthorized access to users' systems.

Vulnerability Detail

The vulnerability originates from malicious code embedded within the matlab-cli package, specifically in version 0 and above. When the module is imported, it initiates a reverse shell, enabling an attacker to execute arbitrary commands on the victim's machine. This poses severe risks, including data theft, system compromise, and unauthorized access to sensitive information.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall matlab-cli

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

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

Workaround

As a temporary workaround, avoid importing the matlab-cli package in your projects until a secure version is released. If you must use it, consider running it in a controlled environment, such as a virtual machine, to mitigate potential risks.

Conclusion

The matlab-cli package contains a critical vulnerability that allows for the execution of arbitrary commands through a reverse shell. Users are advised to uninstall the package immediately and monitor for any updates. Utilizing tools like Vulert can help ensure your applications remain secure against such vulnerabilities.

See every vulnerability recorded for matlab-cli →

Share this vulnerability

FAQ

matlab-cli is a Python library that allows users to interact with MATLAB from the command line, enabling streamlined execution of MATLAB commands.

The vulnerability allows an attacker to execute arbitrary commands on a victim's machine by establishing a reverse shell upon importing the package.

Immediately uninstall the matlab-cli package using 'pip uninstall matlab-cli' and monitor for any updates or patches.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application against this vulnerability using the Vulert playground at Vulert Scanner without any signup.

The consequences include unauthorized access to your system, potential data breaches, and the ability for attackers to execute harmful commands.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall matlab-cli

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

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