Multiple vulnerabilities in Mercurial



| Updated: 2020-07-23
Risk High
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2017-1000115
CVE-2017-1000116
CWE-ID CWE-59
CWE-78
Exploitation vector Network
Public exploit N/A
Vulnerable software
Mercurial
Web applications / CRM systems

Vendor Mercurial

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) Link following

EUVDB-ID: #VU31407

Risk: Medium

CVSSv4.0: 6.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2017-1000115

CWE-ID: CWE-59 - Improper Link Resolution Before File Access ('Link Following')

Exploit availability: No

Description

The vulnerability allows a remote non-authenticated attacker to manipulate data.

Mercurial prior to version 4.3 is vulnerable to a missing symlink check that can malicious repositories to modify files outside the repository

Mitigation

Install update from vendor's website.

Vulnerable software versions

Mercurial: 4.0 - 4.2.3

CPE2.3 External links

https://www.debian.org/security/2017/dsa-3963
https://www.securityfocus.com/bid/100290
https://access.redhat.com/errata/RHSA-2017:2489
https://security.gentoo.org/glsa/201709-18
https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.3_.2F_4.3.1_.282017-08-10.29


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.

2) OS Command Injection

EUVDB-ID: #VU31408

Risk: High

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:Amber]

CVE-ID: CVE-2017-1000116

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 non-authenticated attacker to execute arbitrary code.

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

Mitigation

Install update from vendor's website.

Vulnerable software versions

Mercurial: 4.0 - 4.2.3

CPE2.3 External links

https://www.debian.org/security/2017/dsa-3963
https://www.securityfocus.com/bid/100290
https://access.redhat.com/errata/RHSA-2017:2489
https://security.gentoo.org/glsa/201709-18
https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.3_.2F_4.3.1_.282017-08-10.29


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###