Medium
Security advisory
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'.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-1002206
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:26 UTC · Revision 1
Source evidence
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'.
osv:CVE-2018-1002206
Complete source record
{
"id": "a5ddee485f0f43e28b03e45796a4bfe1232c994b1c2a3e27ad47809f48020fcf",
"url": "https://osv.dev/vulnerability/CVE-2018-1002206",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-1002206",
"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'.",
"evidence": "osv:CVE-2018-1002206",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-1002206",
"aliases": [
"CVE-2018-1002206",
"GHSA-fxh6-w476-hgr4",
"SNYK-DOTNET-SHARPCOMPRESS-60246"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/adamhathcock/sharpcompress",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "3f94c1a50dd1b31f600307b5ad98704dd32e89e4"
},
{
"fixed": "42b1205fb435de523e6ef8ac5b7bafbe712997f6"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:adamhathcock:sharpcompress:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.21.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "42b1205fb435de523e6ef8ac5b7bafbe712997f6"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"0.20.0",
"0.19.2",
"0.19.1",
"0.19",
"0.18.2",
"0.18.1",
"0.18",
"0.17.1",
"0.17.0",
"0.16.2",
"0.16.1",
"0.16.0",
"0.15.2",
"0.15.1",
"0.15.0",
"0.14.1",
"0.14.0",
"0.13.1",
"0.13.0",
"0.12.4",
"0.12.3",
"0.12.2",
"0.12.1",
"0.12.0",
"0.11.6",
"0.11.5",
"0.11.4",
"0.11.2",
"0.11.3",
"0.11.1",
"0.11",
"0.10.3",
"0.10.2",
"0.10.1.3",
"0.10.1.2",
"0.10.1.1",
"0.10.1",
"0.10",
"0.9"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-1002206.json"
}
}
],
"modified": "2026-10-20T10:50:18.398085375Z",
"provider": "osv",
"references": [
"https://github.com/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6",
"https://github.com/adamhathcock/sharpcompress/pull/374",
"https://github.com/snyk/zip-slip-vulnerability",
"https://snyk.io/research/zip-slip-vulnerability",
"https://snyk.io/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-1002206",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 381510,
"published_at": "2018-07-25T17:29:01.94+00:00"
}