Symlink Attack Affecting rubyzip/rubyzip package, versions [,1.2.2)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.52% (66th 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 Symlink Attack vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-RUBYZIPRUBYZIP-2368648
  • published26 Jan 2022
  • disclosed26 Jun 2018
  • creditUnknown

Introduced: 26 Jun 2018

CVE-2018-1000544  (opens in a new tab)
CWE-434  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade rubyzip/rubyzip to version 1.2.2 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack rubyzip gem rubyzip version 1.2.1 and earlier contains a Directory Traversal vulnerability in Zip::File component that can result in write arbitrary files to the filesystem. This attack appear to be exploitable via If a site allows uploading of .zip files , an attacker can upload a malicious file that contains symlinks or files with absolute pathnames "../" to write arbitrary files to the filesystem..

References

CVSS Base Scores

version 3.1