mercurial: Path-checking logic bypass via symlinks and subrepositories
Published Apr 22, 2019
5.9
MEDIUMCVSS 3.0
EPSS 1.43%
Description
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.
Affected products
-
- Version before 4.9StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| The Mercurial Project | Mercurial | n/a |
|
Configuration 2
- 8.0
- 7.0
No data.
Red Hat Ansible Tower 3
mercurial
Not affected
Red Hat Enterprise Linux 6
mercurial
Not affected
Red Hat Enterprise Linux 7
mercurial
Will not fix
Red Hat Enterprise Linux 8
mercurial
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Tower 3 | mercurial | Not affected | n/a |
| Red Hat Enterprise Linux 6 | mercurial | Not affected | n/a |
| Red Hat Enterprise Linux 7 | mercurial | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | mercurial | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue affects the versions of mercurial as shipped with Red Hat Enterprise Linux 7. Red Hat Product Security has rated this issue as having a security impact of Moderate. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
AV:N/AC:M/Au:N/C:N/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (15 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.43% (0.01425) | 71.95th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.41% (0.01413) | 69.13th | v5 (v2026.06.15) |
| Mar 30, 2025 | 1.00% (0.00996) | 74.92th | v4 (v2025.03.14) |
| Mar 29, 2025 | 2.17% (0.02169) | 73.83th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.00% (0.00996) | 75.38th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.24% (0.00237) | 62.66th | v3 (v2023.03.01) |
| Apr 15, 2024 | 0.23% (0.00228) | 60.61th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.21% (0.00210) | 57.13th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.02% (0.01018) | 36.86th | v2 (v2022.01.01) |
| Feb 4, 2022 | 22.62% (0.22616) | 94.40th | v2 (v2022.01.01) |
| Feb 3, 2022 | 5.36% (0.05363) | 79.74th | v1 |
| Jan 6, 2022 | 5.36% (0.05363) | 79.54th | v1 |
| Jan 5, 2022 | 1.25% (0.01247) | 69.74th | v5 (v2026.06.15) |
| Apr 14, 2021 | 1.25% (0.01247) | 0.00th | v1 |
References (11)
- https://access.redhat.com/security/cve/CVE-2019-3902 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1696025 Issue Tracking
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3902 x_refsource_CONFIRMIssue TrackingVendor Advisory
- https://github.com/advisories/GHSA-mq66-vcfc-8246 Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2019-188.yaml
- https://lists.debian.org/debian-lts-announce/2019/04/msg00024.html mailing-listx_refsource_MLISTThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2019-3902
- https://usn.ubuntu.com/4086-1 vendor-advisoryx_refsource_UBUNTU
- https://www.cve.org/CVERecord?id=CVE-2019-3902
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.9_.282019-02-01.29 x_refsource_MISCThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2019-3902 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1696025 | Issue Tracking | |
| https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3902 | x_refsource_CONFIRMIssue TrackingVendor Advisory | |
| https://github.com/advisories/GHSA-mq66-vcfc-8246 | Advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2019-188.yaml | ||
| https://lists.debian.org/debian-lts-announce/2019/04/msg00024.html | mailing-listx_refsource_MLISTThird Party Advisory | |
| https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html | mailing-listx_refsource_MLIST | |
| https://nvd.nist.gov/vuln/detail/CVE-2019-3902 | ||
| https://usn.ubuntu.com/4086-1 | vendor-advisoryx_refsource_UBUNTU | |
| https://www.cve.org/CVERecord?id=CVE-2019-3902 | ||
| https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.9_.282019-02-01.29 | x_refsource_MISCThird Party Advisory |
Change history (0)
No recorded changes yet.