CVE-2018-18585
chmd_read_headers in mspack/chmd.c in libmspack before 0.8alpha accepts a filename that has '\0'...
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
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 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L - CVSS 2.0
- 4.3 Medium
AV: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
libmspackAlpine:v3.10 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.11 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.12 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.13 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.14 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.15 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.16 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.17 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.18 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.19 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
Show 38 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libmspackAlpine:v3.20 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.21 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.22 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.23 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.24 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.6 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.7 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.8 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackAlpine:v3.9 |
before 0.8_alpha-r0 | 0.8_alpha-r0 |
libmspackDebian:12 |
before 0.8-1 | 0.8-1 |
libmspackDebian:13 |
before 0.8-1 | 0.8-1 |
libmspackDebian:14 |
before 0.8-1 | 0.8-1 |
libmspackDebian:8 |
before 0.5-1+deb8u3, plus listed versions 0.5-10.5-1+deb8u10.5-1+deb8u2 |
0.5-1+deb8u3 |
libmspackMageia:6 |
before 0.9.1-0.alpha.1.mga6 | 0.9.1-0.alpha.1.mga6 |
cabextractMageia:6 |
before 1.9-1.mga6 | 1.9-1.mga6 |
libmspackRed Hat:enterprise_linux:7::client |
before 0:0.5-0.7.alpha.el7 | 0:0.5-0.7.alpha.el7 |
libmspack-debuginfoRed Hat:enterprise_linux:7::client |
before 0:0.5-0.7.alpha.el7 | 0:0.5-0.7.alpha.el7 |
libmspack-develRed Hat:enterprise_linux:7::client |
before 0:0.5-0.7.alpha.el7 | 0:0.5-0.7.alpha.el7 |
libmspackRed Hat:enterprise_linux:7::computenode |
before 0:0.5-0.7.alpha.el7 | 0:0.5-0.7.alpha.el7 |
libmspack-debuginfoRed Hat:enterprise_linux:7::computenode |
before 0:0.5-0.7.alpha.el7 | 0:0.5-0.7.alpha.el7 |
libmspack-develRed Hat:enterprise_linux:7::computenode |
before 0:0.5-0.7.alpha.el7 | 0:0.5-0.7.alpha.el7 |
libmspackRed Hat:enterprise_linux:7::server |
before 0:0.5-0.7.alpha.el7 | 0:0.5-0.7.alpha.el7 |
libmspack-debuginfoRed Hat:enterprise_linux:7::server |
before 0:0.5-0.7.alpha.el7 | 0:0.5-0.7.alpha.el7 |
libmspack-develRed Hat:enterprise_linux:7::server |
before 0:0.5-0.7.alpha.el7 | 0:0.5-0.7.alpha.el7 |
libmspackRed Hat:enterprise_linux:7::workstation |
before 0:0.5-0.7.alpha.el7 | 0:0.5-0.7.alpha.el7 |
libmspack-debuginfoRed Hat:enterprise_linux:7::workstation |
before 0:0.5-0.7.alpha.el7 | 0:0.5-0.7.alpha.el7 |
libmspack-develRed Hat:enterprise_linux:7::workstation |
before 0:0.5-0.7.alpha.el7 | 0:0.5-0.7.alpha.el7 |
libmspackSUSE:Linux Enterprise Module for Basesystem 15 |
before 0.6-3.3.11 | 0.6-3.3.11 |
libmspackSUSE:Linux Enterprise Software Development Kit 11 SP4 |
before 0.0.20060920alpha-74.11.6.1 | 0.0.20060920alpha-74.11.6.1 |
libmspackSUSE:Linux Enterprise Server 11 SP4 |
before 0.0.20060920alpha-74.11.6.1 | 0.0.20060920alpha-74.11.6.1 |
libmspackSUSE:Linux Enterprise Server for SAP Applications 11 SP4 |
before 0.0.20060920alpha-74.11.6.1 | 0.0.20060920alpha-74.11.6.1 |
libmspackSUSE:Linux Enterprise Software Development Kit 12 SP5 |
before 0.4-15.7.1 | 0.4-15.7.1 |
libmspackSUSE:Linux Enterprise Server 12 SP5 |
before 0.4-15.7.1 | 0.4-15.7.1 |
libmspackSUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 0.4-15.7.1 | 0.4-15.7.1 |
clamavUbuntu: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 less0.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 |
libmspackUbuntu: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 |
libmspackUbuntu: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 |
libmspackUbuntu:18.04:LTS |
before 0.6-3ubuntu0.2, plus listed versions 0.6-30.6-3ubuntu0.1 |
0.6-3ubuntu0.2 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | affected | OSV |
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
usn.ubuntu.com/3814-3
usn.ubuntu.com/3814-1
usn.ubuntu.com/3814-2
github.com/kyz/libmspack/commit/8759da8db6ec9e866cb8eb143313f397f925bb4f
openwall.com/lists/oss-security/2018/10/22/1
lists.debian.org/debian-lts-announce/2018/10/msg00017.html
Show 52 moreShow less
bugs.debian.org/911637
security.gentoo.org/glsa/201903-20
access.redhat.com/errata/RHSA-2019:2049
starwindsoftware.com/security/sw-20181213-0002
nvd.nist.gov/vuln/detail/CVE-2018-18585
access.redhat.com/security/cve/cve-2018-18585
tools.cisco.com/security/center/viewAlert.x?alertId=59134
suse.com/security/cve/CVE-2018-18585
github.com/advisories/GHSA-wfp6-c53g-9x25
security.alpinelinux.org/vuln/CVE-2018-18585
security-tracker.debian.org/tracker/CVE-2018-18585
advisories.mageia.org/MGASA-2018-0455.html
bugs.mageia.org/show_bug.cgi?id=23365
usn.ubuntu.com/3728-1
openwall.com/lists/oss-security/2018/10/23/11
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.7_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=1644214
bugzilla.redhat.com/show_bug.cgi?id=1644215
security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_2049.json
access.redhat.com/security/cve/CVE-2018-18584
cve.org/CVERecord?id=CVE-2018-18584
nvd.nist.gov/vuln/detail/CVE-2018-18584
access.redhat.com/security/cve/CVE-2018-18585
cve.org/CVERecord?id=CVE-2018-18585
suse.com/support/update/announcement/2019/suse-su-20190748-1
bugzilla.suse.com/1113038
bugzilla.suse.com/1113039
suse.com/security/cve/CVE-2018-18584
suse.com/support/update/announcement/2019/suse-su-201913992-1
suse.com/support/update/announcement/2020/suse-su-20202711-1
bugzilla.suse.com/1130489
bugzilla.suse.com/1141680
suse.com/security/cve/CVE-2019-1010305
ubuntu.com/security/CVE-2018-18585
ubuntu.com/security/notices/USN-3814-1
ubuntu.com/security/notices/USN-3814-2
ubuntu.com/security/notices/USN-3814-3
ubuntu.com/security/notices/USN-7788-1
ubuntu.com/security/CVE-2018-18584
ubuntu.com/security/CVE-2015-4467
ubuntu.com/security/CVE-2015-4468
ubuntu.com/security/CVE-2015-4469
ubuntu.com/security/CVE-2015-4472
ubuntu.com/security/CVE-2017-6419
ubuntu.com/security/CVE-2017-11423
ubuntu.com/security/CVE-2018-14679
ubuntu.com/security/CVE-2018-14680
ubuntu.com/security/CVE-2018-14681
ubuntu.com/security/CVE-2018-14682
ubuntu.com/security/CVE-2019-1010305
suse.com/security/cve/CVE-2018-18586