GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

GSD-2017-5946

Vulnerability from gsd - Updated: 2017-02-27 00:00
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.
Aliases

{
  "GSD": {
    "alias": "CVE-2017-5946",
    "description": "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.",
    "id": "GSD-2017-5946",
    "references": [
      "https://www.suse.com/security/cve/CVE-2017-5946.html",
      "https://www.debian.org/security/2017/dsa-3801"
    ]
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "rubyzip",
            "purl": "pkg:gem/rubyzip"
          }
        }
      ],
      "aliases": [
        "CVE-2017-5946",
        "GHSA-gcqq-w6gr-h9j9"
      ],
      "details": "The Zip::File component in the rubyzip gem before 1.2.1 for Ruby has a\ndirectory traversal vulnerability. If a site allows uploading of .zip files,\nan attacker can upload a malicious file that uses \"../\" pathname substrings to\nwrite arbitrary files to the filesystem.\n",
      "id": "GSD-2017-5946",
      "modified": "2017-02-27T00:00:00.000Z",
      "published": "2017-02-27T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/rubyzip/rubyzip/issues/315"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 7.5,
          "type": "CVSS_V2"
        },
        {
          "score": 9.8,
          "type": "CVSS_V3"
        }
      ],
      "summary": "Directory traversal vulnerability in rubyzip"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "cve@mitre.org",
        "ID": "CVE-2017-5946",
        "STATE": "PUBLIC"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "n/a",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "n/a"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "n/a"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "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."
          }
        ]
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "n/a"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/rubyzip/rubyzip/releases",
            "refsource": "CONFIRM",
            "url": "https://github.com/rubyzip/rubyzip/releases"
          },
          {
            "name": "96445",
            "refsource": "BID",
            "url": "http://www.securityfocus.com/bid/96445"
          },
          {
            "name": "https://github.com/rubyzip/rubyzip/issues/315",
            "refsource": "CONFIRM",
            "url": "https://github.com/rubyzip/rubyzip/issues/315"
          },
          {
            "name": "DSA-3801",
            "refsource": "DEBIAN",
            "url": "http://www.debian.org/security/2017/dsa-3801"
          }
        ]
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2017-5946",
      "cvss_v2": 7.5,
      "cvss_v3": 9.8,
      "date": "2017-02-27",
      "description": "The Zip::File component in the rubyzip gem before 1.2.1 for Ruby has a\ndirectory traversal vulnerability. If a site allows uploading of .zip files,\nan attacker can upload a malicious file that uses \"../\" pathname substrings to\nwrite arbitrary files to the filesystem.\n",
      "gem": "rubyzip",
      "ghsa": "gcqq-w6gr-h9j9",
      "patched_versions": [
        "\u003e= 1.2.1"
      ],
      "title": "Directory traversal vulnerability in rubyzip",
      "url": "https://github.com/rubyzip/rubyzip/issues/315"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c=1.2.0",
          "affected_versions": "All versions up to 1.2.0",
          "credit": "ecneladis",
          "cvss_v2": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-22",
            "CWE-937"
          ],
          "date": "2017-11-04",
          "description": "The `Zip::File` component in the rubyzip gem 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.",
          "fixed_versions": [
            "1.2.1"
          ],
          "identifier": "CVE-2017-5946",
          "identifiers": [
            "CVE-2017-5946"
          ],
          "not_impacted": "All versions after 1.2.0",
          "package_slug": "gem/rubyzip",
          "pubdate": "2017-02-27",
          "solution": "Upgrade to version 1.2.1 or above.",
          "title": "Directory traversal vulnerability",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2017-5946",
            "https://github.com/rubyzip/rubyzip/issues/315"
          ],
          "uuid": "45091523-71c0-4094-a90b-eacd9a3488a3"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:rubyzip_project:rubyzip:*:*:*:*:*:ruby:*:*",
                "cpe_name": [],
                "versionEndExcluding": "1.2.1",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          },
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
                "cpe_name": [],
                "vulnerable": true
              },
              {
                "cpe23Uri": "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*",
                "cpe_name": [],
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "cve@mitre.org",
          "ID": "CVE-2017-5946"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "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."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-22"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/rubyzip/rubyzip/releases",
              "refsource": "CONFIRM",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/rubyzip/rubyzip/releases"
            },
            {
              "name": "https://github.com/rubyzip/rubyzip/issues/315",
              "refsource": "CONFIRM",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/rubyzip/rubyzip/issues/315"
            },
            {
              "name": "96445",
              "refsource": "BID",
              "tags": [
                "Third Party Advisory",
                "VDB Entry"
              ],
              "url": "http://www.securityfocus.com/bid/96445"
            },
            {
              "name": "DSA-3801",
              "refsource": "DEBIAN",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "http://www.debian.org/security/2017/dsa-3801"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "cvssV2": {
            "accessComplexity": "LOW",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "availabilityImpact": "PARTIAL",
            "baseScore": 7.5,
            "confidentialityImpact": "PARTIAL",
            "integrityImpact": "PARTIAL",
            "vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
            "version": "2.0"
          },
          "exploitabilityScore": 10.0,
          "impactScore": 6.4,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "HIGH",
          "userInteractionRequired": false
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "exploitabilityScore": 3.9,
          "impactScore": 5.9
        }
      },
      "lastModifiedDate": "2020-05-14T12:47Z",
      "publishedDate": "2017-02-27T07:59Z"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…