CVE-2026-44788: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in adamhathcock sharpcompress
SharpCompress versions 0.47.4 and earlier contain a path traversal vulnerability in the IArchive.WriteToDirectory() method. This flaw allows malicious TAR archives to create directories outside the intended extraction root. By chaining with a symlink entry, an attacker can escalate this to arbitrary file writes on the target filesystem, limited by the permissions of the running process. The vulnerability has a medium severity rating with a CVSS score of 5.9.
AI Analysis
Technical Summary
SharpCompress is a C# compression library. In versions 0.47.4 and earlier, the IArchive.WriteToDirectory() function does not properly restrict pathnames, enabling path traversal (CWE-22). This allows crafted TAR archives to write files outside the extraction directory. When combined with a symbolic link entry in the archive, this can lead to arbitrary file writes on the filesystem with the privileges of the executing process. No official patch or remediation level has been published yet.
Potential Impact
An attacker can exploit this vulnerability to write files arbitrarily on the filesystem where the application runs, potentially overwriting critical files or planting malicious payloads. The impact is limited by the permissions of the process running SharpCompress. There is no indication of confidentiality or availability impact, but integrity can be compromised.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid extracting untrusted TAR archives using SharpCompress versions 0.47.4 or earlier. Consider implementing additional validation or sandboxing extraction operations to limit filesystem access.
CVE-2026-44788: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in adamhathcock sharpcompress
Description
SharpCompress versions 0.47.4 and earlier contain a path traversal vulnerability in the IArchive.WriteToDirectory() method. This flaw allows malicious TAR archives to create directories outside the intended extraction root. By chaining with a symlink entry, an attacker can escalate this to arbitrary file writes on the target filesystem, limited by the permissions of the running process. The vulnerability has a medium severity rating with a CVSS score of 5.9.
CVSS v3.1
Score 5.9medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
SharpCompress is a C# compression library. In versions 0.47.4 and earlier, the IArchive.WriteToDirectory() function does not properly restrict pathnames, enabling path traversal (CWE-22). This allows crafted TAR archives to write files outside the extraction directory. When combined with a symbolic link entry in the archive, this can lead to arbitrary file writes on the filesystem with the privileges of the executing process. No official patch or remediation level has been published yet.
Potential Impact
An attacker can exploit this vulnerability to write files arbitrarily on the filesystem where the application runs, potentially overwriting critical files or planting malicious payloads. The impact is limited by the permissions of the process running SharpCompress. There is no indication of confidentiality or availability impact, but integrity can be compromised.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid extracting untrusted TAR archives using SharpCompress versions 0.47.4 or earlier. Consider implementing additional validation or sandboxing extraction operations to limit filesystem access.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-07T19:20:44.691Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a161539e29bf47b506c5399
Added to database: 05/26/2026, 21:48:41 UTC
Last enriched: 07/22/2026, 00:53:59 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 135
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.