Skip to content
Heist/ feed
Back to feed
MediumFix available

libmspack — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2018-18586

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

Products
libmspack
Affected versions
Not specified
Fixed versions
0.8_alpha-r0
CVEs
CVE-2018-18586
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 22:10 UTC · Revision 1

Source evidence

ALPINE-CVE-2018-18586

core-osv · Original source

Published 23 Oct 2018, 02:29 UTC

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

osv:ALPINE-CVE-2018-18586

libmspack

Fixed versions: 0.8_alpha-r0

libmspack

Fixed versions: 0.8_alpha-r0

libmspack

Fixed versions: 0.8_alpha-r0

libmspack

Fixed versions: 0.8_alpha-r0

libmspack

Fixed versions: 0.8_alpha-r0

libmspack

Fixed versions: 0.8_alpha-r0

Complete source record
{
  "id": "724c436340ec4095379a61e8dcd2fcb3e0738352fd9d6acf6238d67e272d2c6c",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2018-18586",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2018-18586",
    "summary": "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",
    "evidence": "osv:ALPINE-CVE-2018-18586",
    "products": [
      {
        "name": {
          "value": "libmspack",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.8_alpha-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libmspack",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.8_alpha-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libmspack",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.8_alpha-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libmspack",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.8_alpha-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libmspack",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.8_alpha-r0",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libmspack",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.8_alpha-r0",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "ALPINE-CVE-2018-18586",
      "aliases": [
        "ALPINE-CVE-2018-18586"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.8_alpha-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmspack",
            "purl": "pkg:apk/alpine/libmspack?arch=source",
            "ecosystem": "Alpine:v3.10"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-18586.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.8_alpha-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmspack",
            "purl": "pkg:apk/alpine/libmspack?arch=source",
            "ecosystem": "Alpine:v3.11"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-18586.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.8_alpha-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmspack",
            "purl": "pkg:apk/alpine/libmspack?arch=source",
            "ecosystem": "Alpine:v3.6"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-18586.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.8_alpha-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmspack",
            "purl": "pkg:apk/alpine/libmspack?arch=source",
            "ecosystem": "Alpine:v3.7"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-18586.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.8_alpha-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmspack",
            "purl": "pkg:apk/alpine/libmspack?arch=source",
            "ecosystem": "Alpine:v3.8"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-18586.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.8_alpha-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "libmspack",
            "purl": "pkg:apk/alpine/libmspack?arch=source",
            "ecosystem": "Alpine:v3.9"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-18586.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-23T17:23:45.531601455Z",
      "provider": "osv",
      "upstream": [
        "CVE-2018-18586"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2018-18586"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2018-18586",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 415795,
  "published_at": "2018-10-23T02:29:00.7+00:00"
}