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…
EPSS 0.3%top 76%

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: 05/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 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

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

Affected software

sharpcompress
pkg:nuget/sharpcompress
Affected versions
<=0.47.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 00:53:59 UTC

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.

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: 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 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