Rapid7 Vulnerability & Exploit Database

Generic Zip Slip Traversal Vulnerability

Back to Search

Generic Zip Slip Traversal Vulnerability



This is a generic arbitrary file overwrite technique, which typically results in remote command execution. This targets a simple yet widespread vulnerability that has been seen affecting a variety of popular products including HP, Amazon, Apache, Cisco, etc. The idea is that often archive extraction libraries have no mitigations against directory traversal attacks. If an application uses it, there is a risk when opening an archive that is maliciously modified, and result in the embedded payload to be written to an arbitrary location (such as a web root), and result in remote code execution.


  • Snyk
  • sinn3r <sinn3r@metasploit.com>
  • ggkitsas




Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/fileformat/zip_slip
msf exploit(zip_slip) > show targets
msf exploit(zip_slip) > set TARGET < target-id >
msf exploit(zip_slip) > show options
    ...show and set options...
msf exploit(zip_slip) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security