OS Command Injection Affecting mercurial package, versions <3.1.2-2+deb8u6


0.0
critical

Snyk CVSS

    Attack Complexity Low
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    EPSS 0.71% (81st percentile)
Expand this section
NVD
9.8 critical
Expand this section
Red Hat
6.3 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-DEBIAN8-MERCURIAL-311069
  • published 7 Dec 2017
  • disclosed 7 Dec 2017

How to fix?

Upgrade Debian:8 mercurial to version 3.1.2-2+deb8u6 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mercurial package and not the mercurial package as distributed by Debian. See How to fix? for Debian:8 relevant fixed versions and status.

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.