CVEfocus › CVE database › CVE-2018-18586

CVE-2018-18586

CVSS 5.3 MediumEPSS 3.3% (higher than 89% of CVEs)Published 2018-10-23Updated 2024-08-05Assigner: mitre

chmextract.c in the chmextract sample program, as distributed with libmspack before 0.8alpha, does not protect against absolute/relative pathnames in CHM files, leading to Directory Traversal. NOTE: the vendor disputes that this is a libmspack vulnerability, because chmextract.c was only intended as a source-code example, not a supported application

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

22Fixed
7Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04libmspackNot affected
vulnerable_code_not_present
Ubuntu 16.04clamavNot affected
vulnerable_code_not_present
Ubuntu 16.04libmspackNot affected
vulnerable_code_not_present
Debian 14libmspackFixed0.8-1DEBIAN-CVE-2018-18586
Debian 13libmspackFixed0.8-1DEBIAN-CVE-2018-18586
Debian 12libmspackFixed0.8-1DEBIAN-CVE-2018-18586
Red Hat Enterprise Linux 8libmspackNot affected
Red Hat Enterprise Linux 8libmspack-develNot affected
Red Hat Enterprise Linux 7libmspackNot affected
Red Hat Enterprise Linux 7libmspack-develNot affected
Alpine Linux 3.24libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.23libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.22libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.21libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.20libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.19libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.18libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.17libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.16libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.15libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.14libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.13libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.12libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.11libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.10libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.9libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.8libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.7libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586
Alpine Linux 3.6libmspackFixed0.8_alpha-r0ALPINE-CVE-2018-18586

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.