OS Command Injection Affecting mercurial-hgk package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.93% (83rd percentile)

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 Learn

Learn about OS Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL7-MERCURIALHGK-1368316
  • published26 Jul 2021
  • disclosed3 Nov 2017

Introduced: 3 Nov 2017

CVE-2017-17458  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:7 mercurial-hgk.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mercurial-hgk package and not the mercurial-hgk package as distributed by RHEL. See How to fix? for RHEL:7 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.