CVE-2018-18586 Path traversal in n/a
The chmextract sample program in libmspack allows directory traversal via malicious CHM files, enabling unauthorized file access or modification.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-18586?
CVE-2018-18586 is a medium-severity path traversal vulnerability in n/a, published on 23 Oct 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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
Weakness: CWE-22
Which versions are affected by CVE-2018-18586?
It affects 1 product.
Linux distribution packages (8)
libmspack SUSE:Linux Enterprise Micro 5.0 | All versions | 0.6-3.14.1 |
libmspack SUSE:Linux Enterprise Micro 5.1 | All versions | 0.6-3.14.1 |
libmspack SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 0.6-3.14.1 |
libmspack SUSE:Linux Enterprise Real Time 15 SP2 | All versions | 0.6-3.14.1 |
libmspack SUSE:Linux Enterprise Server 12 SP5 | All versions | 0.4-15.13.1 |
libmspack SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 0.4-15.13.1 |
libmspack SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 0.4-15.13.1 |
libmspack openSUSE:Leap 15.3 | All versions | 0.6-3.14.1 |
Products include Kyzer Libmspack.
How do I fix CVE-2018-18586?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2018-18586 being exploited?
There is no known exploitation of CVE-2018-18586 in the wild and no public exploit code.
Sources
Also known as ALPINE-CVE-2018-18586, DEBIAN-CVE-2018-18586, GHSA-jcvf-2rhc-m6h8, SUSE-SU-2022:0069-1, SUSE-SU-2022:0069-2, SUSE-SU-2022:4287-1 and 1 more.