SecurityContext

CVE-2023-36812: OpenTSDB - Remote Code Execution

  • Cve: CVE-2023-36812
  • Name: OpenTSDB - Remote Code Execution
  • Description: 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`.
  • Impact: Attackers can execute arbitrary code on the server, potentially leading to full system compromise.
  • Remediation: Upgrade to version 2.4.2 or later, or disable Gnuplot via configuration and remove related shell files.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.16501
  • Epss percentile: 0.97069
  • Assignee: [email protected]
  • Published at: 2023-06-30T23:15:10Z
  • Age in days: 1243
  • Modified at: 2026-06-17T06:07:07Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-36812
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-74Improper Neutralization of Special Elements in Output Used by a Downstream Component

Public exploits

UrlSourceAdded date
https://github.com/ErikWynter/opentsdb_key_cmd_injectionpoc-in-github2023-09-07
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/opentsdb_key_cmd_injection.rbmetasploit2023-07-01

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/OpenTSDB/opentsdb/commit/07c4641471c6f5c2ab5aab615969e97211eb50d9Patch
https://github.com/OpenTSDB/opentsdb/commit/fa88d3e4b5369f9fb73da384fab0b23e246309baPatch
https://github.com/OpenTSDB/opentsdb/security/advisories/GHSA-76f7-9v52-v2fwPatch
http://packetstormsecurity.com/files/174570/OpenTSDB-2.4.1-Unauthenticated-Command-Injection.html

Products

ProductAffectedPlatform boundSourcesUrl
opentsdb:opentsdb< 2.4.2nonvd/v1/products/opentsdb/opentsdb

Projects

RepositoryLink kindsIndexedUrl
OpenTSDB/opentsdbcommit, fix, package, security_advisoryyes/v1/repositories/OpenTSDB/opentsdb

Index

  • Repositories: 2
  • Repositories high signal: 1
  • Packages: 1

Exploitation

  • Exploitation seen: yes
  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2023-07-01
  • Remote: yes
  • Exposed hosts: 78
  • Checked, none or zero: known exploited, known exploited by, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports