CVE-2026-44788 Details
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.
A path traversal vulnerability has been identified in SharpCompress versions through 0.47.4. The issue arises in the IArchive.WriteToDirectory() method, where a malicious archive can create directories outside the intended extraction root. This vulnerability, present in both ZIP and TAR archives, can be exploited by chaining with a symlink entry in TAR archives, leading to arbitrary file writes on the target filesystem, depending on the permissions of the running process.
Users are advised to update to the latest version of SharpCompress, where this vulnerability has been addressed. For those who cannot update, it is recommended to avoid using the WriteToDirectory() method on untrusted archives.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/adamhathcock/sharpcompress/security/advisories/GHSA-6c8g-7p36-r338 | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/adamhathcock/sharpcompress/security/advisories/GHSA-6c8g-7p36-r338 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| adamhathcock sharpcompress | <= 0.47.4 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 5, 2026 | Reanalysis | [email protected] |
| Jun 3, 2026 | Initial Analysis | [email protected] |
| May 27, 2026 | CVE Modified | CISA-ADP |
| May 26, 2026 | New CVE Received | [email protected] |