Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-18585

chmd_read_headers in mspack/chmd.c in libmspack before 0.8alpha accepts a filename that has '\0' as its first or second character (such as the "/\0" name).

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-18585
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:13 UTC · Revision 1

Source evidence

CVE-2018-18585

core-osv · Original source

Published 23 Oct 2018, 02:29 UTC

chmd_read_headers in mspack/chmd.c in libmspack before 0.8alpha accepts a filename that has '\0' as its first or second character (such as the "/\0" name).

osv:CVE-2018-18585
Complete source record
{
  "id": "fcd9aa20568f0296e834a71b4961e02ace33eac953795e61573c8a37c15867c6",
  "url": "https://osv.dev/vulnerability/CVE-2018-18585",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-18585",
    "summary": "chmd_read_headers in mspack/chmd.c in libmspack before 0.8alpha accepts a filename that has '\\0' as its first or second character (such as the \"/\\0\" name).",
    "evidence": "osv:CVE-2018-18585",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-18585",
      "aliases": [
        "CVE-2018-18585"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/kyz/libmspack",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a22627dd5180e0ce9c558d0c10b174c760085f57"
                },
                {
                  "last_affected": "bc1010b120a987de3da053ba61870fcbecfbd112"
                },
                {
                  "fixed": "8759da8db6ec9e866cb8eb143313f397f925bb4f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:kyzer:libmspack:0.3:alpha:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.3-alpha"
                      },
                      {
                        "last_affected": "0.3-alpha"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:kyzer:libmspack:0.4:alpha:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.4-alpha"
                      },
                      {
                        "last_affected": "0.4-alpha"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:kyzer:libmspack:0.5:alpha:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.5-alpha"
                      },
                      {
                        "last_affected": "0.5-alpha"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:kyzer:libmspack:0.6:alpha:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.6-alpha"
                      },
                      {
                        "last_affected": "0.6-alpha"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:kyzer:libmspack:0.7:alpha:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.7-alpha"
                      },
                      {
                        "last_affected": "0.7-alpha"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "8759da8db6ec9e866cb8eb143313f397f925bb4f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.3-alpha",
            "0.4-alpha",
            "0.5-alpha",
            "0.6-alpha",
            "0.7-alpha",
            "v0.7alpha",
            "v0.6alpha",
            "v1.5",
            "v0.5alpha",
            "v0.4alpha",
            "v1.4",
            "v0.3alpha"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18585.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-18585-7863a9d1",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "284170693861670192769649738077027374383",
                    "328010522186380992829508643319645870295",
                    "337185572412918404811406182571160109925",
                    "311119288129859831691903272572458162229",
                    "333854538769822575592451592026482133150",
                    "137173230354041756601323120725473316269",
                    "35069138540823503665903806403420112095",
                    "298929599602399015466854119268521340890"
                  ]
                },
                "source": "https://github.com/kyz/libmspack/commit/8759da8db6ec9e866cb8eb143313f397f925bb4f",
                "target": {
                  "file": "libmspack/mspack/chmd.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-18585-9f8a5e9c",
                "digest": {
                  "length": 6633,
                  "function_hash": "65072954031163830704155016403856911861"
                },
                "source": "https://github.com/kyz/libmspack/commit/8759da8db6ec9e866cb8eb143313f397f925bb4f",
                "target": {
                  "file": "libmspack/mspack/chmd.c",
                  "function": "chmd_read_headers"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:22:42Z"
          }
        }
      ],
      "modified": "2026-10-20T13:22:42.826511206Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/errata/RHSA-2019:2049",
        "https://lists.debian.org/debian-lts-announce/2018/10/msg00017.html",
        "https://security.gentoo.org/glsa/201903-20",
        "https://usn.ubuntu.com/3814-1/",
        "https://usn.ubuntu.com/3814-2/",
        "https://usn.ubuntu.com/3814-3/",
        "https://www.starwindsoftware.com/security/sw-20181213-0002/",
        "https://bugs.debian.org/911637",
        "https://www.openwall.com/lists/oss-security/2018/10/22/1",
        "https://github.com/kyz/libmspack/commit/8759da8db6ec9e866cb8eb143313f397f925bb4f"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "12.04"
                  },
                  {
                    "last_affected": "12.04"
                  },
                  {
                    "introduced": "14.04"
                  },
                  {
                    "last_affected": "14.04"
                  },
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  },
                  {
                    "introduced": "18.10"
                  },
                  {
                    "last_affected": "18.10"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_desktop",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_workstation",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:suse:linux_enterprise_server:11:sp3:*:*:ltss:*:*:*",
              "cpe:2.3:o:suse:linux_enterprise_server:12:ga:*:*:ltss:*:*:*",
              "cpe:2.3:o:suse:linux_enterprise_server:12:sp1:*:*:ltss:*:*:*",
              "cpe:2.3:o:suse:linux_enterprise_server:12:sp2:*:*:ltss:*:*:*"
            ],
            "vendor_product": "suse:linux_enterprise_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "11-sp3"
                  },
                  {
                    "last_affected": "11-sp3"
                  },
                  {
                    "introduced": "12-ga"
                  },
                  {
                    "last_affected": "12-ga"
                  },
                  {
                    "introduced": "12-sp1"
                  },
                  {
                    "last_affected": "12-sp1"
                  },
                  {
                    "introduced": "12-sp2"
                  },
                  {
                    "last_affected": "12-sp2"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-18585",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387585,
  "published_at": "2018-10-23T02:29:00.513+00:00"
}