CVE-2018-6198
w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
4.7
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.
- Record
CVE-2018-6198- CVSS 3.0
- 4.7 Medium
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N - CVSS 2.0
- 3.3 Low
AV:L/AC:M/Au:N/C:N/I:P/A:P - Weakness
- CWE-59
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-6198- Updated
- 2026-11-02
EUVDEUVD-2018-17959 No score
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.
- Record
EUVD-2018-17959- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-gvrg-2xvq-7j38
4.7
w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is...
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.
- Record
GHSA-gvrg-2xvq-7j38- CVSS 3.0
- 4.7 Medium
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-59
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-6198
4.7
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.
- Record
ALPINE-CVE-2018-6198- CVSS 3.0
- 4.7 Medium
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-03
OSV
4.7
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.
- Record
CVE-2018-6198- CVSS 3.0
- 4.7 Medium
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
Show 6 moreShow less
OSVDEBIAN-CVE-2018-6198
4.7
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.
- Record
DEBIAN-CVE-2018-6198- CVSS 3.0
- 4.7 Medium
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-6198
4.7
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.
- Record
UBUNTU-CVE-2018-6198- CVSS 3.0
- 4.7 Medium
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVMGASA-2018-0312 No score
Updated w3m packages fix security vulnerability
It was discovered that w3m incorrectly handled certain inputs. An attacker could possibly use this to cause a denial of service (CVE-2018-6196, CVE-2018-6197).
It was discovered that w3m incorrectly handled temporary files. An attacker could possibly use this to overwrite arbitrary files (CVE-2018-6198).
- Record
MGASA-2018-0312- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11504-1 No score
w3m-0.5.3+git20180125-1.14 on GA media
These are all security issues fixed in the w3m-0.5.3+git20180125-1.14 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11504-1- Updated
- 2026-11-02
OSVSUSE-SU-2019:0776-1 No score
Security update for w3m
This update for w3m fixes several issues.
These security issues were fixed:
- 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)
- CVE-2018-6197: Prevent NULL pointer dereference in formUpdateBuffer (bsc#1077568)
- 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)
- Record
SUSE-SU-2019:0776-1- Updated
- 2026-11-02
OSVUSN-3555-1 No score
w3m vulnerabilities
It was discovered that w3m incorrectly handled certain inputs. An attacker could possibly use this to cause a denial of service. (CVE-2018-6196, CVE-2018-6197)
It was discovered that w3m incorrectly handled temporary files. An attacker could possibly use this to overwrite arbitrary files. (CVE-2018-6198)
- Record
USN-3555-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
w3mAlpine:v3.10 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
w3mAlpine:v3.11 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
w3mAlpine:v3.12 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
w3mAlpine:v3.13 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
w3mAlpine:v3.14 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
w3mAlpine:v3.15 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
w3mAlpine:v3.16 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
w3mAlpine:v3.17 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
w3mAlpine:v3.18 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
w3mAlpine:v3.19 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
Show 23 moreShow less
| Package | Affected | Fixed |
|---|---|---|
w3mAlpine:v3.20 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
w3mAlpine:v3.21 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
w3mAlpine:v3.22 |
before 0.5.3_git20241203-r0 | 0.5.3_git20241203-r0 |
w3mAlpine:v3.23 |
before 0.5.3_git20241203-r0 | 0.5.3_git20241203-r0 |
w3mAlpine:v3.24 |
before 0.5.3_git20241203-r0 | 0.5.3_git20241203-r0 |
w3mAlpine:v3.8 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
w3mAlpine:v3.9 |
before 0.5.3.20180125-r0 | 0.5.3.20180125-r0 |
w3mDebian:12 |
before 0.5.3-36 | 0.5.3-36 |
w3mDebian:13 |
before 0.5.3-36 | 0.5.3-36 |
w3mDebian:14 |
before 0.5.3-36 | 0.5.3-36 |
w3mMageia:5 From an advisory covering 3 CVEs |
before 0.5.3-13.git20180520.0.mga5 | 0.5.3-13.git20180520.0.mga5 |
w3mMageia:6 From an advisory covering 3 CVEs |
before 0.5.3-13.git20180520.0.mga6 | 0.5.3-13.git20180520.0.mga6 |
w3mSUSE:Linux Enterprise Desktop 12 SP3 From an advisory covering 3 CVEs |
before 0.5.3.git20161120-161.3.4 | 0.5.3.git20161120-161.3.4 |
w3mSUSE:Linux Enterprise Desktop 12 SP4 From an advisory covering 3 CVEs |
before 0.5.3.git20161120-161.3.4 | 0.5.3.git20161120-161.3.4 |
w3mSUSE:Linux Enterprise Server 12 SP3 From an advisory covering 3 CVEs |
before 0.5.3.git20161120-161.3.4 | 0.5.3.git20161120-161.3.4 |
w3mSUSE:Linux Enterprise Server for SAP Applications 12 SP3 From an advisory covering 3 CVEs |
before 0.5.3.git20161120-161.3.4 | 0.5.3.git20161120-161.3.4 |
w3mSUSE:Linux Enterprise Server 12 SP4 From an advisory covering 3 CVEs |
before 0.5.3.git20161120-161.3.4 | 0.5.3.git20161120-161.3.4 |
w3mSUSE:Linux Enterprise Server for SAP Applications 12 SP4 From an advisory covering 3 CVEs |
before 0.5.3.git20161120-161.3.4 | 0.5.3.git20161120-161.3.4 |
w3mUbuntu:14.04:LTS |
before 0.5.3-15ubuntu0.2, plus listed versions 0.5.3-110.5.3-120.5.3-130.5.3-150.5.3-15ubuntu0.1 |
0.5.3-15ubuntu0.2 |
w3mUbuntu:16.04:LTS |
before 0.5.3-26ubuntu0.2, plus listed versions 0.5.3-240.5.3-250.5.3-260.5.3-26build10.5.3-26ubuntu0.1 |
0.5.3-26ubuntu0.2 |
w3mUbuntu:14.04:LTS From an advisory covering 3 CVEs |
before 0.5.3-15ubuntu0.2, plus listed versions 0.5.3-110.5.3-120.5.3-130.5.3-150.5.3-15ubuntu0.1 |
0.5.3-15ubuntu0.2 |
w3mUbuntu:16.04:LTS From an advisory covering 3 CVEs |
before 0.5.3-26ubuntu0.2, plus listed versions 0.5.3-240.5.3-250.5.3-260.5.3-26build10.5.3-26ubuntu0.1 |
0.5.3-26ubuntu0.2 |
w3mopenSUSE:Tumbleweed From an advisory covering 4 CVEs |
before 0.5.3+git20180125-1.14 | 0.5.3+git20180125-1.14 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-6198 is a medium vulnerability (CVSS 4.7) in Tats W3m, published January 24, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.40%, the 33rd percentile. Fixed in w3m 0.5.3.20180125-r0.
References
bugs.debian.org/888097
usn.ubuntu.com/3555-2
usn.ubuntu.com/3555-1
github.com/tats/w3m/commit/18dcbadf2771cdb0c18509b14e4e73505b242753
salsa.debian.org/debian/w3m/commit/18dcbadf2771cdb0c18509b14e4e73505b242753
securityfocus.com/bid/102855
Show 21 moreShow less
lists.opensuse.org/opensuse-security-announce/2019-04/msg00028.html
nvd.nist.gov/vuln/detail/CVE-2018-6198
github.com/advisories/GHSA-gvrg-2xvq-7j38
security.alpinelinux.org/vuln/CVE-2018-6198
security-tracker.debian.org/tracker/CVE-2018-6198
advisories.mageia.org/MGASA-2018-0312.html
bugs.mageia.org/show_bug.cgi?id=22504
suse.com/support/update/announcement/2019/suse-su-20190776-1
bugzilla.suse.com/1077559
bugzilla.suse.com/1077568
bugzilla.suse.com/1077572
suse.com/security/cve/CVE-2018-6196
suse.com/security/cve/CVE-2018-6197
suse.com/security/cve/CVE-2018-6198
ubuntu.com/security/CVE-2018-6198
ubuntu.com/security/notices/USN-3555-1
ubuntu.com/security/notices/USN-3555-2
cve.org/CVERecord?id=CVE-2018-6198
ubuntu.com/security/CVE-2018-6196
ubuntu.com/security/CVE-2018-6197
suse.com/security/cve/CVE-2006-6772