{"id":"UBUNTU-CVE-2019-3902","details":"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.","modified":"2026-03-13T16:52:54.109080Z","published":"2019-04-22T00:00:00Z","related":["USN-4086-1","USN-5102-1","USN-5102-2"],"upstream":["CVE-2019-3902"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-3902"},{"type":"REPORT","url":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.9_.282019-02-01.29"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4086-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5102-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-3902"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5102-2"}],"affected":[{"package":{"name":"mercurial","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/mercurial@2.8.2-1ubuntu1.4+esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.2-1ubuntu1.4+esm1"}]}],"versions":["2.6.3-1","2.7.2-1","2.8.1-2","2.8.2-1ubuntu1","2.8.2-1ubuntu1.3","2.8.2-1ubuntu1.4"],"ecosystem_specific":{"binaries":[{"binary_name":"mercurial","binary_version":"2.8.2-1ubuntu1.4+esm1"},{"binary_name":"mercurial-common","binary_version":"2.8.2-1ubuntu1.4+esm1"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-3902.json"}},{"package":{"name":"mercurial","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/mercurial@3.7.3-1ubuntu1.2+esm2?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.7.3-1ubuntu1.2+esm2"}]}],"versions":["3.4-1ubuntu2","3.6.2-1ubuntu2","3.7.3-1ubuntu1","3.7.3-1ubuntu1.1","3.7.3-1ubuntu1.2"],"ecosystem_specific":{"binaries":[{"binary_name":"mercurial","binary_version":"3.7.3-1ubuntu1.2+esm2"},{"binary_name":"mercurial-common","binary_version":"3.7.3-1ubuntu1.2+esm2"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-3902.json"}},{"package":{"name":"mercurial","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/mercurial@4.5.3-1ubuntu2.2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.3-1ubuntu2.2"}]}],"versions":["4.3.1-2","4.5-1ubuntu1","4.5.2-0ubuntu2","4.5.3-1ubuntu2","4.5.3-1ubuntu2.1"],"ecosystem_specific":{"binaries":[{"binary_name":"mercurial","binary_version":"4.5.3-1ubuntu2.2"},{"binary_name":"mercurial-common","binary_version":"4.5.3-1ubuntu2.2"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-3902.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}