CVE-2026-44788
SharpCompress has directory traversal via directory entries in WriteToDirectory (zip slip variant)
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, allerdings muss ein Nutzer etwas tun, etwa eine Datei oder einen Link öffnen. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: hohes Risiko, dass Daten oder Systeme verändert werden, geringes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| nuget | SharpCompress | < 0.48.0 | 0.48.0 |
Betroffene Produkte · Adamhathcock
| Produkt | Betroffene Versionen |
|---|---|
| Sharpcompress | bis einschließlich 0.47.4 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/advisories/GHSA-6c8g-7p36-r338
- https://github.com/adamhathcock/sharpcompress/security/advisories/GHSA-6c8g-7p36-r338
- https://nvd.nist.gov/vuln/detail/CVE-2026-44788
- https://github.com/adamhathcock/sharpcompress/commit/2021a06626d0555a4d69471386e763ca5f5d5dfb