CVE-2021-29369: Code injection in @rkesters/gnuplot
Summary
CVE-2021-29369: Code injection in @rkesters/gnuplot. Affects @rkesters/gnuplot versions < 0.1.1. Fixed in 0.1.1. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The @rkesters/gnuplot package is a node module that provides an easy way to draw charts using gnuplot and ps2pdf. It is commonly used in Node.js applications for generating visual representations of data. However, prior to version 0.1.0, this package is vulnerable to code injection attacks through shell metacharacters in Gnuplot commands.
Vulnerability Detail
The vulnerability in @rkesters/gnuplot allows an attacker to execute arbitrary code by exploiting shell metacharacters in Gnuplot commands. This means that an attacker can inject malicious commands that will be executed by the underlying operating system. The impact of this vulnerability can be severe, as it allows an attacker to gain unauthorized access, escalate privileges, or perform other malicious actions on the affected system. The vulnerability has a CVSS score of 9.8, indicating its critical severity.
How To Fix
Minimum fixed version
0.1.1
This is the first release that contains the fix.
npm install @rkesters/gnuplot@0.1.1
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is recommended to update to the latest version of the @rkesters/gnuplot package as soon as possible.
Conclusion
The @rkesters/gnuplot package prior to version 0.1.0 is vulnerable to code injection, which can lead to unauthorized access and execution of arbitrary code. Users should update to version 0.1.1 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for @rkesters/gnuplot →
FAQ
@rkesters/gnuplot is a node module that provides a convenient way to draw charts using gnuplot and ps2pdf in Node.js applications.
The code injection vulnerability in @rkesters/gnuplot occurs when shell metacharacters are not properly sanitized in Gnuplot commands. This allows an attacker to inject malicious commands that will be executed by the underlying operating system.
The potential consequences of this vulnerability include unauthorized access to the affected system, privilege escalation, and the ability to execute arbitrary code. These actions can lead to data breaches, system compromise, and other malicious activities.
Yes, a fix is available for this vulnerability. Users should update to version 0.1.1 or later of the @rkesters/gnuplot package to mitigate the code injection vulnerability.
No, there are no known workarounds for this vulnerability. It is recommended to update to the latest version of the @rkesters/gnuplot package to ensure the vulnerability is addressed.