CVE-2018-18585

Source
https://cve.org/CVERecord?id=CVE-2018-18585
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-18585.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-18585
Downstream
Related
Published
2018-10-23T02:29:00.513Z
Modified
2026-02-16T10:12:58.386672Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L CVSS Calculator
Summary
[none]
Details

chmdreadheaders in mspack/chmd.c in libmspack before 0.8alpha accepts a filename that has '\0' as its first or second character (such as the "/\0" name).

References

Affected packages

Git / github.com/kyz/libmspack

Affected ranges

Type
GIT
Repo
https://github.com/kyz/libmspack
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*
1.7
v0.*
v0.0.20060920alpha
v0.3alpha
v0.4alpha
v0.5alpha
v0.6alpha
v0.7.1alpha
v0.7alpha
v1.*
v1.0
v1.1
v1.2
v1.3
v1.4
v1.5

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-18585.json"
vanir_signatures
[
    {
        "source": "https://github.com/kyz/libmspack/commit/8759da8db6ec9e866cb8eb143313f397f925bb4f",
        "digest": {
            "line_hashes": [
                "284170693861670192769649738077027374383",
                "328010522186380992829508643319645870295",
                "337185572412918404811406182571160109925",
                "311119288129859831691903272572458162229",
                "333854538769822575592451592026482133150",
                "137173230354041756601323120725473316269",
                "35069138540823503665903806403420112095",
                "298929599602399015466854119268521340890"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2018-18585-7863a9d1",
        "deprecated": false,
        "signature_type": "Line",
        "signature_version": "v1",
        "target": {
            "file": "libmspack/mspack/chmd.c"
        }
    },
    {
        "source": "https://github.com/kyz/libmspack/commit/8759da8db6ec9e866cb8eb143313f397f925bb4f",
        "digest": {
            "length": 6633.0,
            "function_hash": "65072954031163830704155016403856911861"
        },
        "id": "CVE-2018-18585-9f8a5e9c",
        "deprecated": false,
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "file": "libmspack/mspack/chmd.c",
            "function": "chmd_read_headers"
        }
    }
]