CVE-2026-44788

SharpCompress: Directory traversal via directory entries in WriteToDirectory (zip slip variant)

Published May 26, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6c8g-7p36-r338 SharpCompress has directory traversal via directory entries in WriteToDirectory (zip slip variant)
History
Type Values Removed Values Added
CPEs cpe:2.3:a:sharpcompress_project:sharpcompress:*:*:*:*:*:*:*:* cpe:2.3:a:adamhathcock:sharpcompress:*:*:*:*:*:*:*:*
Vendors & Products Sharpcompress Project
Sharpcompress Project sharpcompress
Type Values Removed Values Added
First Time appeared Sharpcompress Project
Sharpcompress Project sharpcompress
CPEs cpe:2.3:a:sharpcompress_project:sharpcompress:*:*:*:*:*:*:*:*
Vendors & Products Sharpcompress Project
Sharpcompress Project sharpcompress
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Adamhathcock
Adamhathcock sharpcompress
Vendors & Products Adamhathcock
Adamhathcock sharpcompress
Type Values Removed Values Added
Description 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.
Title SharpCompress: Directory traversal via directory entries in WriteToDirectory (zip slip variant)
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 27, 2026, 12:46 PM
Reserved
May 7, 2026, 7:20 PM
Status
Analyzed
Published
May 26, 2026, 10:16 PM
Modified
Jul 24, 2026, 11:10 AM