GHSA-65xx-c85x-wg76 Command Injection in plotter

Not scored Published

Attackers can execute arbitrary system commands via unsanitized plot titles in the plotter library, requiring immediate replacement of the package.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is GHSA-65xx-c85x-wg76?

GHSA-65xx-c85x-wg76 is a command injection vulnerability in plotter, published on 4 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions of plotter are vulnerable to Command Injection. The package fails to sanitize plot titles, which may allow attackers to execute arbitrary code in the system if the title value is supplied by a user. The following proof-of-concept creates a testing file in the current directory:

var plot = require('plotter').plot;

const title = 'Example "\nset title system("touch testing")#';

plot({
data: [ 3, 1, 2, 3, 4 ],
filename: 'output.pdf',
style: 'linespoints',
title: title,
logscale: true,
xlabel: 'time',
ylabel: 'length of string',
format: 'pdf'
});

Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

Which versions are affected by GHSA-65xx-c85x-wg76?

2 open source packages ship an affected version, including plotter.

PackageAffectedFixed in
plotter npmFrom 0.0.0None
plotter npmFrom 0.0.0None

How do I fix GHSA-65xx-c85x-wg76?

No fix has been published for GHSA-65xx-c85x-wg76 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is GHSA-65xx-c85x-wg76 being exploited?

There is no known exploitation of GHSA-65xx-c85x-wg76 in the wild and no public exploit code.

Sources

Is GHSA-65xx-c85x-wg76 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free