{"id":"CVE-2014-9462","aliases":["DEBIAN-CVE-2014-9462","DLA-237-1","DSA-3257-1","EUVD-2015-0029","GHSA-3pmw-h7j4-rf54","MGASA-2015-0129","PYSEC-2015-14","SUSE-SU-2015:0817-1","SUSE-SU-2015:0836-1","UBUNTU-CVE-2014-9462"],"status":"published","title":"Mercurial vulnerable to arbitrary command execution via a crafted repository name in a clone command","description":"The _validaterepo function in sshpeer in Mercurial before 3.2.4 allows remote attackers to execute arbitrary commands via a crafted repository name in a clone command.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.04169,"percentile":0.9096,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2015-03-20T15:26:35Z","modified":"2026-10-23T15:47:32Z","fixes":[{"ecosystem":"PyPI","package":"mercurial","fixed_in":["3.2.4"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"mercurial","fixed_in":["3.4-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"mercurial","fixed_in":["3.4-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"mercurial","fixed_in":["3.4-1"],"sources":["osv"]},{"ecosystem":"Debian:7","package":"mercurial","fixed_in":["2.2.2-4+deb7u1"],"sources":["osv"]},{"ecosystem":"Debian:8","package":"mercurial","fixed_in":["3.1.2-2+deb8u1"],"sources":["osv"]},{"ecosystem":"Mageia:4","package":"mercurial","fixed_in":["2.7.2-3.1.mga4"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12","package":"mercurial","fixed_in":["2.8.2-3.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"mercurial","fixed_in":["2.8.2-1ubuntu1.3"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.4"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4-1"}]}]},{"source":"osv","ecosystem":"Debian:6.0","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.4-1+deb6u1"}]}],"versions":["1.6.4-1"],"bundled":2},{"source":"osv","ecosystem":"Debian:7","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.2-4+deb7u1"}]}],"versions":["2.2.2-3","2.2.2-4"]},{"source":"osv","ecosystem":"Debian:8","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.2-2+deb8u1"}]}],"versions":["3.1.2-2"]},{"source":"osv","ecosystem":"PyPI","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.4"}]}],"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"]},{"source":"osv","ecosystem":"Mageia:4","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.2-3.1.mga4"}]}]},{"source":"osv","ecosystem":"PyPI","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.4"}]}],"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"]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.2-3.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.2-1ubuntu1.3"}]}],"versions":["2.6.3-1","2.7.2-1","2.8.1-2","2.8.2-1ubuntu1"]}],"products":[{"vendor":"mercurial","product":"mercurial"},{"vendor":"opensuse","product":"opensuse"}],"references":[{"url":"https://security.gentoo.org/glsa/201612-19","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","advisory","web"]},{"url":"http://chargen.matasano.com/chargen/2015/3/17/this-new-vulnerability-mercurial-command-injection-cve-2014-9462.html","tags":["x_refsource_MISC","x_transferred","Exploit","evidence","web","report"]},{"url":"http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://lists.opensuse.org/opensuse-updates/2015-03/msg00085.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"http://www.osvdb.org/119816","tags":["vdb-entry","x_refsource_OSVDB","x_transferred","web"]},{"url":"http://mercurial.selenic.com/wiki/WhatsNew","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"http://www.debian.org/security/2015/dsa-3257","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2014-9462","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2015-14.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-3pmw-h7j4-rf54","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2014-9462","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2015-0129.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=15590","tags":["report"]},{"url":"https://www.suse.com/support/update/announcement/2015/suse-su-20150817-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/923070","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2014-9462","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2015/suse-su-20150836-1/","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2014-9462","tags":["report"]},{"url":"http://selenic.com/hg/rev/e3f30068d2eb","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2014-9462","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2014-9462","description":"The _validaterepo function in sshpeer in Mercurial before 3.2.4 allows remote attackers to execute arbitrary commands via a crafted repository name in a clone command.","status":"published","published":"2015-03-31T14:00:00Z","modified":"2024-08-06T13:47:41.369Z","updated_at":"2026-11-02T14:33:42.54191Z"}],"euvd":[{"id":"EUVD-2015-0029","description":"The _validaterepo function in sshpeer in Mercurial before 3.2.4 allows remote attackers to execute arbitrary commands via a crafted repository name in a clone command.","status":"published","published":"2015-03-31T14:00:00Z","modified":"2024-08-06T13:47:41Z","updated_at":"2026-11-03T01:56:48.455518Z"}],"ghsa":[{"id":"GHSA-3pmw-h7j4-rf54","title":"Mercurial vulnerable to arbitrary command execution via a crafted repository name in a clone command","description":"The _validaterepo function in sshpeer in Mercurial before 3.2.4 allows remote attackers to execute arbitrary commands via a crafted repository name in a clone command.","status":"published","published":"2022-05-14T02:05:56Z","modified":"2024-09-24T20:38:20Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.3,"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","level":"critical"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:38:05.526697Z"}],"nvd":[{"id":"CVE-2014-9462","description":"The _validaterepo function in sshpeer in Mercurial before 3.2.4 allows remote attackers to execute arbitrary commands via a crafted repository name in a clone command.","status":"published","published":"2015-03-31T14:59:03.437Z","modified":"2026-06-17T00:18:25.157Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:02:58.385843Z"}],"osv":[{"id":"GHSA-3pmw-h7j4-rf54","title":"Mercurial vulnerable to arbitrary command execution via a crafted repository name in a clone command","description":"The _validaterepo function in sshpeer in Mercurial before 3.2.4 allows remote attackers to execute arbitrary commands via a crafted repository name in a clone command.","status":"published","published":"2022-05-14T02:05:56Z","modified":"2024-09-24T20:46:43.316069Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.3,"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","level":"critical"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:36.092962Z"},{"id":"CVE-2014-9462","description":"The _validaterepo function in sshpeer in Mercurial before 3.2.4 allows remote attackers to execute arbitrary commands via a crafted repository name in a clone command.","status":"published","published":"2015-03-31T14:59:03Z","modified":"2026-04-16T06:22:02.660639649Z","updated_at":"2026-11-02T15:44:00.097545Z"},{"id":"DEBIAN-CVE-2014-9462","description":"The _validaterepo function in sshpeer in Mercurial before 3.2.4 allows remote attackers to execute arbitrary commands via a crafted repository name in a clone command.","status":"published","published":"2015-03-31T14:59:03.437Z","modified":"2026-10-23T15:47:32.563240281Z","updated_at":"2026-11-02T15:45:26.442161Z"},{"id":"DLA-237-1","title":"mercurial - security update","status":"published","published":"2015-06-04T00:00:00Z","modified":"2026-03-09T01:18:18.278529Z","updated_at":"2026-11-02T15:46:10.712745Z"},{"id":"DSA-3257-1","title":"mercurial - security update","status":"published","published":"2015-05-11T00:00:00Z","modified":"2026-03-09T01:21:42.108084Z","updated_at":"2026-11-02T15:46:16.199525Z"},{"id":"MGASA-2015-0129","title":"Updated mercurial packages fix CVE-2014-9462","description":"Updated mercurial packages fix security vulnerability:\n\nThe mercurial source code management system suffers from a code-injection\nflaw due to insufficient shell quoting in sshpeer._validaterepo()\n(CVE-2014-9462).\n","status":"published","published":"2015-04-03T13:11:23Z","modified":"2026-04-16T06:24:03.633453991Z","updated_at":"2026-11-02T15:49:39.488462Z"},{"id":"PYSEC-2015-14","description":"The _validaterepo function in sshpeer in Mercurial before 3.2.4 allows remote attackers to execute arbitrary commands via a crafted repository name in a clone command.","status":"published","published":"2015-03-31T14:59:00Z","modified":"2026-06-10T17:02:09.951893919Z","updated_at":"2026-11-02T15:52:51.645172Z"},{"id":"SUSE-SU-2015:0817-1","title":"Security update for mercurial","description":"\nmercurial was updated to fix a potential command injection via \nsshpeer._validaterepo() (CVE-2014-9462)\n\nSecurity Issues:\n\n    * CVE-2014-9462\n      \u003chttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-9462\u003e\n\n","status":"published","published":"2015-03-23T17:10:44Z","modified":"2026-02-04T04:12:26.510838Z","updated_at":"2026-11-02T15:53:41.276824Z"},{"id":"SUSE-SU-2015:0836-1","title":"Security update for mercurial","description":"\nMercurial was updated to fix a command injection via sshpeer._validaterepo() (CVE-2014-9462, bnc#923070):\n","status":"published","published":"2015-03-20T15:26:35Z","modified":"2026-02-04T03:11:45.06533Z","updated_at":"2026-11-02T15:53:41.276824Z"},{"id":"UBUNTU-CVE-2014-9462","description":"The _validaterepo function in sshpeer in Mercurial before 3.2.4 allows remote attackers to execute arbitrary commands via a crafted repository name in a clone command.","status":"published","published":"2015-03-31T14:59:00Z","modified":"2025-09-08T16:43:15Z","updated_at":"2026-11-02T15:54:09.378953Z"}]}}
