CVE-2020-35476 in the critical feed json
OS Command Injection in OpenTSDB
published 5y ago modified 4mo ago also GHSA-hv53-q76c-7f8c , EUVD-2021-1758
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 85.3%
- EPSS 85.3% chance of exploitation in 30 days, percentile 99.7%
- public exploits
- 1
- Metasploit, plus a Nuclei check
Summary
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.)
Is CVE-2020-35476 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerTimeline
- First public exploit (Metasploit exploit/linux/http/opentsdb_yrange_cmd_injection)
- Published
Exploit prediction
85.33% chance of exploitation in the next 30 days, higher than 99.7% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Metasploit exploit/linux/http/opentsdb_yrange_cmd_injection OpenTSDB 2.4.0 unauthenticated command injection metasploit exploit, excellent rank, 2020-11-18
- Nuclei template OpenTSDB <=2.4.0 - Remote Code Execution nuclei detection template
- github.com https://github.com/OpenTSDB/opentsdb/issues/2051 referenced PoC, tagged "exploit" by a source, unverified
- packetstormsecurity.com http://packetstormsecurity.com/files/170331/OpenTSDB-2.4.0-Command-Injection.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | net.opentsdb:opentsdb | <=2.4.0 |
no fix listed |
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/OpenTSDB/opentsdb/issues/2051
web, exploit, issue-tracking, third-party-advisory
-
packetstormsecurity.com
/files/170331/OpenTSDB-2.4.0-Command-Injection.html
web, exploit, third-party-advisory, vdb-entry
-
nvd.nist.gov
/vuln/detail/CVE-2020-35476
advisory
Sources
- CVE List CVE-2020-35476
- GitHub Advisory GHSA-hv53-q76c-7f8c
- NVD CVE-2020-35476
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.