{"id":"CVE-2019-3902","published":"2019-04-22T15:29:13Z","modified":"2024-08-04T19:26:26Z","title":"A flaw was found in Mercurial before 4.9","vendor":"The Mercurial Project","product":"mercurial","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01362,"percentile":0.7245,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3902","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/04/msg00024.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.9_.282019-02-01.29","tags":["x_refsource_MISC"]},{"url":"https://usn.ubuntu.com/4086-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":18.1,"factors":[{"name":"EPSS percentile","points":14.49},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"the-mercurial-project","affectedVersions":[{"vendor":"The Mercurial Project","product":"mercurial","versions":["before 4.9"]}],"affected":[{"ecosystem":"PyPI","package":"mercurial","vulnerableRanges":["<4.9"],"patched":["4.9"],"from":["GHSA-mq66-vcfc-8246","PYSEC-2019-188"],"provenance":"source"}],"summary":{"text":"Mercurial versions before 4.9 contain a path-validation flaw, where symlinks and subrepositories can bypass the software's path-checking logic and allow files to be written outside a repository. An attacker would need local access with low attack complexity and no privileges or user interaction, and the impact is limited to integrity, with the ability to write arbitrary files outside the repository's directory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:45:13Z"},"euvd":{"id":"EUVD-2019-0085","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-13347","published":"2018-07-06","fixed":"4.6.1","kev":false},{"cve":"CVE-2018-13348","published":"2018-07-06","fixed":"4.6.1","kev":false},{"cve":"CVE-2018-17983","published":"2018-10-04","fixed":"4.7.2","kev":false,"link":{"from":"CVE-2018-17983","to":"CVE-2019-3902","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mercurial","fromFixed":"4.7.2","toFixed":"4.9","daysApart":200}]}},{"cve":"CVE-2019-3902","published":"2019-04-22","fixed":"4.9","kev":false}],"package":"PyPI:mercurial"}}