GHSA-gcqq-w6gr-h9j9

Suggest an improvement
Source
https://github.com/advisories/GHSA-gcqq-w6gr-h9j9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-gcqq-w6gr-h9j9/GHSA-gcqq-w6gr-h9j9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gcqq-w6gr-h9j9
Aliases
Published
2017-10-24T18:33:35Z
Modified
2024-02-16T08:12:37.749196Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Directory traversal vulnerability in RubyZip
Details

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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T21:36:51Z"
}
References

Affected packages

RubyGems / rubyzip

Package

Name
rubyzip
Purl
pkg:gem/rubyzip

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.1

Affected versions

0.*

0.5.7
0.5.8
0.5.9
0.5.11
0.5.12
0.9.1
0.9.4
0.9.5
0.9.6.1
0.9.7
0.9.8
0.9.9

1.*

1.0.0.beta1
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.2.0