{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-12636 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2017-12636 is a high-severity command injection vulnerability in Apache CouchDB, published on 14 Nov 2017. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-12636 and fix it if it is affected.\n\nWhat it is: CVE-2017-12636 is a high-severity command injection vulnerability in Apache CouchDB, published on 14 Nov 2017. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-12636 exists.\n\nAffected product: Apache CouchDB. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2017-12636/ (Markdown: https://insights.sbomify.com/CVE-2017-12636/index.md)","id":"CVE-2017-12636","markdown":"https://insights.sbomify.com/CVE-2017-12636/index.md","name":"CVE-2017-12636","record":{"aliases":["GHSA-fcpq-cj4x-h8mv","UBUNTU-CVE-2017-12636"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache CouchDB","requires_auth":"high_privilege","summary":"Administrative users can execute arbitrary shell commands via HTTP configuration options, allowing code execution as the CouchDB user.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"couchdb","vendor":"apache"}],"cvss":{"score":7.2,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"CouchDB administrative users can configure the database server via HTTP(S). Some of the configuration options include paths for operating system-level binaries that are subsequently launched by CouchDB. This allows an admin user in Apache CouchDB before 1.7.0 and 2.x before 2.1.1 to execute arbitrary shell commands as the CouchDB user, including downloading and executing scripts from the public internet.","ecosystems":[],"exploits":{"exploitdb":3,"first_seen":"2016-04-06","github_poc":2,"max_poc_stars":6,"metasploit":1,"nuclei":0,"refs":[{"date":"2020-03-23T10:11:04Z","kind":"github_poc","ref":"https://github.com/XTeam-Wing/CVE-2017-12636","stars":6,"title":"CVE-2017-12636|exploit Couchdb "},{"date":"2018-08-25T11:50:22Z","kind":"github_poc","ref":"https://github.com/moayadalmalat/CVE-2017-12636","stars":3,"title":null},{"date":"2016-04-06","kind":"metasploit","ref":"exploit/linux/http/apache_couchdb_cmd_exec","stars":null,"title":"Apache CouchDB Arbitrary Command Execution"},{"date":"2018-06-20","kind":"exploitdb","ref":"44913","stars":null,"title":"Apache CouchDB \u003c 2.1.0 - Remote Code Execution"},{"date":"2018-07-13","kind":"exploitdb","ref":"45019","stars":null,"title":"Apache CouchDB - Arbitrary Command Execution (Metasploit)"},{"date":"2018-07-13","kind":"exploitdb","ref":"45019","stars":null,"title":"Apache CouchDB - Arbitrary Command Execution (Metasploit)"}],"tier":"weaponised"},"has_fix":true,"headline":"Command injection in Apache CouchDB","id":"CVE-2017-12636","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2017"},"n_packages":0,"n_references":6,"next":{"headline":"SAP NetWeaver Directory Traversal","id":"CVE-2017-12637"},"packages":[],"prev":{"headline":"Privilege escalation in Apache CouchDB","id":"CVE-2017-12635"},"products":["Apache CouchDB"],"published":"2017-11-14","related":[{"cvss_score":9.8,"headline":"Apache CouchDB Insecure Default Initialization of Resource","id":"CVE-2022-24706","kev_date_added":"2022-08-25","published":"2022-04-26"},{"cvss_score":9.8,"headline":"Auth bypass in Apache CouchDB","id":"CVE-2020-1955","kev_date_added":null,"published":"2020-05-20"},{"cvss_score":9.8,"headline":"Privilege escalation in Apache CouchDB","id":"CVE-2017-12635","kev_date_added":null,"published":"2017-11-14"},{"cvss_score":7.8,"headline":"Code injection in n/a","id":"CVE-2018-14889","kev_date_added":null,"published":"2018-09-21"},{"cvss_score":7.8,"headline":"Privilege escalation in Apache CouchDB","id":"CVE-2016-8742","kev_date_added":null,"published":"2018-02-12"},{"cvss_score":7.3,"headline":"Privilege escalation vulnerability when using HTML attachments","id":"CVE-2021-38295","kev_date_added":null,"published":"2021-10-14"},{"cvss_score":7.2,"headline":"Code injection in Apache CouchDB","id":"CVE-2018-17188","kev_date_added":null,"published":"2019-01-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["Apache Software Foundation"]},"summary":"Administrative users can execute arbitrary shell commands via HTTP configuration options, allowing code execution as the CouchDB user.","url":"https://insights.sbomify.com/CVE-2017-12636/"}