Mercurial up to 4.2 SSH Hostname command injection

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
8.4$0-$5k0.00

Summaryinfo

A vulnerability described as critical has been identified in Mercurial up to 4.2. The affected element is an unknown function of the component SSH. Executing a manipulation as part of Hostname can lead to command injection. This vulnerability is handled as CVE-2017-1000116. The attack can be executed remotely. There is not any exploit available. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability was found in Mercurial up to 4.2. It has been declared as critical. This vulnerability affects an unknown code block of the component SSH. The manipulation as part of a Hostname leads to a command injection vulnerability. The CWE definition for the vulnerability is CWE-77. The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:

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

The bug was discovered 08/10/2017. The weakness was released 10/05/2017 (Website). The advisory is shared for download at security.gentoo.org. This vulnerability was named CVE-2017-1000116 since 10/03/2017. The exploitation appears to be easy. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. There are neither technical details nor an exploit publicly available. The MITRE ATT&CK project declares the attack technique as T1202.

The vulnerability was handled as a non-public zero-day exploit for at least 35 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 103227 (Amazon Linux AMI : mercurial (ALAS-2017-893)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Amazon Linux Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 236464 (Red Hat Update for mercurial (RHSA-2017:2489)).

Upgrading to version 4.3 eliminates this vulnerability. A possible mitigation has been published before and not just after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Tenable (103227) and SecurityFocus (BID 100290†). Entry connected to this vulnerability is available at VDB-107475. Once again VulDB remains the best source for vulnerability data.

Productinfo

Name

Version

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.5
VulDB Meta Temp Score: 8.4

VulDB Base Score: 7.3
VulDB Temp Score: 7.0
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 9.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Command injection
CWE: CWE-77 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 103227
Nessus Name: Amazon Linux AMI : mercurial (ALAS-2017-893)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 53376
OpenVAS Name: Debian Security Advisory DSA 3963-1 (mercurial - security update)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: Mercurial 4.3

Timelineinfo

08/10/2017 🔍
08/10/2017 +0 days 🔍
09/14/2017 +35 days 🔍
09/15/2017 +1 days 🔍
10/03/2017 +18 days 🔍
10/04/2017 +1 days 🔍
10/05/2017 +1 days 🔍
10/05/2017 +0 days 🔍
12/30/2022 +1912 days 🔍

Sourcesinfo

Advisory: RHSA-2017:2489
Researcher: Cedric Buissart
Status: Not defined
Confirmation: 🔍

CVE: CVE-2017-1000116 (🔍)
GCVE (CVE): GCVE-0-2017-1000116
GCVE (VulDB): GCVE-100-107476

OVAL: 🔍

SecurityFocus: 100290

See also: 🔍

Entryinfo

Created: 10/05/2017 15:14
Updated: 12/30/2022 17:14
Changes: 10/05/2017 15:14 (75), 11/22/2019 08:45 (2), 01/15/2021 13:55 (4), 12/30/2022 17:14 (3)
Complete: 🔍
Cache ID: 216::103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!