Junglewise Threat Intelligence

CVE-2021-33360: stoqey gnuplot command injection

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

Technologies: Stoqey Gnuplot. Vendors: npm.

Executive brief

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.

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

Timeline

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

References