PT-2017-3414 · Mercurial+2 · Mercurial+2
Zhang Tianqi
·
Published
2017-11-02
·
Updated
2024-06-15
·
CVE-2017-17458
CVSS v3.1
10
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Mercurial versions prior to 4.4.1
Description
The issue is related to the execution of arbitrary code through a specially malformed repository. This can cause Git subrepositories to run arbitrary code in the form of a
.git/hooks/post-update script checked into the repository. The typical use of Mercurial prevents the construction of such repositories, but they can be created programmatically.Recommendations
For versions prior to 4.4.1, update to version 4.4.1 or later to resolve the issue. As a temporary workaround, consider restricting the creation of repositories to prevent the construction of specially malformed repositories that could exploit this issue.
Fix
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Mercurial
Suse