{"id":"CVE-2023-36812","published":"2023-06-30T22:58:33Z","modified":"2025-02-13T16:56:26Z","title":"Remote Code Execution in OpenTSDB","vendor":"OpenTSDB","product":"opentsdb","tier":"tail","description":{"text":"OpenTSDB is a open source, distributed, scalable Time Series Database (TSDB). OpenTSDB is vulnerable to Remote Code Execution vulnerability by writing user-controlled input to Gnuplot configuration file and running Gnuplot with the generated configuration. This issue has been patched in  commit `07c4641471c` and further refined in commit `fa88d3e4b`. These patches are available in the `2.4.2` release. Users are advised to upgrade. User unable to upgrade may disable Gunuplot via the config option`tsd.core.enable_ui = true` and remove the shell files `mygnuplot.bat` and `mygnuplot.sh`.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.16501,"percentile":0.97065,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/OpenTSDB/opentsdb/security/advisories/GHSA-76f7-9v52-v2fw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenTSDB/opentsdb/commit/07c4641471c6f5c2ab5aab615969e97211eb50d9","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenTSDB/opentsdb/commit/fa88d3e4b5369f9fb73da384fab0b23e246309ba","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/174570/OpenTSDB-2.4.1-Unauthenticated-Command-Injection.html","tags":[]}],"priority":{"score":31.3,"factors":[{"name":"EPSS percentile","points":19.41},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2023-09-07","earliestUrl":"https://github.com/ErikWynter/opentsdb_key_cmd_injection","repos":[{"name":"ErikWynter/opentsdb_key_cmd_injection","url":"https://github.com/ErikWynter/opentsdb_key_cmd_injection","stars":7,"created":"2023-09-07"}]},"metasploit":[{"name":"OpenTSDB 2.4.1 unauthenticated command injection","module":"exploit/linux/http/opentsdb_key_cmd_injection","type":"exploit","disclosureDate":"2023-07-01","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/opentsdb_key_cmd_injection.rb"}],"first":{"date":"2023-07-01","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/opentsdb_key_cmd_injection.rb"},"provenance":"source"},"vendorSlug":"opentsdb","affectedVersions":[{"vendor":"OpenTSDB","product":"opentsdb","versions":["< 2.4.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-11-06T17:02:44.718044Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"net.opentsdb:opentsdb","vulnerableRanges":["<2.4.2"],"patched":["2.4.2"],"from":["GHSA-76f7-9v52-v2fw"],"provenance":"source"}],"summary":{"text":"OpenTSDB, the open source distributed time series database, contains a flaw where user-controlled input is written into a Gnuplot configuration file that is then executed by Gnuplot. An attacker with network access and no authentication or user interaction can exploit this to achieve remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:17:36Z"},"euvd":{"id":"EUVD-2023-1721","exploited":false,"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/174570/OpenTSDB-2.4.1-Unauthenticated-Command-Injection.html"]}