Symlink attack in Mercurial - CVE-2019-3902
Published: June 25, 2020
Vulnerability identifier: #VU29241
CSH Severity: Medium
CVSS v4: 2.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]
CVE-ID: CVE-2019-3902
CWE-ID: CWE-61
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
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.
Affected software
Mercurial
cflinuxfs3
Dell PowerProtect Cyber Recovery
mercurial (Alpine package)
mercurial (Ubuntu package)
mercurial-common (Ubuntu package)
Opensuse
Ubuntu
cflinuxfs3
Dell PowerProtect Cyber Recovery
mercurial (Alpine package)
mercurial (Ubuntu package)
mercurial-common (Ubuntu package)
Opensuse
Ubuntu
How to mitigate CVE-2019-3902
Install updates from vendor's website.
Mercurial - update to 4.9
cflinuxfs3 - update to 0.261.0
mercurial (Alpine package) - update to 4.5.2-r1
mercurial (Ubuntu package) - update to 4.5.3-1ubuntu2.2
mercurial-common (Ubuntu package) - update to 4.5.3-1ubuntu2.2
Dell PowerProtect Cyber Recovery - update to 18.1.1.2-8
cflinuxfs3 - update to 0.261.0
mercurial (Alpine package) - update to 4.5.2-r1
mercurial (Ubuntu package) - update to 4.5.3-1ubuntu2.2
mercurial-common (Ubuntu package) - update to 4.5.3-1ubuntu2.2
Dell PowerProtect Cyber Recovery - update to 18.1.1.2-8