ADVISORIES

Vulnerability

CVE-2017-17458

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.

12 advisories report this vulnerability, across 6 ecosystems.

Advisories

  • DEBIAN-CVE-2017-17458

    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…

    CVE-2017-17458 Debian Updated 1 September 2026
  • DLA-1224-1

    mercurial - security update

    CVE-2017-17458 Debian Updated 20 November 2026
  • DLA-1414-1

    mercurial - security update

    CVE-2017-17458CVE-2017-9462CVE-2018-1000132CVE-2018-13346 Debian Updated 20 November 2026
  • DLA-1414-2

    mercurial - regression update

    CVE-2017-17458 Debian Updated 20 November 2026
  • DLA-2293-1

    mercurial - security update

    CVE-2017-17458CVE-2018-1000132CVE-2018-13346CVE-2018-13347 Debian Updated 20 November 2026
  • GHSA-6v56-cpg6-3rpx

    Mercurial vulnerable to arbitrary code injection

    Critical CVE-2017-17458 PyPI Updated 25 September 2024
  • PYSEC-2017-90

    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…

    CVE-2017-17458 PyPI Updated 10 June 2026
  • RHVEX-CVE-2017-17458

    mercurial: arbitrary command execution in mercurial repo with a git submodule

    Moderate CVE-2017-17458 Red Hat Updated 5 November 2026
  • SUSE-SU-2018:0127-1

    Security update for mercurial

    CVE-2017-17458 SUSE Updated 4 February 2026
  • SUSE-SU-2018:0129-1

    Security update for mercurial

    CVE-2017-17458 SUSE Updated 4 February 2026
  • UBUNTU-CVE-2017-17458

    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…

    CVE-2017-17458 Ubuntu Updated 8 September 2025
  • openSUSE-SU-2024:10586-1

    mercurial-5.9.1-2.1 on GA media

    CVE-2008-2942CVE-2017-1000115CVE-2017-1000116CVE-2017-17458 openSUSE Updated 4 February 2026

References