CVE-2018-12972
Description
OpenTSDB 2.3.0 and earlier allow command injection via parameters to the /q URI, leading to remote code execution.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
OpenTSDB 2.3.0 and earlier allow command injection via parameters to the /q URI, leading to remote code execution.
Vulnerability
OpenTSDB versions 2.3.0, 2.2.0, 2.1.4, and earlier are vulnerable to command injection through the /q HTTP endpoint [1][3]. The parameters o, key, style, yrange, and y2range (including their JSON input) do not sanitize user-supplied values, allowing shell metacharacters to be interpreted [1][3].
Exploitation
An attacker with network access to the OpenTSDB HTTP API can craft a malicious request to the /q endpoint [3]. For example, injecting backtick-encapsulated commands into the o parameter (e.g., %60ping%20-c%2010%20127.0.0.1%60) causes the server to execute the arbitrary command [3]. No authentication is required, and the attack does not require user interaction beyond sending the crafted URL [1][3].
Impact
Successful exploitation allows an attacker to execute arbitrary operating system commands on the OpenTSDB server with the privileges of the OpenTSDB process [1][3]. This can lead to full system compromise, including data exfiltration, installation of malware, or denial of service [3].
Mitigation
The vulnerability is fixed in OpenTSDB version 2.3.1 [3]. Users should upgrade to this release immediately [3]. If unable to patch, network access controls should restrict access to the /q endpoint to trusted hosts only [3].
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
net.opentsdb:opentsdbMaven | <= 2.3.0 | — |
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-cx2v-jrjc-g54wghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2018-12972ghsaADVISORY
- github.com/OpenTSDB/opentsdb/issues/1239ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.