GHSA-vqcq-mrmw-mcmg

Suggest an improvement
Source
https://github.com/advisories/GHSA-vqcq-mrmw-mcmg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/09/GHSA-vqcq-mrmw-mcmg/GHSA-vqcq-mrmw-mcmg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vqcq-mrmw-mcmg
Aliases
Published
2018-09-06T03:27:18Z
Modified
2024-02-16T08:10:57.329853Z
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
Rubyzip gem contains a Directory Traversal vulnerability in zip file component
Details

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..

This is similar to CVE-2017-5946 which was patched in 1.2.1 but the fix in that case was incomplete.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-434",
        "CWE-59"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T21:58:07Z"
}
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.2

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
1.2.1

Database specific

{
    "last_known_affected_version_range": "<= 1.2.1"
}