{"answers":{"affected":"2 open source packages ship an affected version, including net.opentsdb:opentsdb. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-36812 exists.","fix":"Upgrade net.opentsdb:opentsdb to 2.4.2 or later.","what":"CVE-2023-36812 is a critical command injection vulnerability in opentsdb, published on 30 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-36812 and fix it if it is affected.\n\nWhat it is: CVE-2023-36812 is a critical command injection vulnerability in opentsdb, published on 30 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-36812 exists.\n\nAffected packages and fixed versions:\n- net.opentsdb:opentsdb (Maven): affected all versions; fixed in 2.4.2\n- net.opentsdb:opentsdb (Maven): affected all versions; fixed in 2.4.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-36812/ (Markdown: https://insights.sbomify.com/CVE-2023-36812/index.md)","id":"CVE-2023-36812","markdown":"https://insights.sbomify.com/CVE-2023-36812/index.md","name":"CVE-2023-36812","record":{"aliases":["GHSA-76f7-9v52-v2fw"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Time Series Database","requires_auth":"none","summary":"Attackers can execute arbitrary code by injecting commands into Gnuplot configuration files within OpenTSDB.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"opentsdb","vendor":"opentsdb"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"OpenTSDB is a open source, distributed, scalable Time Series Database (TSDB). OpenTSDB is vulnerable to Remote Code Execution vulnerability by writing user-controlled input to Gnuplot configuration file and running Gnuplot with the generated configuration. This issue has been patched in  commit `07c4641471c` and further refined in commit `fa88d3e4b`. These patches are available in the `2.4.2` release. Users are advised to upgrade. User unable to upgrade may disable Gunuplot via the config option`tsd.core.enable_ui = true` and remove the shell files `mygnuplot.bat` and `mygnuplot.sh`.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2023-07-01","github_poc":1,"max_poc_stars":7,"metasploit":1,"nuclei":0,"refs":[{"date":"2023-09-07T13:47:13Z","kind":"github_poc","ref":"https://github.com/ErikWynter/opentsdb_key_cmd_injection","stars":7,"title":"An exploit for OpenTSDB \u003c= 2.4.1 cmd injection (CVE-2023-36812/CVE-2023-25826) written in Fortran"},{"date":"2023-07-01","kind":"metasploit","ref":"exploit/linux/http/opentsdb_key_cmd_injection","stars":null,"title":"OpenTSDB 2.4.1 unauthenticated command injection"}],"tier":"weaponised"},"has_fix":true,"headline":"Remote Code Execution in OpenTSDB","id":"CVE-2023-36812","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":2,"n_references":4,"next":{"headline":"Kanboard Authenticated SQL Injections vulnerability","id":"CVE-2023-36813"},"packages":[{"ecosystem":"Maven","fixed":["2.4.2"],"introduced":["0"],"last_affected":[],"package":"net.opentsdb:opentsdb","purl":null,"source":"GHSA-76f7-9v52-v2fw"},{"ecosystem":"Maven","fixed":["2.4.2"],"introduced":["0"],"last_affected":[],"package":"net.opentsdb:opentsdb","purl":"pkg:maven/net.opentsdb/opentsdb","source":"GHSA-76f7-9v52-v2fw"}],"prev":{"headline":"Archive spoofing vulnerability in borgbackup","id":"CVE-2023-36811"},"products":["opentsdb"],"published":"2023-06-30","related":[{"cvss_score":9.8,"headline":"Remote Code Execution in OpenTSDB","id":"CVE-2023-25826","kev_date_added":null,"published":"2023-05-03"},{"cvss_score":9.8,"headline":"OS Command Injection in OpenTSDB","id":"CVE-2020-35476","kev_date_added":null,"published":"2020-12-16"},{"cvss_score":9.8,"headline":"OpenTSDB vulnerable to OS Command Injection","id":"CVE-2018-12972","kev_date_added":null,"published":"2018-06-29"},{"cvss_score":8.2,"headline":"Cross-site Scripting in OpenTSDB","id":"CVE-2023-25827","kev_date_added":null,"published":"2023-05-03"},{"cvss_score":6.1,"headline":"OpenTSDB Cross-site Scripting vulnerability","id":"CVE-2018-12973","kev_date_added":null,"published":"2018-06-29"},{"cvss_score":6.1,"headline":"OpenTSDB Cross-site Scripting vulnerability","id":"CVE-2018-13003","kev_date_added":null,"published":"2018-06-29"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["OpenTSDB"]},"summary":"Attackers can execute arbitrary code by injecting commands into Gnuplot configuration files within OpenTSDB.","url":"https://insights.sbomify.com/CVE-2023-36812/"}