GSD-2019-18409

Vulnerability from gsd - Updated: 2019-10-24 00:00
Details
The ruby_parser-legacy (aka legacy) gem 1.0.0 for Ruby allows local privilege escalation because of world-writable files. For example, if the brakeman gem (which has a legacy dependency) 4.5.0 through 4.7.0 is used, a local user can insert malicious code into the ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb file.
Aliases
Aliases

{
  "GSD": {
    "alias": "CVE-2019-18409",
    "description": "The ruby_parser-legacy (aka legacy) gem 1.0.0 for Ruby allows local privilege escalation because of world-writable files. For example, if the brakeman gem (which has a legacy dependency) 4.5.0 through 4.7.0 is used, a local user can insert malicious code into the ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb file.",
    "id": "GSD-2019-18409"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "brakeman",
            "purl": "pkg:gem/brakeman"
          }
        }
      ],
      "aliases": [
        "CVE-2019-18409"
      ],
      "details": "The ruby_parser-legacy (aka legacy) gem 1.0.0 for Ruby allows local\nprivilege escalation because of world-writable files. For example,\nif the brakeman gem (which has a legacy dependency) 4.5.0 through 4.7.0 is used,\na local user can insert malicious code into the\nruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb file.\n",
      "id": "GSD-2019-18409",
      "modified": "2019-10-24T00:00:00.000Z",
      "published": "2019-10-24T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://brakemanscanner.org/blog/2019/10/14/brakeman-4-dot-7-dot-1-released"
        },
        {
          "type": "WEB",
          "url": "https://github.com/zenspider/ruby_parser-legacy/issues/1"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 4.6,
          "type": "CVSS_V2"
        },
        {
          "score": 7.8,
          "type": "CVSS_V3"
        }
      ],
      "summary": "brakeman world writable files allow local privilege escalation"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "cve@mitre.org",
        "ID": "CVE-2019-18409",
        "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 ruby_parser-legacy (aka legacy) gem 1.0.0 for Ruby allows local privilege escalation because of world-writable files. For example, if the brakeman gem (which has a legacy dependency) 4.5.0 through 4.7.0 is used, a local user can insert malicious code into the ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb file."
          }
        ]
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "n/a"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/zenspider/ruby_parser-legacy/issues/1",
            "refsource": "MISC",
            "url": "https://github.com/zenspider/ruby_parser-legacy/issues/1"
          }
        ]
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2019-18409",
      "cvss_v2": 4.6,
      "cvss_v3": 7.8,
      "date": "2019-10-24",
      "description": "The ruby_parser-legacy (aka legacy) gem 1.0.0 for Ruby allows local\nprivilege escalation because of world-writable files. For example,\nif the brakeman gem (which has a legacy dependency) 4.5.0 through 4.7.0 is used,\na local user can insert malicious code into the\nruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb file.\n",
      "gem": "ruby_parser-legacy",
      "ghsa": "hhwc-8g49-j8jx",
      "title": "ruby_parser-legacy world writable files allow local privilege escalation",
      "url": "https://github.com/zenspider/ruby_parser-legacy/issues/1"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "=1.0.0",
          "affected_versions": "Version 1.0.0",
          "cvss_v2": "AV:L/AC:L/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-732",
            "CWE-937"
          ],
          "date": "2019-10-30",
          "description": "The ruby_parser-legacy (aka legacy) gem for Ruby allows local privilege escalation because of world-writable files. For example, if the brakeman gem (which has a legacy dependency) is used, a local user can insert malicious code into the ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb file.",
          "fixed_versions": [
            "1.1.0"
          ],
          "identifier": "CVE-2019-18409",
          "identifiers": [
            "CVE-2019-18409"
          ],
          "not_impacted": "All versions before 1.0.0, all versions after 1.0.0",
          "package_slug": "gem/brakeman",
          "pubdate": "2019-10-24",
          "solution": "Upgrade to version 1.1.0 or above.",
          "title": "Incorrect Permission Assignment for Critical Resource",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2019-18409",
            "https://github.com/zenspider/ruby_parser-legacy/issues/1"
          ],
          "uuid": "61b99277-d14a-4df9-81a8-ff3b8f143cc8"
        },
        {
          "affected_range": "=1.0.0",
          "affected_versions": "Version 1.0.0",
          "cvss_v2": "AV:L/AC:L/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-732",
            "CWE-937"
          ],
          "date": "2019-10-30",
          "description": "The ruby_parser-legacy (aka legacy) gem for Ruby allows local privilege escalation because of world-writable files. For example, if the brakeman gem (which has a legacy dependency), a local user can insert malicious code into the `ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb` file.",
          "fixed_versions": [],
          "identifier": "CVE-2019-18409",
          "identifiers": [
            "CVE-2019-18409"
          ],
          "package_slug": "gem/ruby_parser-legacy",
          "pubdate": "2019-10-24",
          "solution": "Unfortunately, there is no solution available yet.",
          "title": "Incorrect Permission Assignment for Critical Resource",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2019-18409",
            "https://github.com/zenspider/ruby_parser-legacy/issues/1"
          ],
          "uuid": "b71c861b-0c8e-44a1-86c2-20ecc65377d0"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:zenspider:ruby_parser-legacy:1.0.0:*:*:*:*:ruby:*:*",
                "cpe_name": [],
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "cve@mitre.org",
          "ID": "CVE-2019-18409"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "The ruby_parser-legacy (aka legacy) gem 1.0.0 for Ruby allows local privilege escalation because of world-writable files. For example, if the brakeman gem (which has a legacy dependency) 4.5.0 through 4.7.0 is used, a local user can insert malicious code into the ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb file."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-732"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/zenspider/ruby_parser-legacy/issues/1",
              "refsource": "MISC",
              "tags": [
                "Exploit",
                "Issue Tracking",
                "Third Party Advisory"
              ],
              "url": "https://github.com/zenspider/ruby_parser-legacy/issues/1"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "LOW",
            "accessVector": "LOCAL",
            "authentication": "NONE",
            "availabilityImpact": "PARTIAL",
            "baseScore": 4.6,
            "confidentialityImpact": "PARTIAL",
            "integrityImpact": "PARTIAL",
            "vectorString": "AV:L/AC:L/Au:N/C:P/I:P/A:P",
            "version": "2.0"
          },
          "exploitabilityScore": 3.9,
          "impactScore": 6.4,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "MEDIUM",
          "userInteractionRequired": false
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "LOCAL",
            "availabilityImpact": "HIGH",
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "exploitabilityScore": 1.8,
          "impactScore": 5.9
        }
      },
      "lastModifiedDate": "2019-10-30T16:55Z",
      "publishedDate": "2019-10-24T14:15Z"
    }
  }
}



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…

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…