CVE-2020-4066: Command Injection in Limdu

limdu Updated 02 Oct 2025

Summary

22/06/2020
Yes i
Low
3.8

CVE-2020-4066: Command Injection in Limdu. Affects limdu versions < 0.9.5. Fixed in 0.9.5. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Limdu is an open-source library in the npm ecosystem that provides a machine learning framework for Node.js. It allows developers to build and train classifiers for various natural language processing tasks. However, versions of Limdu up to 0.9.4 are vulnerable to a command injection attack in the trainBatch function. This vulnerability can be exploited by an attacker to execute arbitrary commands on the host system. The impact of this vulnerability can be severe, as it allows unauthorized remote code execution.

Vulnerability Detail

The trainBatch function in Limdu suffers from a command injection vulnerability. This means that an attacker can manipulate the input to the function in such a way that it includes malicious commands. When the vulnerable code executes these commands, it can lead to unauthorized actions on the host system. This vulnerability can be particularly dangerous if the classifiers used by Limdu rely on shell execution, such as SVM Perf, SVM Linear, or Adaboost. It is important to note that clients of the Limdu library may not be aware of this vulnerability and could inadvertently introduce it into their code.

How To Fix

Minimum fixed version

0.9.5

This is the first release that contains the fix.

npm install limdu@0.9.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If updating to the latest version of Limdu is not immediately feasible, a workaround is to avoid using the trainBatch function with classifiers that rely on shell execution. This includes classifiers like SVM Perf, SVM Linear, or Adaboost. By refraining from using these specific classifiers, the risk of command injection can be mitigated.

Conclusion

The command injection vulnerability in Limdu can have severe consequences, allowing unauthorized remote code execution. It is crucial for developers using Limdu to update to version 0.9.5 or later to mitigate this vulnerability. If immediate updating is not possible, avoiding the use of certain classifiers can serve as a temporary workaround. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for limdu →

Share this vulnerability

FAQ

Limdu is an open-source machine learning library for Node.js that provides a framework for building and training classifiers for natural language processing tasks.

The command injection vulnerability in Limdu can allow an attacker to execute arbitrary commands on the host system. This can lead to unauthorized actions and potential compromise of the system.

To fix this vulnerability, it is recommended to update to version 0.9.5 or later of the Limdu library. This version includes a patch that addresses the command injection vulnerability.

If updating to the latest version is not immediately feasible, a workaround is to avoid using the trainBatch function with classifiers that rely on shell execution, such as SVM Perf, SVM Linear, or Adaboost.

There is no known exploitation of this vulnerability at the moment. However, it is important to address the vulnerability promptly to prevent any potential attacks.

How To Fix

Minimum fixed version

0.9.5

This is the first release that contains the fix.

npm install limdu@0.9.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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