Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mercurial
  4. ›
  5. CVE-2019-3902

CVE-2019-3902: Mercurial Path Traversal/Link Following vulnerability

February 15, 2022 (updated September 25, 2024)

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.

References

  • bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3902
  • github.com/advisories/GHSA-mq66-vcfc-8246
  • github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2019-188.yaml
  • lists.debian.org/debian-lts-announce/2019/04/msg00024.html
  • lists.debian.org/debian-lts-announce/2020/07/msg00032.html
  • nvd.nist.gov/vuln/detail/CVE-2019-3902
  • usn.ubuntu.com/4086-1
  • www.mercurial-scm.org/wiki/WhatsNew

Code Behaviors & Features

Detect and mitigate CVE-2019-3902 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.9

Fixed versions

  • 4.9

Solution

Upgrade to version 4.9 or above.

Impact 5.9 MEDIUM

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

pypi/mercurial/CVE-2019-3902.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:45 +0000.