CVE-2018-18585

Source
https://cve.org/CVERecord?id=CVE-2018-18585
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18585.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-18585
Downstream
ALPINE (1)
DEBIAN (1)
MGASA (1)
openSUSE (1)
RHSA (1)
SUSE (3)
UBUNTU (1)
Related
Published
2018-10-23T02:29:00Z
Modified
2026-07-08T14:15:00Z
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

chmd_read_headers 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).

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:18.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "12.04"
                },
                {
                    "last_affected":  "12.04"
                },
                {
                    "introduced":  "14.04"
                },
                {
                    "last_affected":  "14.04"
                },
                {
                    "introduced":  "16.04"
                },
                {
                    "last_affected":  "16.04"
                },
                {
                    "introduced":  "18.04"
                },
                {
                    "last_affected":  "18.04"
                },
                {
                    "introduced":  "18.10"
                },
                {
                    "last_affected":  "18.10"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "canonical:ubuntu_linux"
        },
        {
            "cpes":  [
                "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "8.0"
                },
                {
                    "last_affected":  "8.0"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "debian:debian_linux"
        },
        {
            "cpes":  [
                "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "7.0"
                },
                {
                    "last_affected":  "7.0"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "redhat:enterprise_linux_desktop"
        },
        {
            "cpes":  [
                "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "7.0"
                },
                {
                    "last_affected":  "7.0"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "redhat:enterprise_linux_server"
        },
        {
            "cpes":  [
                "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "7.0"
                },
                {
                    "last_affected":  "7.0"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "redhat:enterprise_linux_workstation"
        },
        {
            "cpes":  [
                "cpe:2.3:o:suse:linux_enterprise_server:11:sp3:*:*:ltss:*:*:*",
                "cpe:2.3:o:suse:linux_enterprise_server:12:ga:*:*:ltss:*:*:*",
                "cpe:2.3:o:suse:linux_enterprise_server:12:sp1:*:*:ltss:*:*:*",
                "cpe:2.3:o:suse:linux_enterprise_server:12:sp2:*:*:ltss:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "11-sp3"
                },
                {
                    "last_affected":  "11-sp3"
                },
                {
                    "introduced":  "12-ga"
                },
                {
                    "last_affected":  "12-ga"
                },
                {
                    "introduced":  "12-sp1"
                },
                {
                    "last_affected":  "12-sp1"
                },
                {
                    "introduced":  "12-sp2"
                },
                {
                    "last_affected":  "12-sp2"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "suse:linux_enterprise_server"
        }
    ]
}
References

Affected packages

Git / github.com/kyz/libmspack

Affected ranges

Type
GIT
Repo
https://github.com/kyz/libmspack
Events
Database specific
Show details
{
    "cpe":  [
        "cpe:2.3:a:kyzer:libmspack:0.3:alpha:*:*:*:*:*:*",
        "cpe:2.3:a:kyzer:libmspack:0.4:alpha:*:*:*:*:*:*",
        "cpe:2.3:a:kyzer:libmspack:0.5:alpha:*:*:*:*:*:*",
        "cpe:2.3:a:kyzer:libmspack:0.6:alpha:*:*:*:*:*:*",
        "cpe:2.3:a:kyzer:libmspack:0.7:alpha:*:*:*:*:*:*"
    ],
    "extracted_events":  [
        {
            "introduced":  "0.3-alpha"
        },
        {
            "last_affected":  "0.3-alpha"
        },
        {
            "introduced":  "0.4-alpha"
        },
        {
            "last_affected":  "0.4-alpha"
        },
        {
            "introduced":  "0.5-alpha"
        },
        {
            "last_affected":  "0.5-alpha"
        },
        {
            "introduced":  "0.6-alpha"
        },
        {
            "last_affected":  "0.6-alpha"
        },
        {
            "introduced":  "0.7-alpha"
        },
        {
            "last_affected":  "0.7-alpha"
        }
    ],
    "source":  [
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

0.*
0.3-alpha
0.4-alpha
0.5-alpha
0.6-alpha
0.7-alpha
1.*
1.7
v0.*
v0.3alpha
v0.4alpha
v0.5alpha
v0.6alpha
v0.7.1alpha
v0.7alpha
v1.*
v1.4
v1.5

Database specific

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