CVEfocus › CVE database › CVE-2019-3902

CVE-2019-3902

CVSS 5.1 MediumEPSS 1.4% (higher than 72% of CVEs)Published 2019-04-22Updated 2024-08-04Assigner: redhat

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.

CWE-22

What to do

Fixed builds are available from Alpine, Debian, PyPI, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

23Fixed
2Fix pending
7Will not fix
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04mercurialNot affected
vulnerable_code_not_present
Ubuntu 20.04mercurialNot affected
vulnerable_code_not_present
Ubuntu 18.04mercurialFixed4.5.3-1ubuntu2.2UBUNTU-CVE-2019-3902
Ubuntu 16.04mercurialFix pending3.7.3-1ubuntu1.2+esm2 (Ubuntu Pro)UBUNTU-CVE-2019-3902
Ubuntu 14.04mercurialFix pending2.8.2-1ubuntu1.4+esm1 (Ubuntu Pro)UBUNTU-CVE-2019-3902
Debian 14mercurialFixed4.9-1DEBIAN-CVE-2019-3902
Debian 13mercurialFixed4.9-1DEBIAN-CVE-2019-3902
Debian 12mercurialFixed4.9-1DEBIAN-CVE-2019-3902
Red Hat Enterprise Linux 8mercurialWill not fix
Will not fix
Red Hat Enterprise Linux 8mercurial-chgWill not fix
Will not fix
Red Hat Enterprise Linux 8mercurial-hgkWill not fix
Will not fix
Red Hat Enterprise Linux 7emacs-mercurialWill not fix
Will not fix
Red Hat Enterprise Linux 7emacs-mercurial-elWill not fix
Will not fix
Red Hat Enterprise Linux 7mercurialWill not fix
Will not fix
Red Hat Enterprise Linux 7mercurial-hgkWill not fix
Will not fix
Red Hat Enterprise Linux 6emacs-mercurialNot affected
Red Hat Enterprise Linux 6emacs-mercurial-elNot affected
Red Hat Enterprise Linux 6mercurialNot affected
Red Hat Enterprise Linux 6mercurial-hgkNot affected
Alpine Linux 3.24mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.23mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.22mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.21mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.20mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.19mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.18mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.17mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.16mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.15mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.14mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.13mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.12mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.11mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.10mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.9mercurialFixed4.9-r0ALPINE-CVE-2019-3902
Alpine Linux 3.8mercurialFixed4.6.1-r1ALPINE-CVE-2019-3902
Alpine Linux 3.7mercurialFixed4.5.2-r1ALPINE-CVE-2019-3902
PyPI librarymercurialFixed4.9GHSA-mq66-vcfc-8246

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.