OS Command Injection Affecting mercurial package, versions <4.4.1-1


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

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 IDSNYK-DEBIAN12-MERCURIAL-1554034
  • published7 Dec 2017
  • disclosed7 Dec 2017

Introduced: 7 Dec 2017

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

How to fix?

Upgrade Debian:12 mercurial to version 4.4.1-1 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:12 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.