{"id":"CVE-2017-9462","aliases":["DEBIAN-CVE-2017-9462","DLA-1005-1","DLA-1414-1","EUVD-2017-0073","GHSA-ghjx-3jg5-h6r2","MGASA-2017-0182","PYSEC-2017-91","RHSA-2017:1576","SUSE-SU-2017:1558-1","SUSE-SU-2017:1606-1","UBUNTU-CVE-2017-9462"],"status":"published","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.","severity":{"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","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.21685,"percentile":0.97649,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-732"],"published":"2017-06-06T21:00:00Z","modified":"2026-09-01T20:03:51Z","exploits":[{"source":"metasploit","id":"exploit/linux/ssh/mercurial_ssh_exec","title":"Mercurial Custom hg-ssh Wrapper Remote Code Exec","type":"exploit","platform":"Python","date":"2017-04-18","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/linux/ssh/mercurial_ssh_exec"}],"fixes":[{"ecosystem":"PyPI","package":"mercurial","fixed_in":["4.1.3"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"mercurial","fixed_in":["4.3.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"mercurial","fixed_in":["4.3.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"mercurial","fixed_in":["4.3.1-1"],"sources":["osv"]},{"ecosystem":"Debian:7","package":"mercurial","fixed_in":["2.2.2-4+deb7u4"],"sources":["osv"]},{"ecosystem":"Mageia:5","package":"mercurial","fixed_in":["3.1.1-5.3.mga5"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::client","package":"emacs-mercurial","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::client","package":"emacs-mercurial-el","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::client","package":"mercurial","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::client","package":"mercurial-debuginfo","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::client","package":"mercurial-hgk","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"emacs-mercurial","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"emacs-mercurial-el","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"mercurial","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"mercurial-debuginfo","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"mercurial-hgk","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::server","package":"mercurial","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::server","package":"mercurial-debuginfo","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::server","package":"emacs-mercurial","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::server","package":"emacs-mercurial-el","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::server","package":"mercurial-hgk","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"mercurial","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"mercurial-debuginfo","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"emacs-mercurial","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"emacs-mercurial-el","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"mercurial-hgk","fixed_in":["0:1.4-5.el6_9"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::client","package":"emacs-mercurial","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::client","package":"emacs-mercurial-el","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::client","package":"mercurial","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::client","package":"mercurial-debuginfo","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::client","package":"mercurial-hgk","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"emacs-mercurial","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"emacs-mercurial-el","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"mercurial","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"mercurial-debuginfo","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"mercurial-hgk","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::server","package":"mercurial","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::server","package":"mercurial-debuginfo","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::server","package":"emacs-mercurial","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::server","package":"emacs-mercurial-el","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::server","package":"mercurial-hgk","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"mercurial","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"mercurial-debuginfo","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"emacs-mercurial","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"emacs-mercurial-el","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"mercurial-hgk","fixed_in":["0:2.6.2-7.el7_3"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 11 SP4","package":"mercurial","fixed_in":["2.3.2-0.17.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP2","package":"mercurial","fixed_in":["2.8.2-14.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"mercurial","fixed_in":["2.8.2-1ubuntu1.4"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"mercurial","fixed_in":["3.7.3-1ubuntu1.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.3"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.1-1"}]}]},{"source":"osv","ecosystem":"Debian:7","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.2-4+deb7u4"}]}],"versions":["2.2.2-3","2.2.2-4","2.2.2-4+deb7u1","2.2.2-4+deb7u2","2.2.2-4+deb7u3"]},{"source":"osv","ecosystem":"Debian:8","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-2+deb8u5"}]}],"versions":["3.1.2-2","3.1.2-2+deb8u1","3.1.2-2+deb8u2","3.1.2-2+deb8u3","3.1.2-2+deb8u4"],"bundled":6},{"source":"osv","ecosystem":"PyPI","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.3"}]}],"versions":["0.8.1","0.9","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","1.0","1.0.1","1.0.2","1.1","1.1.1","1.1.2","1.2","1.2.1","1.3","1.3.1","1.4","1.4.1","1.4.2","1.4.3","1.5","1.5.1","1.5.2","1.5.3","1.5.4","1.6","1.6.1","1.6.2","1.6.3","1.6.4","1.7","1.7.1","1.7.2","1.7.3","1.7.5","1.8","1.8.1","1.8.2","1.8.3","1.8.4","1.9","1.9.1","1.9.2","1.9.3","2.0","2.0.1","2.0.2","2.1","2.1.1","2.1.2","2.2","2.2.2","2.3","2.4.1","2.5","2.5.1","2.5.2","2.6","2.6.1","2.6.2","2.6.3","2.7.0","2.7.1","2.7.2","2.8","2.8.1","2.8.2","2.9","2.9.1","3.0","3.0.1","3.1","3.1.1","3.1.2","3.2","3.2.1","3.2.2","3.2.3","3.2.4","3.3","3.3-rc","3.3.1","3.3.2","3.3.3","3.4","3.4-rc","3.4.1","3.4.2","3.5","3.5-rc","3.5.1","3.5.2","3.6","3.6-rc","3.6.1","3.6.2","3.6.3","3.7","3.7-rc","3.7.1","3.7.2","3.7.3","3.8","3.8-rc","3.8.1","3.8.2","3.8.3","3.8.4","3.9","3.9-rc","3.9.1","3.9.2","4.0","4.0-rc","4.0.1","4.0.2","4.1","4.1-rc","4.1.1","4.1.2"]},{"source":"osv","ecosystem":"Mageia:5","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.1-5.3.mga5"}]}]},{"source":"osv","ecosystem":"PyPI","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.3"}]}],"versions":["0.8.1","0.9","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","1.0","1.0.1","1.0.2","1.1","1.1.1","1.1.2","1.2","1.2.1","1.3","1.3.1","1.4","1.4.1","1.4.2","1.4.3","1.5","1.5.1","1.5.2","1.5.3","1.5.4","1.6","1.6.1","1.6.2","1.6.3","1.6.4","1.7","1.7.1","1.7.2","1.7.3","1.7.5","1.8","1.8.1","1.8.2","1.8.3","1.8.4","1.9","1.9.1","1.9.2","1.9.3","2.0","2.0.1","2.0.2","2.1","2.1.1","2.1.2","2.2","2.2.2","2.3","2.4.1","2.5","2.5.1","2.5.2","2.6","2.6.1","2.6.2","2.6.3","2.7.0","2.7.1","2.7.2","2.8","2.8.1","2.8.2","2.9","2.9.1","3.0","3.0.1","3.1","3.1.1","3.1.2","3.2","3.2.1","3.2.2","3.2.3","3.2.4","3.3","3.3-rc","3.3.1","3.3.2","3.3.3","3.4","3.4-rc","3.4.1","3.4.2","3.5","3.5-rc","3.5.1","3.5.2","3.6","3.6-rc","3.6.1","3.6.2","3.6.3","3.7","3.7-rc","3.7.1","3.7.2","3.7.3","3.8","3.8-rc","3.8.1","3.8.2","3.8.3","3.8.4","3.9","3.9-rc","3.9.1","3.9.2","4.0","4.0-rc","4.0.1","4.0.2","4.1","4.1-rc","4.1.1","4.1.2"]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::client","package":"emacs-mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::client","package":"emacs-mercurial-el","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::client","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::client","package":"mercurial-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::client","package":"mercurial-hgk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"emacs-mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"emacs-mercurial-el","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"mercurial-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"mercurial-hgk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::server","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::server","package":"mercurial-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::server","package":"emacs-mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::server","package":"emacs-mercurial-el","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::server","package":"mercurial-hgk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"mercurial-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"emacs-mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"emacs-mercurial-el","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"mercurial-hgk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.4-5.el6_9"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::client","package":"emacs-mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::client","package":"emacs-mercurial-el","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::client","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::client","package":"mercurial-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::client","package":"mercurial-hgk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"emacs-mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"emacs-mercurial-el","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"mercurial-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::computenode","package":"mercurial-hgk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::server","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::server","package":"mercurial-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::server","package":"emacs-mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::server","package":"emacs-mercurial-el","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::server","package":"mercurial-hgk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"mercurial-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"emacs-mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"emacs-mercurial-el","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:7::workstation","package":"mercurial-hgk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6.2-7.el7_3"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 11 SP4","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.2-0.17.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP2","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.2-14.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.2-1ubuntu1.4"}]}],"versions":["2.6.3-1","2.7.2-1","2.8.1-2","2.8.2-1ubuntu1","2.8.2-1ubuntu1.3"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.7.3-1ubuntu1.1"}]}],"versions":["3.4-1ubuntu2","3.6.2-1ubuntu2","3.7.3-1ubuntu1"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"mercurial","product":"mercurial"},{"vendor":"redhat","product":"enterprise_linux_desktop"},{"vendor":"redhat","product":"enterprise_linux_server"},{"vendor":"redhat","product":"enterprise_linux_server_aus"},{"vendor":"redhat","product":"enterprise_linux_server_eus"},{"vendor":"redhat","product":"enterprise_linux_server_tus"},{"vendor":"redhat","product":"enterprise_linux_workstation"}],"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","report"]},{"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","report"]},{"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","report"]},{"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"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-9462","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2017-0182.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=20849","tags":["report"]},{"url":"https://lists.opensuse.org/opensuse-security-announce/2017-06/msg00007.html","tags":["web"]},{"url":"https://access.redhat.com/security/updates/classification/#important","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1459482","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2017/rhsa-2017_1576.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2017-9462","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-9462","tags":["advisory","report"]},{"url":"https://www.suse.com/support/update/announcement/2017/suse-su-20171558-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1043063","tags":["report"]},{"url":"https://bugzilla.suse.com/1043502","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9462","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2017/suse-su-20171606-1/","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2017-9462","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2017-9462","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.","status":"published","published":"2017-06-06T21:00:00Z","modified":"2024-08-05T17:11:01.615Z","updated_at":"2026-11-02T14:33:13.96587Z"}],"euvd":[{"id":"EUVD-2017-0073","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.","status":"published","published":"2017-06-06T21:00:00Z","modified":"2024-08-05T17:11:01Z","updated_at":"2026-11-03T02:23:28.210565Z"}],"ghsa":[{"id":"GHSA-ghjx-3jg5-h6r2","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.","status":"published","published":"2018-07-13T15:17:10Z","modified":"2024-10-01T19:23:43Z","cvss":[{"version":"4.0","score":8.7,"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","level":"high"},{"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","level":"high"}],"cwes":["CWE-732"],"updated_at":"2026-11-02T14:38:07.852618Z"}],"nvd":[{"id":"CVE-2017-9462","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.","status":"published","published":"2017-06-06T21:29:00.393Z","modified":"2026-06-17T01:28:09.927Z","cvss":[{"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","level":"high","assessor":"primary"},{"version":"2.0","score":9,"vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-732"],"updated_at":"2026-11-02T14:03:50.782497Z"}],"osv":[{"id":"CVE-2017-9462","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.","status":"published","published":"2017-06-06T21:29:00.393Z","modified":"2026-04-16T06:16:55.878411623Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-02T15:44:06.868403Z"},{"id":"DEBIAN-CVE-2017-9462","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.","status":"published","published":"2017-06-06T21:29:00.393Z","modified":"2026-09-01T20:03:51.747000425Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-02T15:45:29.698576Z"},{"id":"GHSA-ghjx-3jg5-h6r2","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.","status":"published","published":"2018-07-13T15:17:10Z","modified":"2024-10-01T19:35:47.280376Z","cvss":[{"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","level":"high"},{"version":"4.0","score":8.7,"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","level":"high"}],"cwes":["CWE-732"],"updated_at":"2026-11-02T15:46:47.822182Z"},{"id":"RHSA-2017:1576","title":"Red Hat Security Advisory: mercurial security update","status":"published","published":"2024-09-16T00:25:17Z","modified":"2026-06-26T12:22:00.77560548Z","cvss":[{"version":"3.0","score":6.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:53:04.262457Z"},{"id":"UBUNTU-CVE-2017-9462","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.","status":"published","published":"2017-06-06T21:29:00Z","modified":"2025-09-08T16:44:17Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-02T15:54:16.154988Z"},{"id":"DLA-1005-1","title":"mercurial - security update","status":"published","published":"2017-06-29T00:00:00Z","modified":"2026-03-09T01:01:27.239932Z","updated_at":"2026-11-02T15:46:08.746073Z"},{"id":"DLA-1414-1","title":"mercurial - security update","status":"published","published":"2018-07-05T00:00:00Z","modified":"2026-03-09T01:00:49.655825Z","updated_at":"2026-11-02T15:46:09.336894Z"},{"id":"MGASA-2017-0182","title":"Updated mercurial packages fix security vulnerability","description":"In Mercurial before 4.1.3, \"hg serve --stdio\" allows remote authenticated\nusers to launch the Python debugger, and consequently execute arbitrary\ncode, by using --debugger as a repository name.\n","status":"published","published":"2017-06-26T09:28:17Z","modified":"2026-04-16T06:24:40.345488811Z","updated_at":"2026-11-02T15:49:40.103088Z"},{"id":"PYSEC-2017-91","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.","status":"published","published":"2017-06-06T21:29:00Z","modified":"2023-11-08T03:59:28.900383Z","updated_at":"2026-11-02T15:52:51.645172Z"},{"id":"SUSE-SU-2017:1558-1","title":"Security update for mercurial","description":"This update for mercurial fixes the following issues:\n\n- CVE-2017-9462: Arbitrary code execution was possible by remote users via 'hg serve --stdio'\n  (bsc#1043063):\n","status":"published","published":"2017-06-13T14:40:49Z","modified":"2026-02-04T02:20:03.876773Z","updated_at":"2026-11-02T15:53:43.83457Z"},{"id":"SUSE-SU-2017:1606-1","title":"Security update for mercurial","description":"This update for mercurial fixes the following issues:\n\nSecurity issue fixed:\n\n- CVE-2017-9462: Fix the arbitrary code exec by remote users via 'hg serve --stdio' (bsc#1043063):\n","status":"published","published":"2017-06-19T08:39:23Z","modified":"2026-02-04T04:25:46.437959Z","updated_at":"2026-11-02T15:53:43.83457Z"}]}}
