Live threats

All CVEs / Mercurial

CVE-2019-3902Mercurial

Medium 5.9 No auth needed

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
Weakness (CWE)
CWE-22, CWE-59
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mercurial.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mercurialmercurial< 4.9
debiandebian_linux8.0
redhatenterprise_linux7.0

Official sources

References

Links published by the sources. Open them with care.