CVE Catalog

CVE-2017-17458

Critical
Published: Translated: NVD NIST

Summary

In Mercurial before version 4.4.1, a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a .git/hooks/post-update script. Typical use of Mercurial prevents the construction of such repositories, but they can be created programmatically.

Risk Assessment

The organization may be exposed to the execution of malicious code, potentially leading to system and data compromise. This risk is particularly heightened if repositories are used in automation processes.

Recommendation

It is recommended to update Mercurial to version 4.4.1 or later to mitigate this vulnerability. Additionally, repositories should be monitored and verified for unauthorized scripts.

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS