{"id":"CVE-2018-18585","details":"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).","modified":"2026-04-16T06:20:52.223870695Z","published":"2018-10-23T02:29:00.513Z","related":["SUSE-SU-2019:0748-1","SUSE-SU-2019:13992-1","SUSE-SU-2020:2711-1","openSUSE-SU-2024:13619-1"],"references":[{"type":"ADVISORY","url":"https://usn.ubuntu.com/3814-1/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3814-3/"},{"type":"ADVISORY","url":"https://www.starwindsoftware.com/security/sw-20181213-0002/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:2049"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/10/msg00017.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201903-20"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3814-2/"},{"type":"REPORT","url":"https://bugs.debian.org/911637"},{"type":"FIX","url":"https://www.openwall.com/lists/oss-security/2018/10/22/1"},{"type":"EVIDENCE","url":"https://github.com/kyz/libmspack/commit/8759da8db6ec9e866cb8eb143313f397f925bb4f"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/kyz/libmspack","events":[{"introduced":"0"},{"last_affected":"a22627dd5180e0ce9c558d0c10b174c760085f57"},{"introduced":"0"},{"last_affected":"164fb2d23a0894b726b72a047d34191d64a18104"},{"introduced":"0"},{"last_affected":"03296dd44347ab3111ba23b8e3945e2b537b6275"},{"introduced":"0"},{"last_affected":"a2b36d2f477a183c046b66c731936fa56eba53b4"},{"introduced":"0"},{"last_affected":"bc1010b120a987de3da053ba61870fcbecfbd112"},{"fixed":"8759da8db6ec9e866cb8eb143313f397f925bb4f"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"0.3-alpha"},{"introduced":"0"},{"last_affected":"0.4-alpha"},{"introduced":"0"},{"last_affected":"0.5-alpha"},{"introduced":"0"},{"last_affected":"0.6-alpha"},{"introduced":"0"},{"last_affected":"0.7-alpha"}]}}],"versions":["1.7","v0.0.20060920alpha","v0.3alpha","v0.4alpha","v0.5alpha","v0.6alpha","v0.7.1alpha","v0.7alpha","v1.0","v1.1","v1.2","v1.3","v1.4","v1.5"],"database_specific":{"vanir_signatures":[{"signature_type":"Line","target":{"file":"libmspack/mspack/chmd.c"},"digest":{"line_hashes":["284170693861670192769649738077027374383","328010522186380992829508643319645870295","337185572412918404811406182571160109925","311119288129859831691903272572458162229","333854538769822575592451592026482133150","137173230354041756601323120725473316269","35069138540823503665903806403420112095","298929599602399015466854119268521340890"],"threshold":0.9},"id":"CVE-2018-18585-7863a9d1","source":"https://github.com/kyz/libmspack/commit/8759da8db6ec9e866cb8eb143313f397f925bb4f","signature_version":"v1","deprecated":false},{"target":{"function":"chmd_read_headers","file":"libmspack/mspack/chmd.c"},"source":"https://github.com/kyz/libmspack/commit/8759da8db6ec9e866cb8eb143313f397f925bb4f","signature_type":"Function","id":"CVE-2018-18585-9f8a5e9c","digest":{"function_hash":"65072954031163830704155016403856911861","length":6633},"signature_version":"v1","deprecated":false}],"unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"7.0"}]},{"events":[{"introduced":"0"},{"last_affected":"7.0"}]},{"events":[{"introduced":"0"},{"last_affected":"7.0"}]},{"events":[{"introduced":"0"},{"last_affected":"12.04"}]},{"events":[{"introduced":"0"},{"last_affected":"14.04"}]},{"events":[{"introduced":"0"},{"last_affected":"16.04"}]},{"events":[{"introduced":"0"},{"last_affected":"18.04"}]},{"events":[{"introduced":"0"},{"last_affected":"18.10"}]},{"events":[{"introduced":"0"},{"last_affected":"11-sp3"}]},{"events":[{"introduced":"0"},{"last_affected":"12-ga"}]},{"events":[{"introduced":"0"},{"last_affected":"12-sp1"}]},{"events":[{"introduced":"0"},{"last_affected":"12-sp2"}]}],"vanir_signatures_modified":"2026-04-11T11:40:03Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18585.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"}]}