ghsa-7m2w-9gw7-c3xp
Vulnerability from github
Published
2022-05-13 01:13
Modified
2023-07-03 23:13
Summary
open-uri-cached Gem for Ruby Unsafe Temporary File Creation Enables Code Execution
Details

The open-uri-cached rubygem allows local users to execute arbitrary Ruby code by creating a directory under /tmp containing "openuri-" followed by a crafted UID, and putting Ruby code in said directory once a metafile is created.

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "RubyGems",
        "name": "open-uri-cached"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "1.0.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2015-3649"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-20"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2023-06-09T23:05:43Z",
    "nvd_published_at": "2017-08-18T16:29:00Z",
    "severity": "HIGH"
  },
  "details": "The open-uri-cached rubygem allows local users to execute arbitrary Ruby code by creating a directory under /tmp containing \"openuri-\" followed by a crafted UID, and putting Ruby code in said directory once a metafile is created.",
  "id": "GHSA-7m2w-9gw7-c3xp",
  "modified": "2023-07-03T23:13:40Z",
  "published": "2022-05-13T01:13:48Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2015-3649"
    },
    {
      "type": "WEB",
      "url": "https://github.com/tigris/open-uri-cached/issues/8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/open-uri-cached/CVE-2015-3649.yml"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/tigris/open-uri-cached"
    },
    {
      "type": "WEB",
      "url": "https://github.com/tigris/open-uri-cached/blob/master/lib/open-uri/cached.rb"
    },
    {
      "type": "WEB",
      "url": "https://web.archive.org/web/20210119122105/http://www.securityfocus.com/bid/74469"
    },
    {
      "type": "WEB",
      "url": "http://seclists.org/oss-sec/2015/q2/373"
    },
    {
      "type": "WEB",
      "url": "http://www.benjaminfleischer.com/2013/03/20/yaml-and-security-in-ruby"
    },
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2015/05/06/2"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "open-uri-cached Gem for Ruby Unsafe Temporary File Creation Enables Code Execution"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…