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.
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | mercurial | < 4.9 | 4.9 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-3902
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3902
- 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
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html
- https://usn.ubuntu.com/4086-1
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.9_.282019-02-01.29
- https://usn.ubuntu.com/4086-1/
- https://github.com/advisories/GHSA-mq66-vcfc-8246
- CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N- Weakness (CWE)
CWE-22, CWE-59- Platform
- Python (PyPI)
- Package
mercurial- Disclosed
- 22.04.2019
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-mq66-vcfc-8246 - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2019-188 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: mercurial
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 18
- First → latest
- 03.2015 05.2022
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 6
- High 9
- Medium 3
Disclosures per year
- 2017: 4
- 2018: 5
- 2019: 1
- 2020: 1
- 2021: 0
- 2022: 2
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 0
earlier: 5
-
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. this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.