PT-2020-6865 · Opentsdb · Opentsdb

·

CVE-2020-35476

·

Published

2020-11-18

·

Updated

2023-09-09

CVSS v3.1

10

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

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

Affected Products

Opentsdb