Vulnerability Instance
Lookup for vulnerabilities affecting packages.
GET /api/vulnerabilities/53898?format=api
{ "url": "http://public2.vulnerablecode.io/api/vulnerabilities/53898?format=api", "vulnerability_id": "VCID-ks91-x6vr-tbay", "summary": "Command Injection\nA remote code execution vulnerability occurs in OpenTSDB 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).", "aliases": [ { "alias": "CVE-2020-35476" }, { "alias": "GHSA-hv53-q76c-7f8c" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/65048?format=api", "purl": "pkg:maven/net.opentsdb/opentsdb@2.4.1", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-kr5z-32hw-x3da" }, { "vulnerability": "VCID-t5md-jk9p-33bs" }, { "vulnerability": "VCID-v9zg-dg6q-k7c4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.opentsdb/opentsdb@2.4.1" } ], "affected_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/282421?format=api", "purl": "pkg:maven/net.opentsdb/opentsdb@2.1.3", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-kr5z-32hw-x3da" }, { "vulnerability": "VCID-ks91-x6vr-tbay" }, { "vulnerability": "VCID-t5md-jk9p-33bs" }, { "vulnerability": "VCID-v9zg-dg6q-k7c4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.opentsdb/opentsdb@2.1.3" }, { "url": "http://public2.vulnerablecode.io/api/packages/282422?format=api", "purl": "pkg:maven/net.opentsdb/opentsdb@2.2.0RC1", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-kr5z-32hw-x3da" }, { "vulnerability": "VCID-ks91-x6vr-tbay" }, { "vulnerability": "VCID-t5md-jk9p-33bs" }, { "vulnerability": "VCID-v9zg-dg6q-k7c4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.opentsdb/opentsdb@2.2.0RC1" }, { "url": "http://public2.vulnerablecode.io/api/packages/282423?format=api", "purl": "pkg:maven/net.opentsdb/opentsdb@2.2.0", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-kr5z-32hw-x3da" }, { "vulnerability": "VCID-ks91-x6vr-tbay" }, { "vulnerability": "VCID-t5md-jk9p-33bs" }, { "vulnerability": "VCID-v9zg-dg6q-k7c4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.opentsdb/opentsdb@2.2.0" }, { "url": "http://public2.vulnerablecode.io/api/packages/282424?format=api", "purl": "pkg:maven/net.opentsdb/opentsdb@2.2.1", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-kr5z-32hw-x3da" }, { "vulnerability": "VCID-ks91-x6vr-tbay" }, { "vulnerability": "VCID-t5md-jk9p-33bs" }, { "vulnerability": "VCID-v9zg-dg6q-k7c4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.opentsdb/opentsdb@2.2.1" }, { "url": "http://public2.vulnerablecode.io/api/packages/282425?format=api", "purl": "pkg:maven/net.opentsdb/opentsdb@2.2.2", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-kr5z-32hw-x3da" }, { "vulnerability": "VCID-ks91-x6vr-tbay" }, { "vulnerability": "VCID-t5md-jk9p-33bs" }, { "vulnerability": "VCID-v9zg-dg6q-k7c4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.opentsdb/opentsdb@2.2.2" }, { "url": "http://public2.vulnerablecode.io/api/packages/282426?format=api", "purl": "pkg:maven/net.opentsdb/opentsdb@2.3.0-RC1", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-kr5z-32hw-x3da" }, { "vulnerability": "VCID-ks91-x6vr-tbay" }, { "vulnerability": "VCID-t5md-jk9p-33bs" }, { "vulnerability": "VCID-v9zg-dg6q-k7c4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.opentsdb/opentsdb@2.3.0-RC1" }, { "url": "http://public2.vulnerablecode.io/api/packages/282427?format=api", "purl": "pkg:maven/net.opentsdb/opentsdb@2.3.0-RC2", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-kr5z-32hw-x3da" }, { "vulnerability": "VCID-ks91-x6vr-tbay" }, { "vulnerability": "VCID-t5md-jk9p-33bs" }, { "vulnerability": "VCID-v9zg-dg6q-k7c4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.opentsdb/opentsdb@2.3.0-RC2" }, { "url": "http://public2.vulnerablecode.io/api/packages/55990?format=api", "purl": "pkg:maven/net.opentsdb/opentsdb@2.3.0", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-cwjt-prsy-nfdy" }, { "vulnerability": "VCID-f8hh-ty64-xfb9" }, { "vulnerability": "VCID-kr5z-32hw-x3da" }, { "vulnerability": "VCID-ks91-x6vr-tbay" }, { "vulnerability": "VCID-t5md-jk9p-33bs" }, { "vulnerability": "VCID-v9zg-dg6q-k7c4" }, { "vulnerability": "VCID-xbn7-weew-c3df" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.opentsdb/opentsdb@2.3.0" }, { "url": "http://public2.vulnerablecode.io/api/packages/55991?format=api", "purl": "pkg:maven/net.opentsdb/opentsdb@2.3.1", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-kr5z-32hw-x3da" }, { "vulnerability": "VCID-ks91-x6vr-tbay" }, { "vulnerability": "VCID-t5md-jk9p-33bs" }, { "vulnerability": "VCID-v9zg-dg6q-k7c4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.opentsdb/opentsdb@2.3.1" }, { "url": "http://public2.vulnerablecode.io/api/packages/282428?format=api", "purl": "pkg:maven/net.opentsdb/opentsdb@2.3.2", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-kr5z-32hw-x3da" }, { "vulnerability": "VCID-ks91-x6vr-tbay" }, { "vulnerability": "VCID-t5md-jk9p-33bs" }, { "vulnerability": "VCID-v9zg-dg6q-k7c4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.opentsdb/opentsdb@2.3.2" }, { "url": "http://public2.vulnerablecode.io/api/packages/282429?format=api", "purl": "pkg:maven/net.opentsdb/opentsdb@2.4.0RC1", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-kr5z-32hw-x3da" }, { "vulnerability": "VCID-ks91-x6vr-tbay" }, { "vulnerability": "VCID-t5md-jk9p-33bs" }, { "vulnerability": "VCID-v9zg-dg6q-k7c4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.opentsdb/opentsdb@2.4.0RC1" }, { "url": "http://public2.vulnerablecode.io/api/packages/79369?format=api", "purl": "pkg:maven/net.opentsdb/opentsdb@2.4.0", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-kr5z-32hw-x3da" }, { "vulnerability": "VCID-ks91-x6vr-tbay" }, { "vulnerability": "VCID-t5md-jk9p-33bs" }, { "vulnerability": "VCID-v9zg-dg6q-k7c4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.opentsdb/opentsdb@2.4.0" } ], "references": [ { "reference_url": "http://packetstormsecurity.com/files/170331/OpenTSDB-2.4.0-Command-Injection.html", "reference_id": "", "reference_type": "", "scores": [ { "value": "9.8", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" }, { "value": "CRITICAL", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "http://packetstormsecurity.com/files/170331/OpenTSDB-2.4.0-Command-Injection.html" }, { "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2020-35476", "reference_id": "", "reference_type": "", "scores": [ { "value": "0.9425", "scoring_system": "epss", "scoring_elements": "0.99933", "published_at": "2026-06-09T12:55:00Z" } ], "url": "https://api.first.org/data/v1/epss?cve=CVE-2020-35476" }, { "reference_url": "https://github.com/OpenTSDB/opentsdb/issues/2051", "reference_id": "", "reference_type": "", "scores": [ { "value": "9.8", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" }, { "value": "CRITICAL", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/OpenTSDB/opentsdb/issues/2051" }, { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2020-35476", "reference_id": "CVE-2020-35476", "reference_type": "", "scores": [ { "value": "9.8", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" }, { "value": "CRITICAL", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-35476" }, { "reference_url": "https://github.com/advisories/GHSA-hv53-q76c-7f8c", "reference_id": "GHSA-hv53-q76c-7f8c", "reference_type": "", "scores": [ { "value": "CRITICAL", "scoring_system": "cvssv3.1_qr", "scoring_elements": "" } ], "url": "https://github.com/advisories/GHSA-hv53-q76c-7f8c" } ], "weaknesses": [ { "cwe_id": 1035, "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities", "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017." }, { "cwe_id": 77, "name": "Improper Neutralization of Special Elements used in a Command ('Command Injection')", "description": "The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component." }, { "cwe_id": 937, "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities", "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013." }, { "cwe_id": 78, "name": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", "description": "The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component." } ], "exploits": [ { "date_added": null, "description": "This module exploits an unauthenticated command injection\n vulnerability in the yrange parameter in OpenTSDB through\n 2.4.0 (CVE-2020-35476) in order to achieve unauthenticated\n remote code execution as the root user.\n\n The module first attempts to obtain the OpenTSDB version via\n the api. If the version is 2.4.0 or lower, the module\n performs additional checks to obtain the configured metrics\n and aggregators. It then randomly selects one metric and one\n aggregator and uses those to instruct the target server to\n plot a graph. As part of this request, the yrange parameter is\n set to the payload, which will then be executed by the target\n if the latter is vulnerable.\n\n This module has been successfully tested against OpenTSDB\n version 2.3.0.", "required_action": null, "due_date": null, "notes": "Stability:\n - crash-safe\nSideEffects:\n - artifacts-on-disk\n - ioc-in-logs\nReliability:\n - repeatable-session\n", "known_ransomware_campaign_use": false, "source_date_published": "2020-11-18", "exploit_type": null, "platform": "Linux,Unix", "source_date_updated": null, "data_source": "Metasploit", "source_url": "https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/linux/http/opentsdb_yrange_cmd_injection.rb" } ], "severity_range_score": "9.0 - 10.0", "exploitability": "2.0", "weighted_severity": "9.0", "risk_score": 10.0, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ks91-x6vr-tbay" }