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 a malicious archive to create directories outside the intended extraction root. Specifically for TAR archives, this can be exploited further by chaining with a symlink entry to achieve arbitrary file writes on the target filesystem, limited by the permissions of the running process. The vulnerability has a CVSS score of 5. 9, indicating medium severity. No official patch or remediation guidance is currently provided by the vendor. There are no known exploits in the wild at this time.
AI Analysis
Technical Summary
CVE-2026-44788 is a path traversal vulnerability (CWE-22) in the SharpCompress library, affecting versions up to 0.47.4. The issue occurs in the IArchive.WriteToDirectory() function, which fails to properly restrict extracted file paths to the intended directory. This allows crafted archives to write files outside the extraction root. For TAR archives, an attacker can chain this with a symbolic link entry to perform arbitrary file writes on the filesystem, constrained by the process's permissions. This vulnerability can lead to integrity impacts by overwriting files but does not directly affect confidentiality or availability.
Potential Impact
The vulnerability allows an attacker to write files outside the extraction directory, potentially overwriting or creating files arbitrarily on the filesystem where the process runs. This can lead to integrity compromise of the system or application data. The impact is limited by the permissions of the process executing the extraction. There is no indication of confidentiality or availability impact. No known exploits have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid extracting untrusted TAR archives with SharpCompress versions 0.47.4 and earlier. Implementing additional validation or sandboxing extraction operations may reduce risk.
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 a malicious archive to create directories outside the intended extraction root. Specifically for TAR archives, this can be exploited further by chaining with a symlink entry to achieve arbitrary file writes on the target filesystem, limited by the permissions of the running process. The vulnerability has a CVSS score of 5. 9, indicating medium severity. No official patch or remediation guidance is currently provided by the vendor. There are no known exploits in the wild at this time.
CVSS v3.1
Score 5.9medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-44788 is a path traversal vulnerability (CWE-22) in the SharpCompress library, affecting versions up to 0.47.4. The issue occurs in the IArchive.WriteToDirectory() function, which fails to properly restrict extracted file paths to the intended directory. This allows crafted archives to write files outside the extraction root. For TAR archives, an attacker can chain this with a symbolic link entry to perform arbitrary file writes on the filesystem, constrained by the process's permissions. This vulnerability can lead to integrity impacts by overwriting files but does not directly affect confidentiality or availability.
Potential Impact
The vulnerability allows an attacker to write files outside the extraction directory, potentially overwriting or creating files arbitrarily on the filesystem where the process runs. This can lead to integrity compromise of the system or application data. The impact is limited by the permissions of the process executing the extraction. There is no indication of confidentiality or availability impact. No known exploits have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid extracting untrusted TAR archives with SharpCompress versions 0.47.4 and earlier. Implementing additional validation or sandboxing extraction operations may reduce risk.
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: 5/26/2026, 9:48:41 PM
Last enriched: 5/26/2026, 10:04:48 PM
Last updated: 5/26/2026, 10:49:25 PM
Views: 3
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.