Vulnerability Details : CVE-2019-3902
A flaw was found in Mercurial before 4.9. It was possible to use symlinks and subrepositories to defeat Mercurial's path-checking logic and write files outside a repository.
Vulnerability category: Directory traversal
Products affected by CVE-2019-3902
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
- cpe:2.3:a:mercurial:mercurial:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2019-3902
1.00%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 75 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2019-3902
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.8
|
MEDIUM | AV:N/AC:M/Au:N/C:N/I:P/A:P |
8.6
|
4.9
|
NIST | |
5.9
|
MEDIUM | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
2.2
|
3.6
|
NIST | |
5.1
|
MEDIUM | CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
1.4
|
3.6
|
Red Hat, Inc. |
CWE ids for CVE-2019-3902
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: secalert@redhat.com (Secondary)
-
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.Assigned by: nvd@nist.gov (Primary)
References for CVE-2019-3902
-
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3902
1696025 – (CVE-2019-3902) CVE-2019-3902 mercurial: Path-checking logic bypass via symlinks and subrepositoriesIssue Tracking;Vendor Advisory
-
https://usn.ubuntu.com/4086-1/
USN-4086-1: Mercurial vulnerability | Ubuntu security notices
-
https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html
[SECURITY] [DLA 2293-1] mercurial security update
-
https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.9_.282019-02-01.29
WhatsNew - MercurialThird Party Advisory
-
https://lists.debian.org/debian-lts-announce/2019/04/msg00024.html
[SECURITY] [DLA 1764-1] mercurial security updateThird Party Advisory
Jump to