OS command injection in Mercurial - CVE-2017-17458

 

OS command injection in Mercurial - CVE-2017-17458

Published: March 6, 2018 / Updated: March 6, 2018


Vulnerability identifier: #VU10849
CSH Severity: Low
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-17458
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The weakness exists due to cross repositories modification. A remote attacker can send a specially crafted mercurial repository and trigger arbitrary commands on a client during commands such as clone or update.

Affected software

Mercurial
Debian Linux
mercurial (Debian package)

How to mitigate CVE-2017-17458

Update to version 4.4.1.

mercurial (Debian package) - addressed in versions 2.2.2-4+deb7u6, 3.1.2-2+deb8u5, 3.1.2-2+deb8u6, 4.0-1+deb9u2

External References

Related Security Bulletins