Directory Traversal Affecting rubyzip/rubyzip package, versions [0,1.2.1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
5.92% (91st 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 Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-RUBYZIPRUBYZIP-2368646
  • published26 Jan 2022
  • disclosed27 Feb 2017
  • creditUnknown

Introduced: 27 Feb 2017

CVE-2017-5946  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade rubyzip/rubyzip to version 1.2.1 or higher.

Overview

Affected versions of this package are vulnerable to Directory Traversal. The Zip::File component in the rubyzip gem before 1.2.1 for Ruby has a directory traversal vulnerability. If a site allows uploading of .zip files, an attacker can upload a malicious file that uses "../" pathname substrings to write arbitrary files to the filesystem.

CVSS Base Scores

version 3.1