{"schemaVersion":3,"id":"CVE-2017-17458","aliases":["MGASA-2018-0041","SUSE-SU-2018:0127-1","SUSE-SU-2018:0129-1","GHSA-6v56-cpg6-3rpx","PYSEC-2017-90","UBUNTU-CVE-2017-17458","DEBIAN-CVE-2017-17458","DLA-1224-1","DLA-1414-2"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2017-12-07T18:00:00.000Z","modified":"2024-08-05T20:51:31.432Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":10,"severity":"high","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Pypi","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true}]},"epss":{"probability":0.06331,"percentile":0.9356,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.06331},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.05789,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06331,"percentile":0.9356}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.05789,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06331,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06331,"percentile":0.9356}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-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.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"debian","product":"mercurial","name":"mercurial","label":"mercurial","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/mercurial","purlType":"deb","versions":[{"text":"< 4.4.1-1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.2.2-4+deb7u6","noFixRecorded":false,"fixedIn":null},{"text":"< 3.1.2-2+deb8u6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.4.1-1 | < 2.2.2-4+deb7u6 | < 3.1.2-2+deb8u6","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"mercurial","name":"mercurial","label":"mercurial","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mercurial","purlType":"deb","versions":[{"text":"< 2.8.2-1ubuntu1.4","noFixRecorded":false,"fixedIn":null},{"text":"< 3.7.3-1ubuntu1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.8.2-1ubuntu1.4 | < 3.7.3-1ubuntu1.1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null},{"text":"8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0 | 8.0","eol":{"isEol":true,"eolDate":"2018-05-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"7","label":"7 (Wheezy)","eolFrom":"2018-05-31T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"7.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"mageia","product":"mercurial","name":"mercurial","label":"mercurial","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/mercurial","purlType":"rpm","versions":[{"text":"< 3.1.1-5.6.mga5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.1-5.6.mga5","eol":null,"hubHref":null},{"vendor":"mageia","product":"mercurial","name":"mercurial","label":"mercurial","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/mercurial","purlType":"rpm","versions":[{"text":"< 4.1.3-1.2.mga6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.1.3-1.2.mga6","eol":null,"hubHref":null},{"vendor":"mercurial","product":"mercurial","name":"mercurial","label":"mercurial","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.4.1","eol":null,"hubHref":"/vendor/mercurial/mercurial"},{"vendor":"PyPI","product":"mercurial","name":"mercurial","label":"mercurial","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/mercurial","purlType":"pypi","versions":[{"text":"< 4.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.4.1","eol":null,"hubHref":null},{"vendor":"suse","product":"mercurial&distro=SUSE Linux Enterprise Software Development Kit 11 SP4","name":"mercurial","label":"mercurial&distro=SUSE Linux Enterprise Software Development Kit 11 SP4","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/mercurial&distro=SUSE Linux Enterprise Software Development Kit 11 SP4","purlType":"rpm","versions":[{"text":"< 2.3.2-0.18.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.3.2-0.18.6.1","eol":null,"hubHref":null},{"vendor":"suse","product":"mercurial&distro=SUSE Linux Enterprise Software Development Kit 12 SP2","name":"mercurial","label":"mercurial&distro=SUSE Linux Enterprise Software Development Kit 12 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/mercurial&distro=SUSE Linux Enterprise Software Development Kit 12 SP2","purlType":"rpm","versions":[{"text":"< 2.8.2-15.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.8.2-15.6.1","eol":null,"hubHref":null},{"vendor":"suse","product":"mercurial&distro=SUSE Linux Enterprise Software Development Kit 12 SP3","name":"mercurial","label":"mercurial&distro=SUSE Linux Enterprise Software Development Kit 12 SP3","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/mercurial&distro=SUSE Linux Enterprise Software Development Kit 12 SP3","purlType":"rpm","versions":[{"text":"< 2.8.2-15.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.8.2-15.6.1","eol":null,"hubHref":null}],"affectedCount":10,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://lists.debian.org/debian-lts-announce/2017/12/msg00027.html","label":"lists.debian.org/debian-lts-announce/2017/12/msg00027.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory","WEB"]},{"url":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29","label":"www.mercurial-scm.org/wiki/WhatsNew","hostname":"www.mercurial-scm.org","tags":["X Refsource MISC","Vendor Advisory","WEB","REPORT"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00041.html","label":"lists.debian.org/debian-lts-announce/2018/07/msg00041.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory","WEB"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html","label":"lists.debian.org/debian-lts-announce/2018/07/msg00005.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory","WEB"]},{"url":"https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html","label":"www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html","hostname":"www.mercurial-scm.org","tags":["X Refsource MISC","Vendor Advisory","WEB","REPORT"]},{"url":"http://www.securityfocus.com/bid/102926","label":"www.securityfocus.com/bid/102926","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory","WEB"]},{"url":"https://bz.mercurial-scm.org/show_bug.cgi?id=5730","label":"bz.mercurial-scm.org/show_bug.cgi?id=5730","hostname":"bz.mercurial-scm.org","tags":["X Refsource MISC","Issue Tracking","Third Party Advisory","WEB","REPORT"]},{"url":"https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html","label":"confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html","hostname":"confluence.atlassian.com","tags":["X Refsource CONFIRM","Third Party Advisory","WEB","Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html","label":"lists.debian.org/debian-lts-announce/2020/07/msg00032.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","WEB"]},{"url":"https://advisories.mageia.org/MGASA-2018-0041.html","label":"advisories.mageia.org/MGASA-2018-0041.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=22171","label":"bugs.mageia.org/show_bug.cgi?id=22171","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://lists.opensuse.org/opensuse-updates/2017-12/msg00071.html","label":"lists.opensuse.org/opensuse-updates/2017-12/msg00071.html","hostname":"lists.opensuse.org","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20180127-1/","label":"www.suse.com/support/update/announcement/2018/suse-su-20180127-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1071715","label":"bugzilla.suse.com/1071715","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2017-17458","label":"www.suse.com/security/cve/CVE-2017-17458","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20180129-1/","label":"www.suse.com/support/update/announcement/2018/suse-su-20180129-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-17458","label":"nvd.nist.gov/vuln/detail/CVE-2017-17458","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/dscho/hg","label":"github.com/dscho/hg","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2017-90.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2017-90.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://web.archive.org/web/20200227132808/http://www.securityfocus.com/bid/102926","label":"web.archive.org/web/20200227132808/http://www.securityfocus.com/bid/102926","hostname":"web.archive.org","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-6v56-cpg6-3rpx","label":"github.com/advisories/GHSA-6v56-cpg6-3rpx","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2017-17458","label":"ubuntu.com/security/CVE-2017-17458","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-17458","label":"www.cve.org/CVERecord?id=CVE-2017-17458","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-17458","label":"security-tracker.debian.org/tracker/CVE-2017-17458","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-1414-1","DLA-2293-1","OPENSUSE-SU-2024:10586-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:10586-1"]},"timeline":[{"kind":"published","date":"2017-12-07T18:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T20:51:31.432Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T17:00:58.069Z","stale":false,"partial":false}}