{"schemaVersion":3,"id":"CVE-2018-18586","aliases":["ALPINE-CVE-2018-18586","SUSE-SU-2022:0069-1","SUSE-SU-2022:0069-2","SUSE-SU-2022:4287-1","DEBIAN-CVE-2018-18586","openSUSE-SU-2022:0069-1"],"status":"published","duplicateOf":null,"title":null,"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","dates":{"published":"2018-10-23T02:00:00.000Z","modified":"2024-08-05T11:15:59.912Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Alpine","score":5.3,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":10,"impact":2.3,"computed":true}]},"epss":{"probability":0.03284,"percentile":0.88284,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.03284},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03011,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03284,"percentile":0.88284}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03011,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03284,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03284,"percentile":0.88284}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_KYZ_LIBMSPACK","name":"Libmspack","source":"github","url":"https://github.com/kyz/libmspack/commit/8759da8db6ec9e866cb8eb143313f397f925bb4f","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"alpine","product":"libmspack","name":"libmspack","label":"libmspack","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/libmspack","purlType":"apk","versions":[{"text":"< 0.8_alpha-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.8_alpha-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"libmspack","name":"libmspack","label":"libmspack","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libmspack","purlType":"deb","versions":[{"text":"< 0.8-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.8-1","eol":null,"hubHref":null},{"vendor":"kyzer","product":"libmspack","name":"libmspack","label":"libmspack","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"0.3:alpha","noFixRecorded":false,"fixedIn":null},{"text":"0.4:alpha","noFixRecorded":false,"fixedIn":null},{"text":"0.5:alpha","noFixRecorded":false,"fixedIn":null},{"text":"0.6:alpha","noFixRecorded":false,"fixedIn":null},{"text":"0.7:alpha","noFixRecorded":false,"fixedIn":null}],"versionsText":"0.3:alpha | 0.4:alpha | 0.5:alpha | 0.6:alpha | 0.7:alpha","eol":null,"hubHref":"/vendor/kyzer/libmspack"},{"vendor":"opensuse","product":"libmspack&distro=openSUSE Leap 15.3","name":"libmspack","label":"libmspack&distro=openSUSE Leap 15.3","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/libmspack&distro=openSUSE Leap 15.3","purlType":"rpm","versions":[{"text":"< 0.6-3.14.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6-3.14.1","eol":null,"hubHref":null},{"vendor":"suse","product":"libmspack&distro=SUSE Linux Enterprise Micro 5.0","name":"libmspack","label":"libmspack&distro=SUSE Linux Enterprise Micro 5.0","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/libmspack&distro=SUSE Linux Enterprise Micro 5.0","purlType":"rpm","versions":[{"text":"< 0.6-3.14.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6-3.14.1","eol":null,"hubHref":null},{"vendor":"suse","product":"libmspack&distro=SUSE Linux Enterprise Micro 5.1","name":"libmspack","label":"libmspack&distro=SUSE Linux Enterprise Micro 5.1","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/libmspack&distro=SUSE Linux Enterprise Micro 5.1","purlType":"rpm","versions":[{"text":"< 0.6-3.14.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6-3.14.1","eol":null,"hubHref":null},{"vendor":"suse","product":"libmspack&distro=SUSE Linux Enterprise Module for Basesystem 15 SP3","name":"libmspack","label":"libmspack&distro=SUSE Linux Enterprise Module for Basesystem 15 SP3","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/libmspack&distro=SUSE Linux Enterprise Module for Basesystem 15 SP3","purlType":"rpm","versions":[{"text":"< 0.6-3.14.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6-3.14.1","eol":null,"hubHref":null},{"vendor":"suse","product":"libmspack&distro=SUSE Linux Enterprise Real Time 15 SP2","name":"libmspack","label":"libmspack&distro=SUSE Linux Enterprise Real Time 15 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/libmspack&distro=SUSE Linux Enterprise Real Time 15 SP2","purlType":"rpm","versions":[{"text":"< 0.6-3.14.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6-3.14.1","eol":null,"hubHref":null},{"vendor":"suse","product":"libmspack&distro=SUSE Linux Enterprise Server 12 SP5","name":"libmspack","label":"libmspack&distro=SUSE Linux Enterprise Server 12 SP5","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/libmspack&distro=SUSE Linux Enterprise Server 12 SP5","purlType":"rpm","versions":[{"text":"< 0.4-15.13.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4-15.13.1","eol":null,"hubHref":null},{"vendor":"suse","product":"libmspack&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5","name":"libmspack","label":"libmspack&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/libmspack&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5","purlType":"rpm","versions":[{"text":"< 0.4-15.13.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4-15.13.1","eol":null,"hubHref":null},{"vendor":"suse","product":"libmspack&distro=SUSE Linux Enterprise Software Development Kit 12 SP5","name":"libmspack","label":"libmspack&distro=SUSE Linux Enterprise Software Development Kit 12 SP5","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/libmspack&distro=SUSE Linux Enterprise Software Development Kit 12 SP5","purlType":"rpm","versions":[{"text":"< 0.4-15.13.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4-15.13.1","eol":null,"hubHref":null}],"affectedCount":11,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/kyz/libmspack/commit/7cadd489698be117c47efcadd742651594429e6d","label":"github.com/kyz/libmspack/commit/7cadd489698be117c47efcadd742651594429e6d","hostname":"github.com","tags":["X Refsource MISC","Exploit","Vendor Advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2018/10/22/1","label":"www.openwall.com/lists/oss-security/2018/10/22/1","hostname":"www.openwall.com","tags":["X Refsource MISC","Mailing List","Third Party Advisory"]},{"url":"https://bugs.debian.org/911639","label":"bugs.debian.org/911639","hostname":"bugs.debian.org","tags":["X Refsource MISC","Mailing List","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/201903-20","label":"security.gentoo.org/glsa/201903-20","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-18586","label":"security.alpinelinux.org/vuln/CVE-2018-18586","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20220069-1/","label":"www.suse.com/support/update/announcement/2022/suse-su-20220069-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1113040","label":"bugzilla.suse.com/1113040","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2018-18586","label":"www.suse.com/security/cve/CVE-2018-18586","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20220069-2/","label":"www.suse.com/support/update/announcement/2022/suse-su-20220069-2/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20224287-1/","label":"www.suse.com/support/update/announcement/2022/suse-su-20224287-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-18586","label":"security-tracker.debian.org/tracker/CVE-2018-18586","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/IRYD4Y2CDUYSBVQUIDXTTBL6H6XYW54G/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2018-0455"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-10-23T02:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T11:15:59.912Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T02:54:58.290Z","stale":false,"partial":false}}