CVE-2019-3902Mercurial
Medium 5.9 No auth needed
Follow: this CVE · Mercurial · Mercurial We alert you by email or Slack (account required).
- Priority
- 51
- CVSS 3.0
- 5.9
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 72
- Auth required
- No
- Published
- Apr 22, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Mercurial.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mercurial |
< 4.9 |
4.9 |
pip install "mercurial>=4.9" |
| PyPI | mercurial |
< 4.9 |
4.9 |
pip install "mercurial>=4.9" |
Per OSV / GitHub Advisories (GHSA-mq66-vcfc-8246, PYSEC-2019-188). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mercurial | mercurial | < 4.9 |
| debian | debian_linux | 8.0 |
| redhat | enterprise_linux | 7.0 |
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Issue Tracking Vendor Advisory
- lists.debian.org Third Party Advisory
- lists.debian.org
- usn.ubuntu.com
- www.mercurial-scm.org Third Party Advisory