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:00.697Z
Modified
2026-07-08T16:41:04.787851Z
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": [
        {
            "extracted_events": [
                {
                    "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",
            "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:*:*:*:*:*:*:*"
            ]
        }
    ]
}
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
{
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:tats:w3m:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.5.3"
        }
    ]
}

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
v0.*
v0.5.3+debian-19
v0.5.3+git20150203
v0.5.3+git20150509
v0.5.3+git20150623
v0.5.3+git20150720
v0.5.3+git20150811
v0.5.3+git20151010
v0.5.3+git20151119
v0.5.3+git20160228
v0.5.3+git20160511
v0.5.3+git20160718
v0.5.3+git20161009
v0.5.3+git20161031
v0.5.3+git20161120
v0.5.3+git20170102

Database specific

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