🛡️ CVE-2017-17458 — mercurial
Description
Mercurial vulnerable to arbitrary code injection
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.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality high, integrity high, availability high.
Weakness class
CVE-2017-17458 is classified as CWE-78: OS Command Injection. Untrusted input reaches a shell command without neutralisation, so an attacker can run arbitrary operating system commands.
Affected software
CVE-2017-17458 is recorded against 1 package.
- mercurial (fixed in 4.4.1)
Timeline and source
Published on 13 May 2022 and last revised on 25 September 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
bz.mercurial-scm.org (Web)
confluence.atlassian.com (Web)
github.com (Package)
github.com (Web)
lists.debian.org (Web)
lists.debian.org (Web)
lists.debian.org (Web)
lists.debian.org (Web)
web.archive.org (Web)
www.mercurial-scm.org (Web)
www.mercurial-scm.org (Web)
Details
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
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| mercurial | — | 4.4.1 |
Similar Threats
- Unknown BELL-CVE-2025-2361
- Medium CVE-2022-43410
- Critical CVE-2014-9390
- High CVE-2016-3105
- High CVE-2022-30948
More CVE 2017 advisories
Browse all of CVE 2017 in the advisory index.
Exploit Protection
Are you running mercurial?
CVE-2017-17458 carries CVSS 9.5 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.
Check My Site For CVE-2017-17458 →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.