Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-44788: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in adamhathcock sharpcompress

0
Medium
VulnerabilityCVE-2026-44788cvecve-2026-44788cwe-22
Published: Tue May 26 2026 (05/26/2026, 21:32:00 UTC)
Source: CVE Database V5
Vendor/Project: adamhathcock
Product: 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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/26/2026, 22:04:48 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses