{"id":"ALPINE-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":"2025-11-19T06:16:40.010609Z","published":"2019-04-22T16:29:01.913Z","upstream":["CVE-2019-3902"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2019-3902"}],"affected":[{"package":{"name":"mercurial","ecosystem":"Alpine:v3.10","purl":"pkg:apk/alpine/mercurial?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.9-r0"}]}],"versions":["1.4.1-r0","1.4.2-r0","1.4.3-r0","1.5-r0","1.5.1-r0","1.5.1-r1","1.5.2-r0","1.5.3-r0","1.5.4-r0","1.6-r0","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.7-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.8-r0","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.9-r0","1.9.1-r0","1.9.2-r0","1.9.3-r0","2.0-r0","2.0.1-r0","2.0.2-r0","2.1-r0","2.1.1-r0","2.1.2-r0","2.2.1-r0","2.2.2-r0","2.2.3-r0","2.3-r0","2.3.1-r0","2.3.2-r0","2.4-r0","2.4.1-r0","2.4.2-r0","2.5.1-r0","2.5.2-r0","2.5.4-r0","2.6-r0","2.6.1-r0","2.6.2-r0","2.6.3-r0","2.7-r0","2.7.1-r0","2.7.2-r0","2.8-r0","2.8.1-r0","2.8.2-r0","2.9-r0","2.9.1-r0","2.9.2-r0","3.0-r0","3.0.2-r0","3.1-r0","3.1.1-r0","3.2.1-r0","3.2.2-r0","3.2.3-r0","3.3-r0","3.3.3-r0","3.4-r0","3.4.1-r0","3.4.2-r0","3.5-r0","3.5.1-r0","3.5.2-r0","3.6.2-r0","3.7.1-r0","3.7.2-r0","3.7.3-r0","3.8.1-r0","3.8.2-r0","3.8.3-r0","3.9-r0","3.9-r1","3.9.1-r0","4.0.1-r0","4.1-r0","4.1.1-r0","4.1.2-r0","4.1.3-r0","4.2.1-r0","4.2.2-r0","4.3.1-r0","4.3.2-r0","4.3.3-r0","4.4-r0","4.4.1-r0","4.4.2-r0","4.5-r0","4.5.2-r0","4.5.3-r0","4.6-r0","4.6.1-r0","4.6.2-r0","4.8-r0","4.8.1-r0","4.8.2-r0","4.8.2-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2019-3902.json"}},{"package":{"name":"mercurial","ecosystem":"Alpine:v3.11","purl":"pkg:apk/alpine/mercurial?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.9-r0"}]}],"versions":["1.4.1-r0","1.4.2-r0","1.4.3-r0","1.5-r0","1.5.1-r0","1.5.1-r1","1.5.2-r0","1.5.3-r0","1.5.4-r0","1.6-r0","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.7-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.8-r0","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.9-r0","1.9.1-r0","1.9.2-r0","1.9.3-r0","2.0-r0","2.0.1-r0","2.0.2-r0","2.1-r0","2.1.1-r0","2.1.2-r0","2.2.1-r0","2.2.2-r0","2.2.3-r0","2.3-r0","2.3.1-r0","2.3.2-r0","2.4-r0","2.4.1-r0","2.4.2-r0","2.5.1-r0","2.5.2-r0","2.5.4-r0","2.6-r0","2.6.1-r0","2.6.2-r0","2.6.3-r0","2.7-r0","2.7.1-r0","2.7.2-r0","2.8-r0","2.8.1-r0","2.8.2-r0","2.9-r0","2.9.1-r0","2.9.2-r0","3.0-r0","3.0.2-r0","3.1-r0","3.1.1-r0","3.2.1-r0","3.2.2-r0","3.2.3-r0","3.3-r0","3.3.3-r0","3.4-r0","3.4.1-r0","3.4.2-r0","3.5-r0","3.5.1-r0","3.5.2-r0","3.6.2-r0","3.7.1-r0","3.7.2-r0","3.7.3-r0","3.8.1-r0","3.8.2-r0","3.8.3-r0","3.9-r0","3.9-r1","3.9.1-r0","4.0.1-r0","4.1-r0","4.1.1-r0","4.1.2-r0","4.1.3-r0","4.2.1-r0","4.2.2-r0","4.3.1-r0","4.3.2-r0","4.3.3-r0","4.4-r0","4.4.1-r0","4.4.2-r0","4.5-r0","4.5.2-r0","4.5.3-r0","4.6-r0","4.6.1-r0","4.6.2-r0","4.8-r0","4.8.1-r0","4.8.2-r0","4.8.2-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2019-3902.json"}},{"package":{"name":"mercurial","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/mercurial?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.9-r0"}]}],"versions":["1.4.1-r0","1.4.2-r0","1.4.3-r0","1.5-r0","1.5.1-r0","1.5.1-r1","1.5.2-r0","1.5.3-r0","1.5.4-r0","1.6-r0","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.7-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.8-r0","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.9-r0","1.9.1-r0","1.9.2-r0","1.9.3-r0","2.0-r0","2.0.1-r0","2.0.2-r0","2.1-r0","2.1.1-r0","2.1.2-r0","2.2.1-r0","2.2.2-r0","2.2.3-r0","2.3-r0","2.3.1-r0","2.3.2-r0","2.4-r0","2.4.1-r0","2.4.2-r0","2.5.1-r0","2.5.2-r0","2.5.4-r0","2.6-r0","2.6.1-r0","2.6.2-r0","2.6.3-r0","2.7-r0","2.7.1-r0","2.7.2-r0","2.8-r0","2.8.1-r0","2.8.2-r0","2.9-r0","2.9.1-r0","2.9.2-r0","3.0-r0","3.0.2-r0","3.1-r0","3.1.1-r0","3.2.1-r0","3.2.2-r0","3.2.3-r0","3.3-r0","3.3.3-r0","3.4-r0","3.4.1-r0","3.4.2-r0","3.5-r0","3.5.1-r0","3.5.2-r0","3.6.2-r0","3.7.1-r0","3.7.2-r0","3.7.3-r0","3.8.1-r0","3.8.2-r0","3.8.3-r0","3.9-r0","3.9-r1","3.9.1-r0","4.0.1-r0","4.1-r0","4.1.1-r0","4.1.2-r0","4.1.3-r0","4.2.1-r0","4.2.2-r0","4.3.1-r0","4.3.2-r0","4.3.3-r0","4.4-r0","4.4.1-r0","4.4.2-r0","4.5-r0","4.5.2-r0","4.5.3-r0","4.6-r0","4.6.1-r0","4.6.2-r0","4.8-r0","4.8.1-r0","4.8.2-r0","4.8.2-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2019-3902.json"}},{"package":{"name":"mercurial","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/mercurial?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.9-r0"}]}],"versions":["1.4.1-r0","1.4.2-r0","1.4.3-r0","1.5-r0","1.5.1-r0","1.5.1-r1","1.5.2-r0","1.5.3-r0","1.5.4-r0","1.6-r0","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.7-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.8-r0","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.9-r0","1.9.1-r0","1.9.2-r0","1.9.3-r0","2.0-r0","2.0.1-r0","2.0.2-r0","2.1-r0","2.1.1-r0","2.1.2-r0","2.2.1-r0","2.2.2-r0","2.2.3-r0","2.3-r0","2.3.1-r0","2.3.2-r0","2.4-r0","2.4.1-r0","2.4.2-r0","2.5.1-r0","2.5.2-r0","2.5.4-r0","2.6-r0","2.6.1-r0","2.6.2-r0","2.6.3-r0","2.7-r0","2.7.1-r0","2.7.2-r0","2.8-r0","2.8.1-r0","2.8.2-r0","2.9-r0","2.9.1-r0","2.9.2-r0","3.0-r0","3.0.2-r0","3.1-r0","3.1.1-r0","3.2.1-r0","3.2.2-r0","3.2.3-r0","3.3-r0","3.3.3-r0","3.4-r0","3.4.1-r0","3.4.2-r0","3.5-r0","3.5.1-r0","3.5.2-r0","3.6.2-r0","3.7.1-r0","3.7.2-r0","3.7.3-r0","3.8.1-r0","3.8.2-r0","3.8.3-r0","3.9-r0","3.9-r1","3.9.1-r0","4.0.1-r0","4.1-r0","4.1.1-r0","4.1.2-r0","4.1.3-r0","4.2.1-r0","4.2.2-r0","4.3.1-r0","4.3.2-r0","4.3.3-r0","4.4-r0","4.4.1-r0","4.4.2-r0","4.5-r0","4.5.2-r0","4.5.3-r0","4.6-r0","4.6.1-r0","4.6.2-r0","4.8-r0","4.8.1-r0","4.8.2-r0","4.8.2-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2019-3902.json"}},{"package":{"name":"mercurial","ecosystem":"Alpine:v3.7","purl":"pkg:apk/alpine/mercurial?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.2-r1"}]}],"versions":["1.4.1-r0","1.4.2-r0","1.4.3-r0","1.5-r0","1.5.1-r0","1.5.1-r1","1.5.2-r0","1.5.3-r0","1.5.4-r0","1.6-r0","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.7-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.8-r0","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.9-r0","1.9.1-r0","1.9.2-r0","1.9.3-r0","2.0-r0","2.0.1-r0","2.0.2-r0","2.1-r0","2.1.1-r0","2.1.2-r0","2.2.1-r0","2.2.2-r0","2.2.3-r0","2.3-r0","2.3.1-r0","2.3.2-r0","2.4-r0","2.4.1-r0","2.4.2-r0","2.5.1-r0","2.5.2-r0","2.5.4-r0","2.6-r0","2.6.1-r0","2.6.2-r0","2.6.3-r0","2.7-r0","2.7.1-r0","2.7.2-r0","2.8-r0","2.8.1-r0","2.8.2-r0","2.9-r0","2.9.1-r0","2.9.2-r0","3.0-r0","3.0.2-r0","3.1-r0","3.1.1-r0","3.2.1-r0","3.2.2-r0","3.2.3-r0","3.3-r0","3.3.3-r0","3.4-r0","3.4.1-r0","3.4.2-r0","3.5-r0","3.5.1-r0","3.5.2-r0","3.6.2-r0","3.7.1-r0","3.7.2-r0","3.7.3-r0","3.8.1-r0","3.8.2-r0","3.8.3-r0","3.9-r0","3.9-r1","3.9.1-r0","4.0.1-r0","4.1-r0","4.1.1-r0","4.1.2-r0","4.1.3-r0","4.2.1-r0","4.2.2-r0","4.3.1-r0","4.3.2-r0","4.3.3-r0","4.4-r0","4.4.1-r0","4.5.2-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2019-3902.json"}},{"package":{"name":"mercurial","ecosystem":"Alpine:v3.8","purl":"pkg:apk/alpine/mercurial?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.6.1-r1"}]}],"versions":["1.4.1-r0","1.4.2-r0","1.4.3-r0","1.5-r0","1.5.1-r0","1.5.1-r1","1.5.2-r0","1.5.3-r0","1.5.4-r0","1.6-r0","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.7-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.8-r0","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.9-r0","1.9.1-r0","1.9.2-r0","1.9.3-r0","2.0-r0","2.0.1-r0","2.0.2-r0","2.1-r0","2.1.1-r0","2.1.2-r0","2.2.1-r0","2.2.2-r0","2.2.3-r0","2.3-r0","2.3.1-r0","2.3.2-r0","2.4-r0","2.4.1-r0","2.4.2-r0","2.5.1-r0","2.5.2-r0","2.5.4-r0","2.6-r0","2.6.1-r0","2.6.2-r0","2.6.3-r0","2.7-r0","2.7.1-r0","2.7.2-r0","2.8-r0","2.8.1-r0","2.8.2-r0","2.9-r0","2.9.1-r0","2.9.2-r0","3.0-r0","3.0.2-r0","3.1-r0","3.1.1-r0","3.2.1-r0","3.2.2-r0","3.2.3-r0","3.3-r0","3.3.3-r0","3.4-r0","3.4.1-r0","3.4.2-r0","3.5-r0","3.5.1-r0","3.5.2-r0","3.6.2-r0","3.7.1-r0","3.7.2-r0","3.7.3-r0","3.8.1-r0","3.8.2-r0","3.8.3-r0","3.9-r0","3.9-r1","3.9.1-r0","4.0.1-r0","4.1-r0","4.1.1-r0","4.1.2-r0","4.1.3-r0","4.2.1-r0","4.2.2-r0","4.3.1-r0","4.3.2-r0","4.3.3-r0","4.4-r0","4.4.1-r0","4.4.2-r0","4.5-r0","4.5.2-r0","4.5.3-r0","4.6-r0","4.6.1-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2019-3902.json"}},{"package":{"name":"mercurial","ecosystem":"Alpine:v3.9","purl":"pkg:apk/alpine/mercurial?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.9-r0"}]}],"versions":["1.4.1-r0","1.4.2-r0","1.4.3-r0","1.5-r0","1.5.1-r0","1.5.1-r1","1.5.2-r0","1.5.3-r0","1.5.4-r0","1.6-r0","1.6.2-r0","1.6.3-r0","1.6.4-r0","1.7-r0","1.7.1-r0","1.7.2-r0","1.7.3-r0","1.7.5-r0","1.8-r0","1.8.1-r0","1.8.2-r0","1.8.3-r0","1.8.4-r0","1.8.4-r1","1.9-r0","1.9.1-r0","1.9.2-r0","1.9.3-r0","2.0-r0","2.0.1-r0","2.0.2-r0","2.1-r0","2.1.1-r0","2.1.2-r0","2.2.1-r0","2.2.2-r0","2.2.3-r0","2.3-r0","2.3.1-r0","2.3.2-r0","2.4-r0","2.4.1-r0","2.4.2-r0","2.5.1-r0","2.5.2-r0","2.5.4-r0","2.6-r0","2.6.1-r0","2.6.2-r0","2.6.3-r0","2.7-r0","2.7.1-r0","2.7.2-r0","2.8-r0","2.8.1-r0","2.8.2-r0","2.9-r0","2.9.1-r0","2.9.2-r0","3.0-r0","3.0.2-r0","3.1-r0","3.1.1-r0","3.2.1-r0","3.2.2-r0","3.2.3-r0","3.3-r0","3.3.3-r0","3.4-r0","3.4.1-r0","3.4.2-r0","3.5-r0","3.5.1-r0","3.5.2-r0","3.6.2-r0","3.7.1-r0","3.7.2-r0","3.7.3-r0","3.8.1-r0","3.8.2-r0","3.8.3-r0","3.9-r0","3.9-r1","3.9.1-r0","4.0.1-r0","4.1-r0","4.1.1-r0","4.1.2-r0","4.1.3-r0","4.2.1-r0","4.2.2-r0","4.3.1-r0","4.3.2-r0","4.3.3-r0","4.4-r0","4.4.1-r0","4.4.2-r0","4.5-r0","4.5.2-r0","4.5.3-r0","4.6-r0","4.6.1-r0","4.6.2-r0","4.8-r0","4.8.1-r0","4.8.2-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2019-3902.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}