OS Command Injection Affecting emacs-mercurial package, versions <0:4.2.3-1.29.amzn1


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
2.28% (90th 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-AMZN201803-EMACSMERCURIAL-1707860
  • published27 Sept 2021
  • disclosed5 Oct 2017

Introduced: 5 Oct 2017

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

How to fix?

Upgrade Amazon-Linux:2018.03 emacs-mercurial to version 0:4.2.3-1.29.amzn1 or higher.
This issue was patched in ALAS-2017-893.

NVD Description

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

Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.