CVE-2020-35476 OS Command Injection in OpenTSDB

Critical 9.8 Published Updated

Attackers can execute arbitrary commands on OpenTSDB servers via the yrange parameter, leading to remote code execution.

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

What is CVE-2020-35476?

CVE-2020-35476 is a critical command injection vulnerability in n/a, published on 16 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A remote code execution vulnerability occurs in OpenTSDB through 2.4.0 via command injection in the yrange parameter. The yrange value is written to a gnuplot file in the /tmp directory. This file is then executed via the mygnuplot.sh shell script. (tsd/GraphHandler.java attempted to prevent command injections by blocking backticks but this is insufficient.)

Weakness: CWE-78

Which versions are affected by CVE-2020-35476?

2 open source packages ship an affected version, including net.opentsdb:opentsdb. It affects 1 product.

PackageAffectedFixed in
net.opentsdb:opentsdb MavenAll versions to 2.4.0None
net.opentsdb:opentsdb MavenAll versions to 2.4.0None

Products include Opentsdb Opentsdb.

How do I fix CVE-2020-35476?

No fix has been published for CVE-2020-35476 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 CVE-2020-35476 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-35476 exists.

Public exploit code: 1 Metasploit module, 1 Nuclei template and 2 proofs of concept on GitHub.

Sources

Also known as GHSA-hv53-q76c-7f8c.

Is CVE-2020-35476 in your software?

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

Check your SBOMs for free