{"id":"CVE-2018-1002206","aliases":["CVE-2018-1002206","GHSA-fxh6-w476-hgr4","SNYK-DOTNET-SHARPCOMPRESS-60246"],"related":[],"kind":"vulnerability","state":"published","title":"Directory Traversal in SharpCompress","summary":"SharpCompress before 0.21.0 is vulnerable to directory traversal, allowing attackers to write to arbitrary files via a ../ (dot dot slash) in a Zip archive entry that is mishandled during extraction. This vulnerability is also known as 'Zip-Slip'.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SharpCompress before 0.21.0 is vulnerable to directory traversal, allowing attackers to write to arbitrary files via a ../ (dot dot slash) in a Zip archive entry that is mishandled during extraction. This vulnerability is also known as 'Zip-Slip'.","source":"cvelist"},{"lang":"en","text":"SharpCompress prior to version 0.21 is vulnerable to path traversal issue in archive extraction.","format":"markdown","source":"ghsa"},{"lang":"es","text":"SharpCompress en versiones anteriores a la 0.21.0 es vulnerable a un salto de directorio, lo que permite que los atacantes escriban en archivos arbitrarios mediante un ../ (punto punto barra) en una entrada de archivo Zip que se gestiona de manera incorrecta durante la extracción. Esta vulnerabilidad también se conoce como \"Zip-Slip\".","source":"nvd"}],"published":"2018-07-25T17:00:00.000Z","modified":"2026-09-10T03:48:44.565Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.21.0","status":"affected"}],"vendor":"SharpCompress","product":"SharpCompress","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.21.0"}],"ecosystem":"NuGet","package":"SharpCompress","purl":"pkg:nuget/SharpCompress","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.21.0"}],"vendor":"adamhathcock","product":"sharpcompress","cpe":"cpe:2.3:a:adamhathcock:sharpcompress:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/research/zip-slip-vulnerability","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/snyk/zip-slip-vulnerability","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/adamhathcock/sharpcompress/pull/374","tags":["issue-tracking","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6","tags":["issue-tracking","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1002206","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/adamhathcock/sharpcompress/commit/80ceb1c375fdb1b4ffba16528c99089e804ce61f","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2018-1002206","url":"https://www.cve.org/CVERecord?id=CVE-2018-1002206","licence":"CVE Terms of Use","modified":"2024-09-17T03:29:09.493Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fxh6-w476-hgr4","url":"https://github.com/advisories/GHSA-fxh6-w476-hgr4","licence":"CC-BY-4.0","modified":"2026-09-10T03:48:44.565Z"},{"source":"nvd","name":"NVD","id":"CVE-2018-1002206","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1002206","licence":"Public domain","modified":"2026-06-17T01:33:21.880Z"}],"updatedAt":"2026-11-25T22:57:39.086Z","epss":{"score":0.09332,"percentile":0.96129,"date":"2026-11-30T12:00:22.000Z"}}