CVE-2018-18586
What it is
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
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 3.3% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 3.3% in the next 30 days (EPSS).
- Severity: 5.3 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 3.3% · EPSS, next 30 days
- Weakness
- CWE-22 · Path traversal
- Record status
- Modified
Affected
- Kyzer Libmspack 0.3
- Kyzer Libmspack 0.4
- Kyzer Libmspack 0.5
- Kyzer Libmspack 0.6
- Kyzer Libmspack 0.7
Attack profile CVSS 3.0 · 5.3
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Raw vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2018-18586.md and follow it. Check whether this project is affected by CVE-2018-18586. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/kyz/libmspack/commit/7cadd489698be117c47efcadd742651594429e6d
- https://github.com/kyz/libmspack/commit/7cadd489698be117c47efcadd742651594429e6d
References
- https://bugs.debian.org/911639
- https://github.com/kyz/libmspack/commit/7cadd489698be117c47efcadd742651594429e6d
- https://security.gentoo.org/glsa/201903-20
- https://www.openwall.com/lists/oss-security/2018/10/22/1
- https://bugs.debian.org/911639
- https://github.com/kyz/libmspack/commit/7cadd489698be117c47efcadd742651594429e6d
- https://security.gentoo.org/glsa/201903-20
- https://www.openwall.com/lists/oss-security/2018/10/22/1