{"id":"CVE-2018-17983","aliases":["DEBIAN-CVE-2018-17983","EUVD-2018-0098","GHSA-p575-cf9h-wv42","MGASA-2018-0442","PYSEC-2018-91","SUSE-SU-2018:3430-1","UBUNTU-CVE-2018-17983","USN-5102-1","USN-5102-2","openSUSE-SU-2024:10586-1"],"status":"published","title":"Mercurial Out-of-bounds Read vulnerability","description":"cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.","severity":{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.02007,"percentile":0.81001,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2018-10-04T23:00:00Z","modified":"2026-10-23T18:03:55Z","fixes":[{"ecosystem":"PyPI","package":"mercurial","fixed_in":["4.7.2"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"mercurial","fixed_in":["4.7.2-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"mercurial","fixed_in":["4.7.2-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"mercurial","fixed_in":["4.7.2-1"],"sources":["osv"]},{"ecosystem":"Mageia:6","package":"mercurial","fixed_in":["4.7.2-1.mga6"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15","package":"mercurial","fixed_in":["4.5.2-3.6.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"mercurial","fixed_in":["4.5.3-1ubuntu2.2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.2-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.2-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.2-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.2"}]}],"versions":["0.8.1","0.9","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","1.0","1.0.1","1.0.2","1.1","1.1.1","1.1.2","1.2","1.2.1","1.3","1.3.1","1.4","1.4.1","1.4.2","1.4.3","1.5","1.5.1","1.5.2","1.5.3","1.5.4","1.6","1.6.1","1.6.2","1.6.3","1.6.4","1.7","1.7.1","1.7.2","1.7.3","1.7.5","1.8","1.8.1","1.8.2","1.8.3","1.8.4","1.9","1.9.1","1.9.2","1.9.3","2.0","2.0.1","2.0.2","2.1","2.1.1","2.1.2","2.2","2.2.2","2.3","2.4.1","2.5","2.5.1","2.5.2","2.6","2.6.1","2.6.2","2.6.3","2.7.0","2.7.1","2.7.2","2.8","2.8.1","2.8.2","2.9","2.9.1","3.0","3.0.1","3.1","3.1.1","3.1.2","3.2","3.2.1","3.2.2","3.2.3","3.2.4","3.3","3.3-rc","3.3.1","3.3.2","3.3.3","3.4","3.4-rc","3.4.1","3.4.2","3.5","3.5-rc","3.5.1","3.5.2","3.6","3.6-rc","3.6.1","3.6.2","3.6.3","3.7","3.7-rc","3.7.1","3.7.2","3.7.3","3.8","3.8-rc","3.8.1","3.8.2","3.8.3","3.8.4","3.9","3.9-rc","3.9.1","3.9.2","4.0","4.0-rc","4.0.1","4.0.2","4.1","4.1-rc","4.1.1","4.1.2","4.1.3","4.2","4.2-rc","4.2.1","4.2.2","4.2.3","4.3","4.3-rc","4.3.1","4.3.2","4.3.3","4.3rc0","4.4","4.4-rc","4.4.1","4.4.2","4.4rc0","4.5","4.5-rc","4.5.1","4.5.2","4.5.3","4.5rc0","4.6","4.6.1","4.6.2","4.6rc0","4.6rc1","4.7","4.7.1","4.7rc0"]},{"source":"osv","ecosystem":"Mageia:6","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.2-1.mga6"}]}]},{"source":"osv","ecosystem":"PyPI","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.2"}]}],"versions":["0.8.1","0.9","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","1.0","1.0.1","1.0.2","1.1","1.1.1","1.1.2","1.2","1.2.1","1.3","1.3.1","1.4","1.4.1","1.4.2","1.4.3","1.5","1.5.1","1.5.2","1.5.3","1.5.4","1.6","1.6.1","1.6.2","1.6.3","1.6.4","1.7","1.7.1","1.7.2","1.7.3","1.7.5","1.8","1.8.1","1.8.2","1.8.3","1.8.4","1.9","1.9.1","1.9.2","1.9.3","2.0","2.0.1","2.0.2","2.1","2.1.1","2.1.2","2.2","2.2.2","2.3","2.4.1","2.5","2.5.1","2.5.2","2.6","2.6.1","2.6.2","2.6.3","2.7.0","2.7.1","2.7.2","2.8","2.8.1","2.8.2","2.9","2.9.1","3.0","3.0.1","3.1","3.1.1","3.1.2","3.2","3.2.1","3.2.2","3.2.3","3.2.4","3.3","3.3-rc","3.3.1","3.3.2","3.3.3","3.4","3.4-rc","3.4.1","3.4.2","3.5","3.5-rc","3.5.1","3.5.2","3.6","3.6-rc","3.6.1","3.6.2","3.6.3","3.7","3.7-rc","3.7.1","3.7.2","3.7.3","3.8","3.8-rc","3.8.1","3.8.2","3.8.3","3.8.4","3.9","3.9-rc","3.9.1","3.9.2","4.0","4.0-rc","4.0.1","4.0.2","4.1","4.1-rc","4.1.1","4.1.2","4.1.3","4.2","4.2-rc","4.2.1","4.2.2","4.2.3","4.3","4.3-rc","4.3.1","4.3.2","4.3.3","4.3rc0","4.4","4.4-rc","4.4.1","4.4.2","4.4rc0","4.5","4.5-rc","4.5.1","4.5.2","4.5.3","4.5rc0","4.6","4.6.1","4.6.2","4.6rc0","4.6rc1","4.7","4.7.1","4.7rc0"]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.2-3.6.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"mercurial","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"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"mercurial","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"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"mercurial","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"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"mercurial","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"],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"mercurial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.9.1-2.1"}]}],"bundled":9}],"products":[{"vendor":"mercurial","product":"mercurial"}],"references":[{"url":"https://www.mercurial-scm.org/repo/hg/rev/5405cb1a7901","tags":["x_refsource_MISC","x_transferred","Patch","fix","web","report"]},{"url":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.7.2_.282018-10-01.29","tags":["x_refsource_MISC","x_transferred","Release Notes","advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-17983","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-91.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-p575-cf9h-wv42","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-17983","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2018-0442.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=23763","tags":["report"]},{"url":"https://lists.opensuse.org/opensuse-updates/2018-10/msg00212.html","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20183430-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1110899","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2018-17983","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2018-17983","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5102-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-17983","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5102-2","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-3902","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2008-2942","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-1000115","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-1000116","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-17458","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-1000132","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-13346","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-13348","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-3902","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-17983","description":"cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.","status":"published","published":"2018-10-04T23:00:00Z","modified":"2024-08-05T11:01:14.786Z","updated_at":"2026-11-02T14:35:07.354449Z"}],"euvd":[{"id":"EUVD-2018-0098","description":"cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.","status":"published","published":"2018-10-04T23:00:00Z","modified":"2024-08-05T11:01:14Z","updated_at":"2026-11-03T02:39:37.172177Z"}],"ghsa":[{"id":"GHSA-p575-cf9h-wv42","title":"Mercurial Out-of-bounds Read vulnerability","description":"`cext/manifest.c` in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.","status":"published","published":"2022-05-14T01:49:39Z","modified":"2024-09-24T20:45:44Z","cvss":[{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"},{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:38:06.29677Z"}],"nvd":[{"id":"CVE-2018-17983","description":"cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.","status":"published","published":"2018-10-04T23:29:00.417Z","modified":"2026-06-17T01:46:38.7Z","cvss":[{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:04:42.52179Z"}],"osv":[{"id":"CVE-2018-17983","description":"cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.","status":"published","published":"2018-10-04T23:29:00.417Z","modified":"2026-04-16T06:16:52.322546132Z","cvss":[{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:08.834469Z"},{"id":"DEBIAN-CVE-2018-17983","description":"cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.","status":"published","published":"2018-10-04T23:29:00.417Z","modified":"2026-10-23T18:03:55.645528466Z","cvss":[{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:30.57382Z"},{"id":"GHSA-p575-cf9h-wv42","title":"Mercurial Out-of-bounds Read vulnerability","description":"`cext/manifest.c` in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.","status":"published","published":"2022-05-14T01:49:39Z","modified":"2024-09-24T21:01:32.725834Z","cvss":[{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"},{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T15:46:52.534897Z"},{"id":"UBUNTU-CVE-2018-17983","description":"cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.","status":"published","published":"2018-10-04T23:29:00Z","modified":"2026-03-14T02:02:22.160748Z","cvss":[{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:17.496046Z"},{"id":"MGASA-2018-0442","title":"Updated mercurial packages fix security vulnerability","description":"An out-of-bounds read during parsing of a malformed manifest entry\n(CVE-2018-17983).\n","status":"published","published":"2018-11-11T21:09:54Z","modified":"2026-04-16T06:22:39.523780243Z","updated_at":"2026-11-02T15:49:40.793816Z"},{"id":"openSUSE-SU-2024:10586-1","title":"mercurial-5.9.1-2.1 on GA media","description":"These are all security issues fixed in the mercurial-5.9.1-2.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:48:28.818841Z","updated_at":"2026-11-02T16:58:34.487567Z"},{"id":"PYSEC-2018-91","description":"cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.","status":"published","published":"2018-10-04T23:29:00Z","modified":"2026-06-10T17:01:24.129646652Z","updated_at":"2026-11-02T15:52:52.192131Z"},{"id":"SUSE-SU-2018:3430-1","title":"Security update for mercurial","description":"This update for mercurial fixes the following issues:\n\n- CVE-2018-17983: Fix an out-of-bounds read during parsing of a malformed manifest entry (bsc#1110899).\n","status":"published","published":"2018-10-25T09:43:15Z","modified":"2026-02-04T03:52:30.146487Z","updated_at":"2026-11-02T15:53:45.378228Z"},{"id":"USN-5102-1","title":"mercurial vulnerabilities","description":"It was discovered that Mercurial mishandled symlinks in subrepositories. An\nattacker could use this issue to write arbitrary files to the\ntarget’s filesystem. (CVE-2019-3902)\n\nIt was discovered that Mercurial incorrectly handled certain manifest files.\nAn attacker could use this issue to cause a denial of service and possibly\nexecute arbitrary code. (CVE-2018-17983)\n\n","status":"published","published":"2021-10-04T17:25:49Z","modified":"2026-02-10T04:42:20Z","updated_at":"2026-11-02T16:58:15.683829Z"},{"id":"USN-5102-2","title":"mercurial vulnerabilities","description":"USN-5102-1 fixed vulnerabilities in Mercurial. This update provides the\ncorresponding updates for Ubuntu 14.04 ESM and Ubuntu 16.04 ESM.\n\nOriginal advisory details:\n\n It was discovered that Mercurial mishandled symlinks in subrepositories. An\n attacker could use this issue to write arbitrary files to the\n target’s filesystem. (CVE-2019-3902)\n\n It was discovered that Mercurial incorrectly handled certain manifest files.\n An attacker could use this issue to cause a denial of service and possibly\n execute arbitrary code. This issue only affected Ubuntu 16.04 ESM. (CVE-2018-17983)\n","status":"published","published":"2021-03-16T20:09:04Z","modified":"2026-06-29T13:49:33.966328831Z","updated_at":"2026-11-02T16:58:15.683829Z"}]}}
