Command execution in Mercurial



Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2017-17458
CWE-ID CWE-78
Exploitation vector Network
Public exploit N/A
Vulnerable software
Mercurial
Web applications / CRM systems

Vendor Mercurial

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) OS command injection

EUVDB-ID: #VU10849

Risk: Low

CVSSv4.0: 8.1 [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/E:U/U:Clear]

CVE-ID: CVE-2017-17458

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: No

Description

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.

Mitigation

Update to version 4.4.1.

Vulnerable software versions

Mercurial: 4.0 - 4.4

CPE2.3 External links

https://bz.mercurial-scm.org/show_bug.cgi?id=5730


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###