CVE-2018-6198

Source
https://cve.org/CVERecord?id=CVE-2018-6198
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-6198.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-6198
Downstream
Related
Published
2018-01-25T03:29:00Z
Modified
2026-10-20T13:40:05Z
Severity
  • 4.7 (Medium) CVSS_V3 - CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "12.04"
                        },
                        {
                            "last_affected":  "12.04"
                        },
                        {
                            "introduced":  "14.04"
                        },
                        {
                            "last_affected":  "14.04"
                        },
                        {
                            "introduced":  "16.04"
                        },
                        {
                            "last_affected":  "16.04"
                        },
                        {
                            "introduced":  "17.10"
                        },
                        {
                            "last_affected":  "17.10"
                        }
                    ],
                    "source":  "CPE_STRING"
                }
            ],
            "vendor_product":  "canonical:ubuntu_linux"
        }
    ]
}
References

Affected packages

Git / github.com/tats/w3m

Affected ranges

Type
GIT
Repo
https://github.com/tats/w3m
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last Affected
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "cpe":  "cpe:2.3:a:tats:w3m:*:*:*:*:*:*:*:*",
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "last_affected":  "0.5.3"
                }
            ],
            "source":  "CPE_RANGE"
        },
        {
            "range":  [
                {
                    "fixed":  "18dcbadf2771cdb0c18509b14e4e73505b242753"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

upstream/0.*
upstream/0.1.10+0.1.11pre+kokb23
upstream/0.3
upstream/0.5.1
upstream/0.5.2
upstream/0.5.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-6198.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "299411999929596845984512423028642050106",
            "length":  270
        },
        "id":  "CVE-2018-6198-021bacd2",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/tats/w3m/commit/18dcbadf2771cdb0c18509b14e4e73505b242753",
        "target":  {
            "file":  "main.c",
            "function":  "w3m_exit"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "261335769205805046566342251010716909920",
                "29612917787393137325208173903425113215",
                "42696203700645889651420809097333495824",
                "158834774318496427167418388532438585199"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2018-6198-0bd30630",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/tats/w3m/commit/18dcbadf2771cdb0c18509b14e4e73505b242753",
        "target":  {
            "file":  "rc.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "161548505075626386636758859966345807316",
            "length":  1470
        },
        "id":  "CVE-2018-6198-48c324d5",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/tats/w3m/commit/18dcbadf2771cdb0c18509b14e4e73505b242753",
        "target":  {
            "file":  "rc.c",
            "function":  "init_rc"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "132494528490069998977071967010022007597",
                "82022512250580956341022367886085022917",
                "332768501774124119740089642761057973044",
                "294366503126602925986443129707894292652"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2018-6198-827e47c9",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/tats/w3m/commit/18dcbadf2771cdb0c18509b14e4e73505b242753",
        "target":  {
            "file":  "main.c"
        }
    }
]
vanir_signatures_modified
"2026-10-20T13:40:05Z"