CVE-2015-3649: Open uri cached Open-uri-cached Gem For Ruby Unsafe Vulnerability
HIGHCVE-2015-3649 is a HIGH (CVSS 7.8) open-uri-cached gem for ruby unsafe vulnerability (CWE-20: Improper Input Validation) affecting Open uri cached libraries in the RubyGems ecosystem. The issue involves open-uri-cached gem for ruby unsafe temporary file creation enables code execution. Remediation is available in the latest vendor maintenance releases.
CVE-2015-3649 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-2015-3649
To remediate this vulnerability, upgrade all affected Open uri cached 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 open-uri-cached 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 open-uri-cached
How to Check if You Are Affected
To determine whether your application is affected by CVE-2015-3649, inspect your project dependencies for Open uri cached:
inspect dependencies for open-uri-cached
Analyze the terminal output to locate any version of Open uri cached 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Open uri cached, 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-2015-3649 Affected Open uri cached Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
open-uri-cached
|
RubyGems |
≤ 1.0.0
|
|
References
Frequently Asked Questions
What is CVE-2015-3649?
Which Open uri cached versions are affected?
What version fixes CVE-2015-3649?
Is open-uri-cached affected?
What is the CVSS score of CVE-2015-3649?
What CWE is associated with CVE-2015-3649?
How can I check RubyGems dependencies for CVE-2015-3649?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7m2w-9gw7-c3xp",
"modified" : "2023-07-03T23:13:40Z",
"published" : "2022-05-13T01:13:48Z",
"aliases" : [ "CVE-2015-3649" ],
"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.",
"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" : "open-uri-cached"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.0.0"
} ]
} ]
} ],
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-06-09T23:05:43Z",
"nvd_published_at" : "2017-08-18T16:29:00Z"
}
}