{"api_version":"1","generated_at":"2026-07-08T20:22:30+00:00","cve":"CVE-2018-1002206","urls":{"html":"https://cve.report/CVE-2018-1002206","api":"https://cve.report/api/cve/CVE-2018-1002206.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-1002206","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-1002206"},"summary":{"title":"CVE-2018-1002206","description":"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'.","state":"PUBLISHED","assigner":"snyk","published_at":"2018-07-25 17:29:01","updated_at":"2026-06-05 03:10:18"},"problem_types":["CWE-22","CWE-22 CWE-22"],"metrics":[{"version":"3.0","source":"nvd@nist.gov","type":"Primary","score":"5.5","severity":"MEDIUM","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","data":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"4.3","severity":"","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","data":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","baseScore":4.3,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE"}}],"references":[{"url":"https://github.com/snyk/zip-slip-vulnerability","name":"https://github.com/snyk/zip-slip-vulnerability","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Third Party Advisory"],"title":"GitHub - snyk/zip-slip-vulnerability: Zip Slip Vulnerability (Arbitrary file write through archive extraction)","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6","name":"https://github.com/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Patch","Third Party Advisory"],"title":"Merge pull request #374 from odinn1984/feat/fail_on_outside_target_files · adamhathcock/sharpcompress@42b1205 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://snyk.io/research/zip-slip-vulnerability","name":"https://snyk.io/research/zip-slip-vulnerability","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Third Party Advisory"],"title":"Zip Slip Vulnerability | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/adamhathcock/sharpcompress/pull/374","name":"https://github.com/adamhathcock/sharpcompress/pull/374","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Patch","Third Party Advisory"],"title":"fix: prevent extracting archived files outside of target path by odinn1984 · Pull Request #374 · adamhathcock/sharpcompress · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://snyk.io/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246","name":"https://snyk.io/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Third Party Advisory"],"title":"Arbitrary File Write via Archive Extraction (Zip Slip) in sharpcompress | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-1002206","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1002206","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"SharpCompress","product":"SharpCompress","version":"affected unspecified 0.21.0 custom","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2018","cve_id":"1002206","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"adamhathcock","cpe5":"sharpcompress","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2018","cve_id":"1002206","cve":"CVE-2018-1002206","epss":"0.025040000","percentile":"0.856430000","score_date":"2026-06-09","updated_at":"2026-06-10 00:13:18"},"legacy_qids":[{"cve":"CVE-2018-1002206","qid":"983791","title":"Dotnet (nuget) Security Update for sharpcompress (GHSA-fxh6-w476-hgr4)"}]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-05T12:47:57.470Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_MISC","x_transferred"],"url":"https://snyk.io/research/zip-slip-vulnerability"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://snyk.io/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/snyk/zip-slip-vulnerability"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/adamhathcock/sharpcompress/pull/374"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"SharpCompress","vendor":"SharpCompress","versions":[{"lessThan":"0.21.0","status":"affected","version":"unspecified","versionType":"custom"}]}],"dateAssigned":"2018-05-17T00:00:00.000Z","descriptions":[{"lang":"en","value":"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'."}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","description":"CWE-22","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2018-07-25T17:00:00.000Z","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","shortName":"snyk"},"references":[{"tags":["x_refsource_MISC"],"url":"https://snyk.io/research/zip-slip-vulnerability"},{"tags":["x_refsource_MISC"],"url":"https://snyk.io/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246"},{"tags":["x_refsource_MISC"],"url":"https://github.com/snyk/zip-slip-vulnerability"},{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/adamhathcock/sharpcompress/pull/374"},{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_ASSIGNED":"2018-05-17T10:52Z","ID":"CVE-2018-1002206","REQUESTER":"danny@snyk.io","STATE":"PUBLIC","UPDATED":"2018-05-17T10:52Z"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"SharpCompress","version":{"version_data":[{"version_affected":"<","version_value":"0.21.0"}]}}]},"vendor_name":"SharpCompress"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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'."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22"}]}]},"references":{"reference_data":[{"name":"https://snyk.io/research/zip-slip-vulnerability","refsource":"MISC","url":"https://snyk.io/research/zip-slip-vulnerability"},{"name":"https://snyk.io/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246","refsource":"MISC","url":"https://snyk.io/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246"},{"name":"https://github.com/snyk/zip-slip-vulnerability","refsource":"MISC","url":"https://github.com/snyk/zip-slip-vulnerability"},{"name":"https://github.com/adamhathcock/sharpcompress/pull/374","refsource":"CONFIRM","url":"https://github.com/adamhathcock/sharpcompress/pull/374"},{"name":"https://github.com/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6","refsource":"CONFIRM","url":"https://github.com/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6"}]}}}},"cveMetadata":{"assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","assignerShortName":"snyk","cveId":"CVE-2018-1002206","datePublished":"2018-07-25T17:00:00.000Z","dateReserved":"2018-07-25T00:00:00.000Z","dateUpdated":"2024-09-17T03:29:09.493Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2018-07-25 17:29:01","lastModifiedDate":"2026-06-05 03:10:18","problem_types":["CWE-22","CWE-22 CWE-22"],"metrics":{"cvssMetricV30":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE"},"exploitabilityScore":1.8,"impactScore":3.6}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","baseScore":4.3,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE"},"baseSeverity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:adamhathcock:sharpcompress:*:*:*:*:*:*:*:*","versionEndExcluding":"0.21.0","matchCriteriaId":"F251A98A-FA0D-4CB1-84C8-7F04F5D02AD9"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2018","CveId":"1002206","Ordinal":"1","Title":"CVE-2018-1002206","CVE":"CVE-2018-1002206","Year":"2018"},"notes":[{"CveYear":"2018","CveId":"1002206","Ordinal":"1","NoteData":"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'.","Type":"Description","Title":"CVE-2018-1002206"},{"CveYear":"2018","CveId":"1002206","Ordinal":"2","NoteData":"2018-07-25","Type":"Other","Title":"Published"}]}}}