Skip to content
OpenAdvisories
Medium · 5.1 CVE-2019-3902 EUVD-2019-0085GHSA-mq66-vcfc-8246PYSEC-2019-188

Mercurial Path Traversal/Link Following vulnerability

Published Apr 22, 2019 · Updated Aug 4, 2024 · Assigned by redhat

Description

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 products

VendorProductAffectedFixed
The Mercurial Project mercurial before 4.9 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mercurial 4.9-1 —
Debian 13 mercurial 4.9-1 —
Debian 12 mercurial 4.9-1 —
Debian 9 mercurial 4.0-1+deb9u2 DLA-2293-1
Debian 8 mercurial 3.1.2-2+deb8u7 DLA-1764-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS mercurial 4.5.3-1ubuntu2.2 USN-5102-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS mercurial 3.7.3-1ubuntu1.2+esm2 USN-5102-2
Ubuntu Pro 14.04 LTS mercurial 2.8.2-1ubuntu1.4+esm1 USN-5102-2
ReleasePackageFixed inAdvisory
SLES 12 SP5 mercurial 2.8.2-15.18.4 SUSE-SU-2020:3003-1
SLES 2 mercurial 4.5.2-3.9.44 SUSE-SU-2020:1709-2, SUSE-SU-2020:1709-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed mercurial 5.9.1-2.1 openSUSE-SU-2024:10586-1
openSUSE Leap 15.2 mercurial 4.5.2-lp152.7.3.1 openSUSE-SU-2020:0880-1
openSUSE Leap 15.1 mercurial 4.5.2-lp151.6.3.1 openSUSE-SU-2020:0869-1
ReleasePackageFixed inAdvisory
Alpine v3.24 mercurial 4.9-r0 —
Alpine v3.23 mercurial 4.9-r0 —
Alpine v3.22 mercurial 4.9-r0 —
Alpine v3.21 mercurial 4.9-r0 —
Alpine v3.20 mercurial 4.9-r0 —
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 mercurial 4.9-r0 —
Alpine v3.18 mercurial 4.9-r0 —
Alpine v3.17 mercurial 4.9-r0 —
Alpine v3.16 mercurial 4.9-r0 —
Alpine v3.15 mercurial 4.9-r0 —
Alpine v3.14 mercurial 4.9-r0 —
Alpine v3.13 mercurial 4.9-r0 —
Alpine v3.12 mercurial 4.9-r0 —
Alpine v3.11 mercurial 4.9-r0 —
Alpine v3.10 mercurial 4.9-r0 —
Alpine v3.9 mercurial 4.9-r0 —
Alpine v3.8 mercurial 4.6.1-r1 —
Alpine v3.7 mercurial 4.5.2-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mercurial < 4.9 4.9 GHSA-mq66-vcfc-8246

Advisories 10

References