CVE-2019-3902: Path Traversal

Published Apr 22, 2019
·
Updated

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 Software

23 affected componentsFixes available
pip/mercurial<4.9
4.9
Mercurial Mercurial<4.9
Debian Debian Linux=8.0
redhat Enterprise Linux=7.0
debian/mercurial
5.6.1-45.6.1-4+deb11u16.3.2-1+deb12u17.0.1-27.1.1-17.2-4
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.9-r0
4.9-r0
alpine/mercurial<4.5.2-r1
4.5.2-r1
alpine/mercurial<4.6.1-r1
4.6.1-r1
alpine/mercurial<4.9-r0
4.9-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/mercurial to a version that resolves this vulnerability.

    Fixed in 4.9
  2. Upgrade

    Upgrade debian/mercurial to a version that resolves this vulnerability.

    Fixed in 5.6.1-4Fixed in 5.6.1-4+deb11u1Fixed in 6.3.2-1+deb12u1Fixed in 7.0.1-2Fixed in 7.1.1-1Fixed in 7.2-4
  3. Upgrade

    Upgrade alpine/mercurial to a version that resolves this vulnerability.

    Fixed in 4.9-r0
  4. Upgrade

    Upgrade alpine/mercurial to a version that resolves this vulnerability.

    Fixed in 4.5.2-r1
  5. Upgrade

    Upgrade alpine/mercurial to a version that resolves this vulnerability.

    Fixed in 4.6.1-r1
  6. Upgrade

    Upgrade Mercurial to a version that resolves this vulnerability.

    Fixed in 4.9

Event History

Apr 22, 2019
CVE Published
via MITRE·03:29 PM
Data Sourced
via MITRE·03:29 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:29 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·04:29 PM
DescriptionSeverityAffected Software
Feb 15, 2022
Advisory Published
via GitHub·01:13 AM

Frequently Asked Questions

1

What is CVE-2019-3902?

CVE-2019-3902 is a vulnerability found in Mercurial before version 4.9 that allows the use of symlinks and subrepositories to write files outside a repository.

2

How does CVE-2019-3902 affect Mercurial?

CVE-2019-3902 affects Mercurial before version 4.9 by defeating Mercurial's path-checking logic and enabling the writing of files outside a repository.

3

What is the severity of CVE-2019-3902?

The severity of CVE-2019-3902 is medium with a severity value of 5.9.

4

Which software versions are affected by CVE-2019-3902?

Mercurial before version 4.9, Debian Linux 8.0, and Redhat Enterprise Linux 7.0 are affected by CVE-2019-3902.

5

How can CVE-2019-3902 be fixed?

To fix CVE-2019-3902, users should update Mercurial to version 4.9 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203