{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-18586 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2018-18586 is a medium-severity path traversal vulnerability in n/a, published on 23 Oct 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-18586 and fix it if it is affected.\n\nWhat it is: CVE-2018-18586 is a medium-severity path traversal vulnerability in n/a, published on 23 Oct 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-18586 in the wild and no public exploit code.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-18586/ (Markdown: https://insights.sbomify.com/CVE-2018-18586/index.md)","id":"CVE-2018-18586","markdown":"https://insights.sbomify.com/CVE-2018-18586/index.md","name":"CVE-2018-18586","record":{"aliases":["ALPINE-CVE-2018-18586","DEBIAN-CVE-2018-18586","GHSA-jcvf-2rhc-m6h8","SUSE-SU-2022:0069-1","SUSE-SU-2022:0069-2","SUSE-SU-2022:4287-1","openSUSE-SU-2022:0069-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"libmspack sample program","requires_auth":"none","summary":"The chmextract sample program in libmspack allows directory traversal via malicious CHM files, enabling unauthorized file access or modification.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"libmspack","vendor":"kyzer"}],"cvss":{"score":5.3,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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","ecosystems":["SUSE:Linux Enterprise Micro 5.0","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Real Time 15 SP2","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Software Development Kit 12 SP5","openSUSE:Leap 15.3"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Path traversal in n/a","id":"CVE-2018-18586","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2018"},"n_packages":8,"n_references":4,"next":{"headline":"Weak cryptography in n/a","id":"CVE-2018-18587"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Micro 5.0","fixed":["0.6-3.14.1"],"introduced":["0"],"last_affected":[],"package":"libmspack","purl":"pkg:rpm/suse/libmspack\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.0","source":"SUSE-SU-2022:0069-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["0.6-3.14.1"],"introduced":["0"],"last_affected":[],"package":"libmspack","purl":"pkg:rpm/suse/libmspack\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2022:0069-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","fixed":["0.6-3.14.1"],"introduced":["0"],"last_affected":[],"package":"libmspack","purl":"pkg:rpm/suse/libmspack\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3","source":"SUSE-SU-2022:0069-1"},{"ecosystem":"SUSE:Linux Enterprise Real Time 15 SP2","fixed":["0.6-3.14.1"],"introduced":["0"],"last_affected":[],"package":"libmspack","purl":"pkg:rpm/suse/libmspack\u0026distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP2","source":"SUSE-SU-2022:0069-2"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["0.4-15.13.1"],"introduced":["0"],"last_affected":[],"package":"libmspack","purl":"pkg:rpm/suse/libmspack\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2022:4287-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["0.4-15.13.1"],"introduced":["0"],"last_affected":[],"package":"libmspack","purl":"pkg:rpm/suse/libmspack\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2022:4287-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["0.4-15.13.1"],"introduced":["0"],"last_affected":[],"package":"libmspack","purl":"pkg:rpm/suse/libmspack\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2022:4287-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["0.6-3.14.1"],"introduced":["0"],"last_affected":[],"package":"libmspack","purl":"pkg:rpm/opensuse/libmspack\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2022:0069-1"}],"prev":{"headline":"Null dereference in n/a","id":"CVE-2018-18585"},"products":["n/a"],"published":"2018-10-23","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"The chmextract sample program in libmspack allows directory traversal via malicious CHM files, enabling unauthorized file access or modification.","url":"https://insights.sbomify.com/CVE-2018-18586/"}