Every CVE Search/ Get API key

CVE-2018-18585

chmd_read_headers in mspack/chmd.c in libmspack before 0.8alpha accepts a filename that has '\0'...

4.3 MediumFix available

CVE-2018-18585 is a medium vulnerability (CVSS 4.3) in Kyzer Libmspack, published October 22, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.96%, the 87th percentile. Fixed in libmspack 0.8_alpha-r0.

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

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
Low

Exploit likelihood

2.96%Up 0.9 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 4.3

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

Record
CVE-2018-18585
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-476
Updated
2026-11-02
CVE List No score

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

Record
CVE-2018-18585
Updated
2026-11-02
EUVDEUVD-2018-10305 No score

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

Record
EUVD-2018-10305
Updated
2026-11-03
GitHub AdvisoriesGHSA-wfp6-c53g-9x25 4.3

chmd_read_headers in mspack/chmd.c in libmspack before 0.8alpha accepts a filename that has '\0'...

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

Record
GHSA-wfp6-c53g-9x25
CVSS 3.0
4.3 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Weakness
CWE-476
Updated
2026-11-02
OSVALPINE-CVE-2018-18585 4.3

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

Record
ALPINE-CVE-2018-18585
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Updated
2026-11-03
OSV 4.3

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

Record
CVE-2018-18585
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Updated
2026-11-02
Show 11 moreShow less
OSVDEBIAN-CVE-2018-18585 4.3

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

Record
DEBIAN-CVE-2018-18585
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Updated
2026-11-02
OSVRHSA-2019:2049 5.3

Red Hat Security Advisory: libmspack security update

Record
RHSA-2019:2049
CVSS 3.0
5.3 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVUBUNTU-CVE-2018-18585 4.3

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

Record
UBUNTU-CVE-2018-18585
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Updated
2026-11-02
OSVMGASA-2018-0455 No score

Updated libmspack/cabextract packages fix security vulnerabilities

Hanno Böck discovered that libmspack incorrectly handled certain CHM files. An attacker could possibly use this issue to cause a denial of service (CVE-2018-14679, CVE-2018-14680).

Jakub Wilk discovered that libmspack incorrectly handled certain KWAJ files. An attacker could possibly use this issue to execute arbitrary code (CVE-2018-14681).

Dmitry Glavatskikh discovered that libmspack incorrectly certain CHM files. An attacker could possibly use this issue to execute arbitrary code (CVE-2018-14682).

If a CAB file has a Quantum-compressed datablock with exactly 38912 compressed bytes, cabextract would write exactly one byte beyond its input buffer (CVE-2018-18584).

libmspack didn't reject blank CHM filenames that are blank because they have embedded null bytes, not just because they are zero-length (CVE-2018-18585).

chmextract didn't protect from absolute/relative pathnames in CHM files (CVE-2018-18586).

Record
MGASA-2018-0455
Updated
2026-11-02
OSVopenSUSE-SU-2024:13619-1 No score

libmspack-devel-0.11-2.1 on GA media

These are all security issues fixed in the libmspack-devel-0.11-2.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:13619-1
Updated
2026-11-02
OSVSUSE-SU-2019:0748-1 No score

Security update for libmspack

This update for libmspack fixes the following issues:

