Home / The Mercurial Project / mercurial / CVE-2019-3902
CVE-2019-3902: is it exploited, and which versions of The Mercurial Project mercurial are affected and fixed?
CVE-2019-3902 is a path traversal (reading or writing files outside the intended folder) vulnerability in The Mercurial Project mercurial. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:08 UTC). Affected: mercurial before 4.9 (GitHub advisory GHSA-mq66-vcfc-8246). Fixed in 4.9 (GitHub advisory GHSA-mq66-vcfc-8246). Severity: Medium (5.1, CVSS 3.0, from redhat).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:23 UTC.
What is 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.
From the CVE record by redhat, last updated August 4, 2024, 19:26 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| The Mercurial Project | mercurial | before 4.9 |
As the CVE record by redhat states it, last updated August 4, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | mercurial | < 4.9 | 4.9 | GHSA-mq66-vcfc-8246 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 25, 2024. Summary: Mercurial Path Traversal/Link Following vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| mercurial | mercurial | before 4.9 | application |
| debian | debian linux | 8.0 | operating system |
| redhat | enterprise linux | 7.0 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 02:35 UTC.
How severe is CVE-2019-3902?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.1 | CVSS 3.0 | CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N | redhat |
| Medium 5.9 | CVSS 3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N | NVD |
| Medium 5.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2019-3902 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 1.36% probability of exploitation activity in the next 30 days, percentile 72.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- CWE-59 Improper Link Resolution Before File Access
Where are the vendor advisories and references?
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3902 x_refsource_CONFIRM
- [debian-lts-announce] 20190425 [SECURITY] [DLA 1764-1] mercurial security update mailing-list, x_refsource_MLIST
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.9_.282019-02-01.29 x_refsource_MISC
- USN-4086-1 vendor-advisory, x_refsource_UBUNTU
- [debian-lts-announce] 20200731 [SECURITY] [DLA 2293-1] mercurial security update mailing-list, x_refsource_MLIST
When was it published, and where is the official record?
- Reserved
- January 3, 2019
- Published
- April 22, 2019, 15:29 UTC
- CVE record updated
- August 4, 2024, 19:26 UTC by redhat
- NVD
- Modified, last modified June 17, 2026, 02:35 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:23 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2019-3902
Is CVE-2019-3902 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:08 UTC. FIRST's EPSS gives it a 1.36% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of The Mercurial Project mercurial are affected by CVE-2019-3902?
mercurial before 4.9, per the GitHub advisory GHSA-mq66-vcfc-8246. The tables above give every range the sources list.
Which version fixes CVE-2019-3902?
4.9, per the GitHub advisory GHSA-mq66-vcfc-8246. Check the vendor's advisory before you rely on it.
How severe is CVE-2019-3902?
Medium (5.1, CVSS 3.0, from redhat). The severity table above shows each score with its source.
Where is the official record of CVE-2019-3902?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.