PT-2020-6865 · Opentsdb · Opentsdb

Aviad Golan

+2

·

Published

2020-11-18

·

Updated

2023-09-09

·

CVE-2020-35476

CVSS v2.0

10

Critical

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions OpenTSDB versions prior to 2.4.1
Description A remote code execution issue occurs due to command injection in the yrange parameter. The yrange value is written to a gnuplot file in the /tmp directory, which is then executed via the mygnuplot.sh shell script. The attempted prevention of command injections by blocking backticks in tsd/GraphHandler.java is insufficient. This allows a remote attacker to execute arbitrary code.
Recommendations For OpenTSDB versions prior to 2.4.1, update to version 2.4.1 or later to resolve the issue. As a temporary workaround, consider restricting access to the yrange parameter in the affected API endpoint until a patch is available. Avoid using the yrange parameter in the affected API endpoint until the issue is resolved.

Exploit

Fix

OS Command Injection

Weakness Enumeration

Related Identifiers

BDU:2023-02357
CVE-2020-35476
GHSA-HV53-Q76C-7F8C

Affected Products

Opentsdb