{"id":"CVE-2018-6198","aliases":["ALPINE-CVE-2018-6198","DEBIAN-CVE-2018-6198","EUVD-2018-17959","GHSA-gvrg-2xvq-7j38","MGASA-2018-0312","SUSE-SU-2019:0776-1","UBUNTU-CVE-2018-6198","USN-3555-1","openSUSE-SU-2024:11504-1"],"status":"published","title":"w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is...","description":"w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is unwritable, which allows a local attacker to craft a symlink attack to overwrite arbitrary files.","severity":{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00395,"percentile":0.33933,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-59"],"published":"2018-01-24T00:00:00Z","modified":"2026-11-03T06:31:30Z","fixes":[{"ecosystem":"Alpine:v3.10","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.11","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.12","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"w3m","fixed_in":["0.5.3_git20241203-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"w3m","fixed_in":["0.5.3_git20241203-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"w3m","fixed_in":["0.5.3_git20241203-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.8","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.9","package":"w3m","fixed_in":["0.5.3.20180125-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"w3m","fixed_in":["0.5.3-36"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"w3m","fixed_in":["0.5.3-36"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"w3m","fixed_in":["0.5.3-36"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"w3m","fixed_in":["0.5.3-15ubuntu0.2"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"w3m","fixed_in":["0.5.3-26ubuntu0.2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.10","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.11","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.12","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3_git20241203-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3_git20241203-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3_git20241203-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.8","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.9","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.20180125-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3-36"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3-36"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3-36"}]}]},{"source":"osv","ecosystem":"Mageia:5","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3-13.git20180520.0.mga5"}]}],"bundled":3},{"source":"osv","ecosystem":"Mageia:6","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3-13.git20180520.0.mga6"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP3","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.git20161120-161.3.4"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP4","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.git20161120-161.3.4"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.git20161120-161.3.4"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.git20161120-161.3.4"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP4","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.git20161120-161.3.4"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP4","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3.git20161120-161.3.4"}]}],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3-15ubuntu0.2"}]}],"versions":["0.5.3-11","0.5.3-12","0.5.3-13","0.5.3-15","0.5.3-15ubuntu0.1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3-26ubuntu0.2"}]}],"versions":["0.5.3-24","0.5.3-25","0.5.3-26","0.5.3-26build1","0.5.3-26ubuntu0.1"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3-15ubuntu0.2"}]}],"versions":["0.5.3-11","0.5.3-12","0.5.3-13","0.5.3-15","0.5.3-15ubuntu0.1"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3-26ubuntu0.2"}]}],"versions":["0.5.3-24","0.5.3-25","0.5.3-26","0.5.3-26build1","0.5.3-26ubuntu0.1"],"bundled":3},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"w3m","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.3+git20180125-1.14"}]}],"bundled":4}],"products":[{"vendor":"canonical","product":"ubuntu_linux"},{"vendor":"tats","product":"w3m"}],"references":[{"url":"https://bugs.debian.org/888097","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","report"]},{"url":"https://usn.ubuntu.com/3555-2/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory"]},{"url":"https://usn.ubuntu.com/3555-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/tats/w3m/commit/18dcbadf2771cdb0c18509b14e4e73505b242753","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://salsa.debian.org/debian/w3m/commit/18dcbadf2771cdb0c18509b14e4e73505b242753","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"http://www.securityfocus.com/bid/102855","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00028.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-6198"},{"url":"https://github.com/advisories/GHSA-gvrg-2xvq-7j38"},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-6198","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-6198","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2018-0312.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=22504","tags":["report"]},{"url":"https://www.suse.com/support/update/announcement/2019/suse-su-20190776-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1077559","tags":["report"]},{"url":"https://bugzilla.suse.com/1077568","tags":["report"]},{"url":"https://bugzilla.suse.com/1077572","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2018-6196","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-6197","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-6198","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2018-6198","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3555-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/notices/USN-3555-2","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-6198","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-6196","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-6197","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2006-6772","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-6198","description":"w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is unwritable, which allows a local attacker to craft a symlink attack to overwrite arbitrary files.","status":"published","published":"2018-01-25T03:00:00Z","modified":"2024-08-05T05:54:53.173Z","updated_at":"2026-11-02T14:35:05.961936Z"}],"euvd":[{"id":"EUVD-2018-17959","description":"w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is unwritable, which allows a local attacker to craft a symlink attack to overwrite arbitrary files.","status":"published","published":"2018-01-25T03:00:00Z","modified":"2024-08-05T05:54:53Z","updated_at":"2026-11-03T02:40:08.595407Z"}],"ghsa":[{"id":"GHSA-gvrg-2xvq-7j38","title":"w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is...","description":"w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is unwritable, which allows a local attacker to craft a symlink attack to overwrite arbitrary files.","status":"published","published":"2022-05-13T01:53:03Z","modified":"2023-02-02T05:02:09Z","cvss":[{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T14:51:22.324244Z"}],"nvd":[{"id":"CVE-2018-6198","description":"w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is unwritable, which allows a local attacker to craft a symlink attack to overwrite arbitrary files.","status":"published","published":"2018-01-25T03:29:00.697Z","modified":"2026-06-17T02:01:29.94Z","cvss":[{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":3.3,"vector":"AV:L/AC:M/Au:N/C:N/I:P/A:P","level":"low","assessor":"primary"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T14:04:22.897995Z"}],"osv":[{"id":"ALPINE-CVE-2018-6198","description":"w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is unwritable, which allows a local attacker to craft a symlink attack to overwrite arbitrary files.","status":"published","published":"2018-01-25T03:29:00.697Z","modified":"2026-11-03T06:31:30.241085581Z","cvss":[{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-03T07:18:23.800469Z"},{"id":"CVE-2018-6198","description":"w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is unwritable, which allows a local attacker to craft a symlink attack to overwrite arbitrary files.","status":"published","published":"2018-01-25T03:29:00.697Z","modified":"2026-10-20T13:40:05.458166722Z","cvss":[{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:09.74357Z"},{"id":"DEBIAN-CVE-2018-6198","description":"w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is unwritable, which allows a local attacker to craft a symlink attack to overwrite arbitrary files.","status":"published","published":"2018-01-25T03:29:00.697Z","modified":"2026-10-23T18:03:07.967241677Z","cvss":[{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:30.867575Z"},{"id":"UBUNTU-CVE-2018-6198","description":"w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is unwritable, which allows a local attacker to craft a symlink attack to overwrite arbitrary files.","status":"published","published":"2018-01-24T00:00:00Z","modified":"2026-02-04T04:24:43.303725Z","cvss":[{"version":"3.0","score":4.7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:18.772093Z"},{"id":"MGASA-2018-0312","title":"Updated w3m packages fix security vulnerability","description":"It was discovered that w3m incorrectly handled certain inputs. An attacker\ncould possibly use this to cause a denial of service (CVE-2018-6196,\nCVE-2018-6197).\n\nIt was discovered that w3m incorrectly handled temporary files. An attacker\ncould possibly use this to overwrite arbitrary files (CVE-2018-6198).\n","status":"published","published":"2018-07-11T21:47:08Z","modified":"2026-04-16T06:26:10.289232819Z","updated_at":"2026-11-02T15:49:40.793816Z"},{"id":"openSUSE-SU-2024:11504-1","title":"w3m-0.5.3+git20180125-1.14 on GA media","description":"These are all security issues fixed in the w3m-0.5.3+git20180125-1.14 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:26:58.138458Z","updated_at":"2026-11-02T16:58:35.195147Z"},{"id":"SUSE-SU-2019:0776-1","title":"Security update for w3m","description":"This update for w3m fixes several issues.\n\nThese security issues were fixed:\n\n- CVE-2018-6196: Prevent infinite recursion in HTMLlineproc0 caused by the feed_table_block_tag function which did not prevent a negative indent value (bsc#1077559)\n- CVE-2018-6197: Prevent NULL pointer dereference in formUpdateBuffer (bsc#1077568)\n- CVE-2018-6198: w3m did not properly handle temporary files when the ~/.w3m directory is unwritable, which allowed a local attacker to craft a symlink attack to overwrite arbitrary files (bsc#1077572)\n","status":"published","published":"2019-03-27T10:39:30Z","modified":"2026-02-04T03:06:44.765405Z","updated_at":"2026-11-02T15:53:45.926331Z"},{"id":"USN-3555-1","title":"w3m vulnerabilities","description":"It was discovered that w3m incorrectly handled certain inputs.\nAn attacker could possibly use this to cause a denial of service.\n(CVE-2018-6196, CVE-2018-6197)\n\nIt was discovered that w3m incorrectly handled temporary files.\nAn attacker could possibly use this to overwrite arbitrary files.\n(CVE-2018-6198)\n","status":"published","published":"2018-02-01T13:25:30Z","modified":"2026-02-10T04:41:16Z","updated_at":"2026-11-02T16:58:13.496563Z"}]}}
