{"id":"CVE-2020-35476","published":"2020-12-16T00:00:00Z","modified":"2024-08-04T17:02:08Z","title":"A remote code execution vulnerability occurs in OpenTSDB through 2.4.0 via command injection in the yrange parameter","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.)","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is a command injection in the yrange parameter of OpenTSDB through 2.4.0, where the value is written into a gnuplot file in /tmp that is then executed by the mygnuplot.sh shell script, and the existing filter in tsd/GraphHandler.java that blocks backticks is insufficient.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:15:02Z"},"cvss":null,"epss":{"score":0.8533,"percentile":0.99723,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-01-21","exploitedFirstSeen":"2024-01-21","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-21&host_type=src&vulnerability=cve-2020-35476","date":"2024-01-21"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-22&host_type=src&vulnerability=cve-2020-35476","date":"2024-01-22"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-23&host_type=src&vulnerability=cve-2020-35476","date":"2024-01-23"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-24&host_type=src&vulnerability=cve-2020-35476","date":"2024-01-24"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-25&host_type=src&vulnerability=cve-2020-35476","date":"2024-01-25"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-26&host_type=src&vulnerability=cve-2020-35476","date":"2024-01-26"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-27&host_type=src&vulnerability=cve-2020-35476","date":"2024-01-27"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-28&host_type=src&vulnerability=cve-2020-35476","date":"2024-01-28"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-29&host_type=src&vulnerability=cve-2020-35476","date":"2024-01-29"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-30&host_type=src&vulnerability=cve-2020-35476","date":"2024-01-30"}],"evidenceTotal":545,"provenance":"source"},"exploited":true,"otx":{"pulseCount":3,"pulses":[{"name":"Mirai, RAR1Ransom, and GuardMiner – Multiple Malware Campaigns Target VMware Vulnerability","url":"https://otx.alienvault.com/pulse/63579137c1103ef3aec3b272","created":"2022-10-25"},{"name":"Fortinet | multiple-malware-campaigns-target-vmware-vulnerability","url":"https://otx.alienvault.com/pulse/6356c8b4eb4f28638a6ee358","created":"2022-10-24"},{"name":"Mirai, RAR1Ransom, and GuardMiner – Multiple Malware Campaigns Target VMware Vulnerability","url":"https://otx.alienvault.com/pulse/6356c7f833f28e954ce8a98c","created":"2022-10-24"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://github.com/OpenTSDB/opentsdb/issues/2051","tags":[]},{"url":"http://packetstormsecurity.com/files/170331/OpenTSDB-2.4.0-Command-Injection.html","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"net.opentsdb:opentsdb","vulnerableRanges":["<=2.4.0"],"patched":[],"from":["GHSA-hv53-q76c-7f8c"],"provenance":"source"}],"advisories":[{"id":"GHSA-hv53-q76c-7f8c","url":"https://github.com/advisories/GHSA-hv53-q76c-7f8c","severity":"CRITICAL","ecosystem":"Maven","package":"net.opentsdb:opentsdb","vulnerableRanges":["<=2.4.0"],"patched":[],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2021-1758","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-1758","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-10-08","earliestUrl":"https://github.com/CyberCTF/vulhub-opentsdb-cve-2020-35476","repos":[{"name":"CyberCTF/vulhub-opentsdb-cve-2020-35476","url":"https://github.com/CyberCTF/vulhub-opentsdb-cve-2020-35476","stars":0,"created":"2026-10-08"}]},"metasploit":[{"name":"OpenTSDB 2.4.0 unauthenticated command injection","module":"exploit/linux/http/opentsdb_yrange_cmd_injection","type":"exploit","disclosureDate":"2020-11-18","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/opentsdb_yrange_cmd_injection.rb"}],"nuclei":[{"id":"CVE-2020-35476","name":"OpenTSDB <=2.4.0 - Remote Code Execution","severity":"critical","path":"http/cves/2020/CVE-2020-35476.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-35476.yaml"}],"first":{"date":"2020-11-18","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/opentsdb_yrange_cmd_injection.rb"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/170331/OpenTSDB-2.4.0-Command-Injection.html"],"flow":[],"timeline":[{"date":"2020-11-18","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2026-10-08","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/opentsdb_yrange_cmd_injection.rb","provenance":"source"},{"date":"2020-12-16","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2020-35476","provenance":"source"},{"date":"2024-01-21","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-01-21&host_type=src&vulnerability=cve-2020-35476","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":61.3,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1034 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.94,"detail":"percentile 0.9972"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD exploit link; 1 PoC-in-GitHub repo; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":1.37,"detail":"3 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-opentsdb-cve-2020-35476","children":[{"from":"CVE-2020-35476","to":"CVE-2023-25826","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This exploit exists due to an incomplete fix that was made when this vulnerability was previously disclosed as CVE-2020-35476.","from":"CVE.org","in":"CVE-2023-25826"}]}]}}