{"api_version":"1","generated_at":"2026-04-22T21:37:15+00:00","cve":"CVE-2017-17458","urls":{"html":"https://cve.report/CVE-2017-17458","api":"https://cve.report/api/cve/CVE-2017-17458.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-17458","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-17458"},"summary":{"title":"CVE-2017-17458","description":"In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a .git/hooks/post-update script checked into the repository. Typical use of Mercurial prevents construction of such repositories, but they can be created programmatically.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2017-12-07 18:29:00","updated_at":"2020-07-31 13:15:00"},"problem_types":["CWE-78"],"metrics":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00041.html","name":"[debian-lts-announce] 20180727 [SECURITY] [DLA 1414-2] mercurial regression update","refsource":"MLIST","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] [DLA 1414-2] mercurial regression update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html","name":"[debian-lts-announce] 20200731 [SECURITY] [DLA 2293-1] mercurial security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2293-1] mercurial security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/102926","name":"102926","refsource":"BID","tags":["Third Party Advisory","VDB Entry"],"title":"Atlassian SourceTree Multiple Command Injection and Command Execution Vulnerabilities","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://bz.mercurial-scm.org/show_bug.cgi?id=5730","name":"https://bz.mercurial-scm.org/show_bug.cgi?id=5730","refsource":"MISC","tags":["Issue Tracking","Third Party Advisory"],"title":"5730 – [CRITICAL]Arbitrary command execution in mercurial repo with a git submodule","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html","name":"https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"Sourcetree Security Advisory 2018-01-24 - Atlassian Documentation","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html","name":"https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html","refsource":"MISC","tags":["Vendor Advisory"],"title":"[Bug 5730] New: [CRITICAL]Arbitrary command execution in mercurial repo with a git submodule","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29","name":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29","refsource":"MISC","tags":["Vendor Advisory"],"title":"WhatsNew - Mercurial","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2017/12/msg00027.html","name":"[debian-lts-announce] 20171228 [SECURITY] [DLA 1224-1] mercurial security update","refsource":"MLIST","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] [DLA 1224-1] mercurial security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html","name":"[debian-lts-announce] 20180705 [SECURITY] [DLA 1414-1] mercurial security update","refsource":"MLIST","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] [DLA 1414-1] mercurial security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-17458","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-17458","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2017","cve_id":"17458","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"17458","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"17458","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"7.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"17458","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"17458","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mercurial","cpe5":"mercurial","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2017","cve_id":"17458","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mercurial","cpe5":"mercurial","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2017-17458","qid":"296092","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 7.1.4 Missing (CPUJAN2019)"},{"cve":"CVE-2017-17458","qid":"670260","title":"EulerOS Security Update for mercurial (EulerOS-SA-2021-1816)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2017-17458","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a .git/hooks/post-update script checked into the repository. Typical use of Mercurial prevents construction of such repositories, but they can be created programmatically."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"[debian-lts-announce] 20171228 [SECURITY] [DLA 1224-1] mercurial security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2017/12/msg00027.html"},{"name":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29","refsource":"MISC","url":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29"},{"name":"[debian-lts-announce] 20180727 [SECURITY] [DLA 1414-2] mercurial regression update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00041.html"},{"name":"[debian-lts-announce] 20180705 [SECURITY] [DLA 1414-1] mercurial security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html"},{"name":"https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html","refsource":"MISC","url":"https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html"},{"name":"102926","refsource":"BID","url":"http://www.securityfocus.com/bid/102926"},{"name":"https://bz.mercurial-scm.org/show_bug.cgi?id=5730","refsource":"MISC","url":"https://bz.mercurial-scm.org/show_bug.cgi?id=5730"},{"name":"https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html","refsource":"CONFIRM","url":"https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html"},{"refsource":"MLIST","name":"[debian-lts-announce] 20200731 [SECURITY] [DLA 2293-1] mercurial security update","url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html"}]}},"nvd":{"publishedDate":"2017-12-07 18:29:00","lastModifiedDate":"2020-07-31 13:15:00","problem_types":["CWE-78"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":10},"severity":"HIGH","exploitabilityScore":10,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:mercurial:mercurial:*:*:*:*:*:*:*:*","versionEndExcluding":"4.4.1","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2017","CveId":"17458","Ordinal":"116592","Title":"CVE-2017-17458","CVE":"CVE-2017-17458","Year":"2017"},"notes":[{"CveYear":"2017","CveId":"17458","Ordinal":"1","NoteData":"In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a .git/hooks/post-update script checked into the repository. Typical use of Mercurial prevents construction of such repositories, but they can be created programmatically.","Type":"Description","Title":null},{"CveYear":"2017","CveId":"17458","Ordinal":"2","NoteData":"2017-12-07","Type":"Other","Title":"Published"},{"CveYear":"2017","CveId":"17458","Ordinal":"3","NoteData":"2020-07-31","Type":"Other","Title":"Modified"}]}}}