🛡️ CVE-2017-17458 — mercurial

🔴 CVSS 9.5 — Critical ✅ No Known Exploit CWE-78 OSV
9.5
CVSS Score
0 Low4 Medium7 High9 Critical10

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

Severity CRITICAL
CVSS Score 9.5
CVSS 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
CWE CWE-78
Public Exploit ✅ No
Source OSV
Published 2022-05-13
Updated 2026-08-12
Modified 2024-09-25
Fix URL N/A

Affected Packages

Software From version Fixed in
mercurial 4.4.1

References

Similar Threats

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.