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
| Id | Name |
|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/ErikWynter/opentsdb_key_cmd_injection | poc-in-github | 2023-09-07 |
| https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/opentsdb_key_cmd_injection.rb | metasploit | 2023-07-01 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| opentsdb:opentsdb | < 2.4.2 | no | nvd | /v1/products/opentsdb/opentsdb |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| OpenTSDB/opentsdb | commit, fix, package, security_advisory | yes | /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