Symlink attack in Mercurial



| Updated: 2020-06-25
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2019-3902
CWE-ID CWE-61
Exploitation vector Network
Public exploit N/A
Vulnerable software
Mercurial
Web applications / CRM systems

Vendor Mercurial

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Symlink attack

EUVDB-ID: #VU29241

Risk: Medium

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

CVE-ID: CVE-2019-3902

CWE-ID: CWE-61 - UNIX Symbolic Link (Symlink) Following

Exploit availability: No

Description

The vulnerability allows a remote user to escalate privileges on the system.

The vulnerability exists due to a symlink following issue. A remote user can create a specially crafted symbolic link to and write files outside a repository.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Mercurial: 4.0 - 4.8.2

CPE2.3 External links

https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3902
https://lists.debian.org/debian-lts-announce/2019/04/msg00024.html
https://usn.ubuntu.com/4086-1/
https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.9_.282019-02-01.29


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

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



###SIDEBAR###