Vulnerabilities in pkg:gem/ruby_parser-legacy
PACKAGECVE-2019-18409 is a HIGH (CVSS 7.8) remote code execution vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Ruby parser legacy libraries in the RubyGems ecosystem. The issue involves ruby_parser-legacy incorrect permission assignment for critical resource. Remediation is available in the latest vendor maintenance releases.
pkg:gem/ruby_parser-legacy
Vulnerability advisories affecting package pkg:gem/ruby_parser-legacy. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-hhwc-8g49-j8jx | CVE-2019-18409 | HIGH | Ruby_parser-legacy Incorrect Permission Assignment for Critical Resource |
CVE-2019-18409 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-18409
To remediate this vulnerability, upgrade all affected Ruby parser legacy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade ruby_parser-legacy to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for ruby_parser-legacy
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-18409, inspect your project dependencies for Ruby parser legacy:
inspect dependencies for ruby_parser-legacy
Analyze the terminal output to locate any version of Ruby parser legacy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Ruby parser legacy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-18409 Affected Ruby parser legacy Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ruby_parser-legacy
|
RubyGems |
≤ 1.0.0
|
|
References
Frequently Asked Questions
What is CVE-2019-18409?
Which Ruby parser legacy versions are affected?
What version fixes CVE-2019-18409?
Is ruby_parser-legacy affected?
What is the CVSS score of CVE-2019-18409?
What CWE is associated with CVE-2019-18409?
How can I check RubyGems dependencies for CVE-2019-18409?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hhwc-8g49-j8jx",
"modified" : "2023-08-25T23:43:43Z",
"published" : "2019-10-25T19:41:34Z",
"aliases" : [ "CVE-2019-18409" ],
"summary" : "Ruby_parser-legacy Incorrect Permission Assignment for Critical Resource",
"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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "ruby_parser-legacy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-18409"
}, {
"type" : "WEB",
"url" : "https://github.com/zenspider/ruby_parser-legacy/issues/1"
}, {
"type" : "WEB",
"url" : "https://brakemanscanner.org/blog/2019/10/14/brakeman-4-dot-7-dot-1-released"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/brakeman/CVE-2019-18409.yml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zenspider/ruby_parser-legacy"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-732" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-10-25T16:26:28Z",
"nvd_published_at" : "2019-10-24T14:15:00Z"
}
}