{"id":"GHSA-76f7-9v52-v2fw","summary":"Remote Code Execution for 2.4.1 and earlier","details":"### 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.","aliases":["CVE-2023-36812"],"modified":"2026-09-10T03:50:02.124887809Z","published":"2023-06-30T22:58:41Z","database_specific":{"nvd_published_at":"2023-06-30T23:15:10Z","cwe_ids":["CWE-74"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2023-06-30T22:58:41Z"},"references":[{"type":"WEB","url":"https://github.com/OpenTSDB/opentsdb/security/advisories/GHSA-76f7-9v52-v2fw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36812"},{"type":"WEB","url":"https://github.com/OpenTSDB/opentsdb/commit/07c4641471c6f5c2ab5aab615969e97211eb50d9"},{"type":"WEB","url":"https://github.com/OpenTSDB/opentsdb/commit/fa88d3e4b5369f9fb73da384fab0b23e246309ba"},{"type":"PACKAGE","url":"https://github.com/OpenTSDB/opentsdb"},{"type":"WEB","url":"http://packetstormsecurity.com/files/174570/OpenTSDB-2.4.1-Unauthenticated-Command-Injection.html"}],"affected":[{"package":{"name":"net.opentsdb:opentsdb","ecosystem":"Maven","purl":"pkg:maven/net.opentsdb/opentsdb"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.2"}]}],"versions":["2.1.3","2.2.0","2.2.0RC1","2.2.1","2.2.2","2.3.0","2.3.0-RC1","2.3.0-RC2","2.3.1","2.3.2","2.4.0","2.4.0RC1","2.4.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-76f7-9v52-v2fw/GHSA-76f7-9v52-v2fw.json","last_known_affected_version_range":"\u003c= 2.4.1"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}