CVE-2026-44788 SharpCompress: Directory traversal via directory entries in WriteToDirectory (zip slip variant)

Medium 5.9 Published Updated

Attackers can exploit path traversal in SharpCompress to write arbitrary files outside the extraction directory, potentially leading to code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-44788?

CVE-2026-44788 is a medium-severity path traversal vulnerability in adamhathcock sharpcompress, published on 26 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2026-44788?

2 open source packages ship an affected version, including SharpCompress. It affects 1 product.

PackageAffectedFixed in
SharpCompress NuGetAll versions0.48.0
SharpCompress NuGetAll versions0.48.0

Products include Adamhathcock Sharpcompress.

How do I fix CVE-2026-44788?

Upgrade SharpCompress to 0.48.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-44788 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44788 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as ECHO-f93c-a222-1d5f, GHSA-6c8g-7p36-r338.

Is CVE-2026-44788 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free