Skip to content
Fencer Vulns
medium 4.3

CVE-2018-18585 json

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…

published 2018-10-23 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-10305

cvss
4.3
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.9%
EPSS 2.9% chance of exploitation in 30 days, percentile 87%
public exploits
0
none known

Summary

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

Patch / fix

  • libmspack Debian 14, Debian 13, Debian 12 0.8-1

debian advisories DEBIAN-CVE-2018-18585

  • clamav Ubuntu 14.04 LTS 0.100.2+dfsg-1ubuntu0.14.04.2
  • libmspack Ubuntu 16.04 LTS 0.5-1ubuntu0.16.04.3
  • libmspack Ubuntu 18.04 LTS 0.6-3ubuntu0.2
  • libmspack Ubuntu Pro 14.04 LTS 0.4-1ubuntu0.1~esm2

ubuntu advisories UBUNTU-CVE-2018-18585

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libmspack RHEL 7 0.5-0.7.alpha.el7

red hat advisories RHSA-2019:2049

  • libmspack SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 0.4-15.7.1
  • libmspack SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 0.0.20060920alpha-74.11.6.1
  • libmspack SLE Module for Basesystem 15 0.6-3.3.11

suse advisories SUSE-SU-2020:2711-1SUSE-SU-2019:13992-1SUSE-SU-2019:0748-1

  • libmspack Alpine 3.24, Alpine 3.23, Alpine 3.22 +16 more 0.8_alpha-r0

alpine advisories ALPINE-CVE-2018-18585

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-18585 updated cvss 3.3

libmspack: chmd_read_headers() fails to reject filenames containing NULL bytes

  • Red Hat Enterprise Linux Client (v. 7) libmspack 0.5-0.7.alpha.el7 Red Hat Enterprise Linux Client Optional (v. 7) libmspack-devel 0.5-0.7.alpha.el7, libmspack-debuginfo 0.5-0.7.alpha.el7 Red Hat Enterprise Linux ComputeNode (v. 7) libmspack 0.5-0.7.alpha.el7 Red Hat Enterprise Linux ComputeNode Optional (v. 7) libmspack-devel 0.5-0.7.alpha.el7, libmspack-debuginfo 0.5-0.7.alpha.el7 Red Hat Enterprise Linux Server (v. 7) libmspack 0.5-0.7.alpha.el7 Red Hat Enterprise Linux Server Optional (v. 7) libmspack 0.5-0.7.alpha.el7
    +2 more products
    Red Hat Enterprise Linux Workstation (v. 7) libmspack 0.5-0.7.alpha.el7 Red Hat Enterprise Linux Workstation Optional (v. 7) libmspack-devel 0.5-0.7.alpha.el7, libmspack-debuginfo 0.5-0.7.alpha.el7
    fixed: vendor fix RHSA-2019:2049
  • Red Hat Enterprise Linux 8 libmspack
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.94% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/kyz/libmspack/commit/8759da8db6ec9e866cb8eb143313f397f925bb4f referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 4.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.