9.8crit
CVE-2017-17458
Mercurial vulnerable to arbitrary code injection
Also known as GHSA-6v56-cpg6-3rpx, PYSEC-2017-90
Published 8 y ago · modified 4 mo ago · JSON
CVSS
9.8
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
6.3%
percentile 94%
Public exploits
0
none known
Summary
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.
Exploit prediction (EPSS)
6.33% probability of exploitation in the next 30 days, higher than 94% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
| GitHub | 3.0 | 9.8 | CVSS:3.0/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 | <4.4.1 | 4.4.1 |
Classification
- Weakness
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
- lists.debian.org /debian-lts-announce/2017/12/msg00027.html · mailing-list, x_refsource_MLIST, x_transferred
- mercurial-scm.org /wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29 · x_refsource_MISC, x_transferred
- lists.debian.org /debian-lts-announce/2018/07/msg00041.html · mailing-list, x_refsource_MLIST, x_transferred
- lists.debian.org /debian-lts-announce/2018/07/msg00005.html · mailing-list, x_refsource_MLIST, x_transferred
- mercurial-scm.org /pipermail/mercurial-devel/2017-November/107333.html · x_refsource_MISC, x_transferred
- securityfocus.com /bid/102926 · vdb-entry, x_refsource_BID, x_transferred
- bz.mercurial-scm.org /show_bug.cgi?id=5730 · x_refsource_MISC, x_transferred
- confluence.atlassian.com /sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html · x_refsource_CONFIRM, x_transferred
- lists.debian.org /debian-lts-announce/2020/07/msg00032.html · mailing-list, x_refsource_MLIST, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2017-17458 · advisory
- github.com /dscho/hg · package
- github.com /pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2017-90.yaml · web
- web.archive.org /web/20200227132808/http://www.securityfocus.com/bid/102926 · web
- github.com /advisories/GHSA-6v56-cpg6-3rpx · advisory
Sources
- CVE List: CVE-2017-17458
- GitHub Advisory: GHSA-6v56-cpg6-3rpx
- NVD: CVE-2017-17458
- OSV: PYSEC-2017-90
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.