Security issues fixed:

  • CVE-2018-18584: The CAB block input buffer was one byte too small for the maximal Quantum block, leading to an out-of-bounds write. (bsc#1113038)
  • CVE-2018-18585: chmd_read_headers accepted a filename that has '\0' as its first or second character (such as the '/\0' name). (bsc#1113039)
  • Fix off-by-one bounds check on CHM PMGI/PMGL chunk numbers and reject empty filenames.
Record
SUSE-SU-2019:0748-1
Updated
2026-11-02
OSVSUSE-SU-2019:13992-1 No score

Security update for libmspack

This update for libmspack fixes the following issues:

Security issues fixed:

  • CVE-2018-18584: The CAB block input buffer was one byte too small for the maximal Quantum block, leading to an out-of-bounds write. (bsc#1113038)
  • CVE-2018-18585: chmd_read_headers accepted a filename that has '\0' as its first or second character (such as the '/\0' name). (bsc#1113039)
Record
SUSE-SU-2019:13992-1
Updated
2026-11-02
OSVSUSE-SU-2020:2711-1 No score

Security update for libmspack

This update for libmspack fixes the following issues:

Security issues fixed:

  • CVE-2019-1010305: Fixed a buffer overflow triggered by a crafted chm file which could have led to information disclosure (bsc#1141680).
  • CVE-2018-18584: The CAB block input buffer was one byte too small for the maximal Quantum block, leading to an out-of-bounds write. (bsc#1113038)
  • CVE-2018-18585: chmd_read_headers accepted a filename that has '\0' as its first or second character (such as the '/\0' name). (bsc#1113039)
  • Fix off-by-one bounds check on CHM PMGI/PMGL chunk numbers and reject empty filenames.
Record
SUSE-SU-2020:2711-1
Updated
2026-11-02
OSVUSN-3814-1 No score

libmspack vulnerabilities

It was discovered libmspack incorrectly handled certain malformed CAB files. A remote attacker could use this issue to cause libmspack to crash, resulting in a denial of service. (CVE-2018-18584, CVE-2018-18585)

Record
USN-3814-1
Updated
2026-11-02
OSVUSN-3814-2 No score

clamav vulnerabilities

Updated: 2018-11-21: The embedded version of libmspack in ClamAV was found to not be affected by the listed vulnerabilities, therefore the following is not applicable.

USN-3814-1 fixed several vulnerabilities in libmspack. In Ubuntu 14.04 libmspack is included into ClamAV. This update provides the corresponding update for Ubuntu 14.04 LTS.

Original advisory details:

It was discovered libmspack incorrectly handled certain malformed CAB files. A remote attacker could use this issue to cause libmspack to crash, resulting in a denial of service. (CVE-2018-18584, CVE-2018-18585)

Record
USN-3814-2
Updated
2026-11-02
OSVUSN-7788-1 No score

libmspack vulnerabilities

Jakub Wilk discovered that libmspack did not correctly handle certain integer operations and bounds checking. A remote attacker could possibly use this issue to cause a denial of service. (CVE-2015-4467, CVE-2015-4468, CVE-2015-4469, CVE-2015-4472)

It was discovered that libmspack incorrectly handled certain malformed CAB files. A remote attacker could use this issue to cause libmspack to crash, resulting in a denial of service. (CVE-2017-11423)

It was discovered that libmspack incorrectly handled certain malformed CHM files. A remote attacker could use this issue to cause libmspack to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2017-6419)

Hanno Böck discovered that libmspack incorrectly handled certain CHM files. An attacker could possibly use this issue to cause a denial of service. (CVE-2018-14679, CVE-2018-14680)

Jakub Wilk discovered that libmspack incorrectly handled certain KWAJ files. An attacker could possibly use this issue to execute arbitrary code. (CVE-2018-14681)

Dmitry Glavatskikh discovered that libmspack incorrectly handled certain CHM files. An attacker could possibly use this issue to execute arbitrary code. (CVE-2018-14682)

It was discovered libmspack incorrectly handled certain malformed CAB files. A remote attacker could use this issue to cause libmspack to crash, resulting in a denial of service. (CVE-2018-18585)

It was discovered that libmspack incorrectly handled certain CHM files. A remote attacker could possibly use this issue to access sensitive information. (CVE-2019-1010305)

Record
USN-7788-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libmspack
Alpine:v3.10
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.11
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.12
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.13
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.14
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.15
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.16
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.17
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.18
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.19
before 0.8_alpha-r0
0.8_alpha-r0
Show 38 moreShow less
Affected packages
PackageAffectedFixed
libmspack
Alpine:v3.20
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.21
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.22
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.23
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.24
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.6
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.7
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.8
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Alpine:v3.9
before 0.8_alpha-r0
0.8_alpha-r0
libmspack
Debian:12
before 0.8-1
0.8-1
libmspack
Debian:13
before 0.8-1
0.8-1
libmspack
Debian:14
before 0.8-1
0.8-1
libmspack
Debian:8
before 0.5-1+deb8u3, plus listed versions
0.5-10.5-1+deb8u10.5-1+deb8u2
0.5-1+deb8u3
libmspack
Mageia:6
before 0.9.1-0.alpha.1.mga6
0.9.1-0.alpha.1.mga6
cabextract
Mageia:6
before 1.9-1.mga6
1.9-1.mga6
libmspack
Red Hat:enterprise_linux:7::client
before 0:0.5-0.7.alpha.el7
0:0.5-0.7.alpha.el7
libmspack-debuginfo
Red Hat:enterprise_linux:7::client
before 0:0.5-0.7.alpha.el7
0:0.5-0.7.alpha.el7
libmspack-devel
Red Hat:enterprise_linux:7::client
before 0:0.5-0.7.alpha.el7
0:0.5-0.7.alpha.el7
libmspack
Red Hat:enterprise_linux:7::computenode
before 0:0.5-0.7.alpha.el7
0:0.5-0.7.alpha.el7
libmspack-debuginfo
Red Hat:enterprise_linux:7::computenode
before 0:0.5-0.7.alpha.el7
0:0.5-0.7.alpha.el7
libmspack-devel
Red Hat:enterprise_linux:7::computenode
before 0:0.5-0.7.alpha.el7
0:0.5-0.7.alpha.el7
libmspack
Red Hat:enterprise_linux:7::server
before 0:0.5-0.7.alpha.el7
0:0.5-0.7.alpha.el7
libmspack-debuginfo
Red Hat:enterprise_linux:7::server
before 0:0.5-0.7.alpha.el7
0:0.5-0.7.alpha.el7
libmspack-devel
Red Hat:enterprise_linux:7::server
before 0:0.5-0.7.alpha.el7
0:0.5-0.7.alpha.el7
libmspack
Red Hat:enterprise_linux:7::workstation
before 0:0.5-0.7.alpha.el7
0:0.5-0.7.alpha.el7
libmspack-debuginfo
Red Hat:enterprise_linux:7::workstation
before 0:0.5-0.7.alpha.el7
0:0.5-0.7.alpha.el7
libmspack-devel
Red Hat:enterprise_linux:7::workstation
before 0:0.5-0.7.alpha.el7
0:0.5-0.7.alpha.el7
libmspack
SUSE:Linux Enterprise Module for Basesystem 15
before 0.6-3.3.11
0.6-3.3.11
libmspack
SUSE:Linux Enterprise Software Development Kit 11 SP4
before 0.0.20060920alpha-74.11.6.1
0.0.20060920alpha-74.11.6.1
libmspack
SUSE:Linux Enterprise Server 11 SP4
before 0.0.20060920alpha-74.11.6.1
0.0.20060920alpha-74.11.6.1
libmspack
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
before 0.0.20060920alpha-74.11.6.1
0.0.20060920alpha-74.11.6.1
libmspack
SUSE:Linux Enterprise Software Development Kit 12 SP5
before 0.4-15.7.1
0.4-15.7.1
libmspack
SUSE:Linux Enterprise Server 12 SP5
before 0.4-15.7.1
0.4-15.7.1
libmspack
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 0.4-15.7.1
0.4-15.7.1
clamav
Ubuntu:14.04:LTS
before 0.100.2+dfsg-1ubuntu0.14.04.2, plus listed versions
0.97.8+dfsg-1ubuntu40.97.8+dfsg-1ubuntu50.98.1+dfsg-1ubuntu40.98.1+dfsg-1ubuntu50.98.1+dfsg-2ubuntu2
Show 14 moreShow less
0.98.1+dfsg-4ubuntu10.98.1+dfsg-4ubuntu1.10.98.5+addedllvm-0ubuntu0.14.04.10.98.6+dfsg-0ubuntu0.14.04.10.98.7+dfsg-0ubuntu0.14.04.10.99.2+addedllvm-0ubuntu0.14.04.10.99.2+addedllvm-0ubuntu0.14.04.20.99.3+addedllvm-0ubuntu0.14.04.10.99.4+addedllvm-0ubuntu0.14.04.10.100.1+dfsg-1ubuntu0.14.04.10.100.1+dfsg-1ubuntu0.14.04.20.100.1+dfsg-1ubuntu0.14.04.30.100.1+dfsg-1ubuntu0.14.04.40.100.2+dfsg-1ubuntu0.14.04.1
0.100.2+dfsg-1ubuntu0.14.04.2
libmspack
Ubuntu:Pro:14.04:LTS
before 0.4-1ubuntu0.1~esm2, plus listed versions
0.4-10.4-1ubuntu0.1~esm1
0.4-1ubuntu0.1~esm2
libmspack
Ubuntu:16.04:LTS
before 0.5-1ubuntu0.16.04.3, plus listed versions
0.5-10.5-1ubuntu0.16.04.10.5-1ubuntu0.16.04.2
0.5-1ubuntu0.16.04.3
libmspack
Ubuntu:18.04:LTS
before 0.6-3ubuntu0.2, plus listed versions
0.6-30.6-3ubuntu0.1
0.6-3ubuntu0.2

History

History
WhenChangedSources
2026-11-03affectedOSV
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV

References

Show 52 moreShow less
MoveEnter Open