{"id":"CVE-2026-44788","published":"2026-05-26T21:32:00Z","modified":"2026-05-27T12:46:16Z","title":"SharpCompress: Directory traversal via directory entries in WriteToDirectory (zip slip variant)","vendor":"adamhathcock","product":"sharpcompress","tier":"tail","description":{"text":"SharpCompress is a fully managed C# library to deal with many compression types and formats. In 0.47.4 and earlier, a path traversal vulnerability in IArchive.WriteToDirectory() allows a malicious archive to create directories outside the intended extraction root. For TAR archives, this can be escalated to arbitrary file writes by chaining with a symlink entry, giving a full write primitive on the target filesystem subject to the permissions of the running process.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00313,"percentile":0.24852,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/adamhathcock/sharpcompress/security/advisories/GHSA-6c8g-7p36-r338","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":4.97},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"adamhathcock","affectedVersions":[{"vendor":"adamhathcock","product":"sharpcompress","versions":["<= 0.47.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-27T12:46:10.326841Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"SharpCompress","vulnerableRanges":["<0.48.0"],"patched":["0.48.0"],"from":["GHSA-6c8g-7p36-r338"],"provenance":"source"}],"summary":{"text":"The SharpCompress library, a fully managed C# compression toolkit, contains a path traversal flaw in IArchive.WriteToDirectory() that lets a crafted archive create directories outside the intended extraction root. For TAR archives, an attacker can chain this with a symlink entry to write arbitrary files, but exploitation requires a victim to process a malicious archive (user interaction) and is constrained by the permissions of the running process, with no authentication needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:55Z"},"euvd":{"id":"EUVD-2026-32013","exploited":false,"provenance":"source"}}