# CVE-2021-33360: stoqey gnuplot command injection

Source: https://junglewise.ai/threats/cve-2021-33360-stoqey-gnuplot-command-injection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-03-10. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2021-33360 · Severity: low · CVSS 3.1 · Published 2023-03-10

Stoqey gnuplot is a Node.js library that generates plots by interfacing with the gnuplot plotting utility. A command injection vulnerability in the library allows attackers to execute arbitrary system commands by manipulating input parameters, potentially leading to full system compromise. This affects any application that uses the library to process untrusted plot data or file paths.

Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2021-33360 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-33360 being exploited in the wild.

**How severe is CVE-2021-33360?** Low severity, with a CVSS score of 3.1, published 10 March 2023.

**Which products and versions are affected?** @stoqey/gnuplot (npm) SEMVER:introduced=0,last_affected=0.0.3.

**Is there a fix for CVE-2021-33360?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2021-33360 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2021-33360?** Check whether you run @stoqey/gnuplot (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a command injection flaw (CWE-77) in the stoqey gnuplot library (versions 0.0.3 and earlier) where user-supplied input passed via parameters like filePath and plotCallback is not properly sanitized before being passed to child_process execution functions. An attacker can inject shell metacharacters or commands into these parameters to achieve arbitrary code execution on the system running the Node.js application. The attack requires network access to the application but does not require authentication or user interaction. No patch status is explicitly documented in the advisory.

## Affected products

- stoqey gnuplot 0.0.3 and earlier

## Identifiers

- CVE-2021-33360
- GHSA-795w-7426-m94j

## Timeline

- 2023-03-10: disclosed
- 2021: other: CVE-2021-33360 assigned

## References

- [https://advisory.checkmarx.net/advisory/CX-2021-4811](https://advisory.checkmarx.net/advisory/CX-2021-4811)
