{"id":"CVE-2023-36812","aliases":["CVE-2023-36812","GHSA-76f7-9v52-v2fw"],"related":[],"kind":"vulnerability","state":"published","title":"Remote Code Execution in OpenTSDB","summary":"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`.","summarySource":"cvelist","descriptions":[{"lang":"en","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`.","source":"cvelist"},{"lang":"en","text":"### Impact\nOpenTSDB is vulnerable to Remote Code Execution vulnerability by writing user-controlled input to Gnuplot configuration file and running Gnuplot with the generated configuration.\n\n### Patches\nPatched in [07c4641471c6f5c2ab5aab615969e97211eb50d9](https://github.com/OpenTSDB/opentsdb/commit/07c4641471c6f5c2ab5aab615969e97211eb50d9) and further refined in https://github.com/OpenTSDB/opentsdb/commit/fa88d3e4b5369f9fb73da384fab0b23e246309ba\n\n### Workarounds\nDisable Gunuplot via `tsd.core.enable_ui = true` and remove the shell files https://github.com/OpenTSDB/opentsdb/blob/master/src/mygnuplot.bat and https://github.com/OpenTSDB/opentsdb/blob/master/src/mygnuplot.sh.","format":"markdown","source":"ghsa"}],"published":"2023-06-30T22:58:33.603Z","modified":"2026-09-10T03:50:02.124Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":"< 2.4.2","status":"affected"}],"vendor":"OpenTSDB","product":"opentsdb","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"2.4.2","status":"affected"}],"vendor":"opentsdb","product":"opentsdb","cpe":"cpe:2.3:a:opentsdb:opentsdb:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.2"}],"ecosystem":"Maven","package":"net.opentsdb:opentsdb","purl":"pkg:maven/net.opentsdb/opentsdb","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.4.2"}],"vendor":"opentsdb","product":"opentsdb","cpe":"cpe:2.3:a:opentsdb:opentsdb:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/OpenTSDB/opentsdb/security/advisories/GHSA-76f7-9v52-v2fw","tags":["patch","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OpenTSDB/opentsdb/commit/07c4641471c6f5c2ab5aab615969e97211eb50d9","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OpenTSDB/opentsdb/commit/fa88d3e4b5369f9fb73da384fab0b23e246309ba","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://packetstormsecurity.com/files/174570/OpenTSDB-2.4.1-Unauthenticated-Command-Injection.html","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36812","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/OpenTSDB/opentsdb","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2024-11-06T17:02:44.718Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-36812","url":"https://www.cve.org/CVERecord?id=CVE-2023-36812","licence":"CVE Terms of Use","modified":"2025-02-13T16:56:26.038Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-76f7-9v52-v2fw","url":"https://github.com/advisories/GHSA-76f7-9v52-v2fw","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:02.124Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-36812","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36812","licence":"Public domain","modified":"2026-06-17T06:07:07.727Z"}],"updatedAt":"2026-11-25T22:58:25.350Z","epss":{"score":0.16501,"percentile":0.97066,"date":"2026-12-01T12:00:22.000Z"}}