{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2017-9462","id":"CVE-2017-9462","title":"Mercurial has Incorrect Permission Assignment for Critical Resource","description":"In Mercurial before 4.1.3, \"hg serve --stdio\" allows remote authenticated users to launch the Python debugger, and consequently execute arbitrary code, by using --debugger as a repository name.","descriptionLong":"In Mercurial before 4.1.3, \"hg serve --stdio\" allows remote authenticated users to launch the Python debugger, and consequently execute arbitrary code, by using --debugger as a repository name.","published":"2017-06-06T21:00:00.000Z","updated":"2026-06-17T01:28:09.927Z","reserved":"2017-06-06T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"high","source":"GitHub"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":9,"vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","rating":"critical","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"mercurial","purl":"pkg:pypi/mercurial","ranges":["<4.1.3"],"fixed":["4.1.3"],"advisory":"GHSA-ghjx-3jg5-h6r2"}],"cwes":["CWE-732"],"aliases":["GHSA-ghjx-3jg5-h6r2","PYSEC-2017-91"],"references":[{"url":"https://access.redhat.com/errata/RHSA-2017:1576","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.mercurial-scm.org/repo/hg/rev/77eaf9539499","tags":["x_refsource_CONFIRM","x_transferred","Mailing List","Vendor Advisory","advisory","web"]},{"url":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.1.3_.282017-4-18.29","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","Vendor Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"http://www.debian.org/security/2017/dsa-3963","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://security.gentoo.org/glsa/201709-18","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://bugs.debian.org/861243","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Mailing List","Patch","Third Party Advisory","fix","web"]},{"url":"http://www.securityfocus.com/bid/99123","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-9462","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-ghjx-3jg5-h6r2","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2017-91.yaml","tags":["web"]},{"url":"https://web.archive.org/web/20200227162318/http://www.securityfocus.com/bid/99123","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.21685,"epssPercentile":0.9768,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2017-9462","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-9462","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2017-9462","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-ghjx-3jg5-h6r2","ok":true,"note":"GHSA-ghjx-3jg5-h6r2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2017-9462","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["EPSS 22% with CVSS 8.8"],"attention":null}