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.)
Remediation
References
https://github.com/OpenTSDB/opentsdb/issues/2051
http://packetstormsecurity.com/files/170331/OpenTSDB-2.4.0-Command-Injection.html
Related Vulnerabilities
CVE-2020-35149 Vulnerability in maven package org.webjars.npm:mquery
CVE-2023-34455 Vulnerability in maven package org.xerial.snappy:snappy-java
CVE-2017-18077 Vulnerability in maven package org.webjars.npm:brace-expansion
CVE-2020-7681 Vulnerability in npm package marscode
CVE-2022-1330 Vulnerability in maven package org.webjars.bowergithub.alvarotrigo:fullpage.js