Arbitrary File Write via Archive Extraction (Zip Slip) Affecting system.io.compression.zipfile package, versions [,4.3.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.4% (74th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary File Write via Archive Extraction (Zip Slip) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-SYSTEMIOCOMPRESSIONZIPFILE-174570
  • published2 May 2019
  • disclosed12 Sept 2018
  • creditUnknown

Introduced: 12 Sep 2018

CVE-2018-8416  (opens in a new tab)
CWE-434  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade System.IO.Compression.ZipFile to version 4.3.0 or higher.

Overview

System.IO.Compression.ZipFile provides classes that support the compression and decompression of streams using file system paths.

Affected versions of this package are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip). An attacker could write arbitrary files and directories to certain locations on a vulnerable system. However, an attacker would have limited control over the destination of the files and directories. To exploit the vulnerability, they must send a specially crafted file to a vulnerable system.

CVSS Scores

version 3.1