CVE-2020-35476 OS Command Injection in OpenTSDB
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.
| Package | Affected | Fixed in |
|---|---|---|
net.opentsdb:opentsdb Maven | All versions to 2.4.0 | None |
net.opentsdb:opentsdb Maven | All versions to 2.4.0 | None |
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.
Other vulnerabilities in n/a
Sources
Also known as GHSA-hv53-q76c-7f8c.