CVE-2014-9462 json
Mercurial vulnerable to arbitrary command execution via a crafted repository name in a clone command
published 2015-03-31 11 y ago modified 2026-06-17 4 mo ago also GHSA-3pmw-h7j4-rf54 , PYSEC-2015-14 , EUVD-2015-0029
- cvss
- 9.8
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.2%
- EPSS 4.2% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi mercurial 3.2.4
- mercurial Debian 14, Debian 13, Debian 12 3.4-1
debian advisories DEBIAN-CVE-2014-9462
- mercurial Ubuntu 14.04 LTS 2.8.2-1ubuntu1.3
ubuntu advisories UBUNTU-CVE-2014-9462
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- mercurial SLE Software Development Kit 12 2.8.2-3.1
suse advisories SUSE-SU-2015:0836-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2014-9462 updated cvss 6.5
mercurial: command Injection via sshpeer._validaterepo()
-
Red Hat Enterprise Linux 6 mercurial, mercurial-hgk, emacs-mercurial, emacs-mercurial-el Red Hat Enterprise Linux 7 mercurial, mercurial-hgk, emacs-mercurial, emacs-mercurial-elaffected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.17% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- chargen.matasano.com http://chargen.matasano.com/chargen/2015/3/17/this-new-vulnerability-mercurial-command-injection-cve-2014-9462.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | mercurial | <3.2.4 |
3.2.4 |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
chargen.matasano.com
/chargen/2015/3/17/this-new-vulnerability-mercurial-command-injection-cve-2014-9462.html
web, exploit
-
security.gentoo.org
/glsa/201612-19
vendor-advisory, web, advisory
-
lists.opensuse.org
/opensuse-updates/2015-03/msg00085.html
vendor-advisory, web
-
debian.org
/security/2015/dsa-3257
vendor-advisory, web, advisory
-
mercurial.selenic.com
/wiki/WhatsNew
web, vendor-advisory
-
oracle.com
/technetwork/topics/security/bulletinjul2015-2511963.html
web
-
osvdb.org
/119816
vdb-entry, web
-
nvd.nist.gov
/vuln/detail/CVE-2014-9462
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2015-14.yaml
web
-
github.com
/advisories/GHSA-3pmw-h7j4-rf54
advisory
Sources
- CVE List CVE-2014-9462
- GitHub Advisory GHSA-3pmw-h7j4-rf54
- NVD CVE-2014-9462
- OSV PYSEC-2015-14
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.