CVE-2015-3649 — Vulnerability in open-uri-cached — CVE Details
HIGH
open-uri-cached Gem for Ruby Unsafe Temporary File Creation Enables Code Execution
Published May 13, 2022Updated February 20, 2024Source: osv
Summary
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.
Advisory Timeline
- First published May 13, 2022 (1613 days ago).
- Last revised February 20, 2024 — 648 days after initial publication.
Affected Packages (1)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| open-uri-cached | rubygems | 0.0.1, 0.0.3, 0.0.4, 0.0.5 (+1 more) | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-20Improper Input ValidationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.8 score means for each attack dimension.
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2015-3649ADVISORY
- https://github.com/tigris/open-uri-cached/issues/8WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/open-uri-cached/CVE-2015-3649.ymlWEB
- https://github.com/tigris/open-uri-cachedPACKAGE
- https://github.com/tigris/open-uri-cached/blob/master/lib/open-uri/cached.rbWEB
- https://web.archive.org/web/20210119122105/http://www.securityfocus.com/bid/74469WEB
- https://seclists.org/oss-sec/2015/q2/373WEB
- https://www.benjaminfleischer.com/2013/03/20/yaml-and-security-in-rubyWEB
- https://www.openwall.com/lists/oss-security/2015/05/06/2WEB
Frequently Asked Questions
- What is CVE-2015-3649?
- open-uri-cached Gem for Ruby Unsafe Temporary File Creation Enables Code Execution This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.8/10).
- How do I check if my project is affected by CVE-2015-3649?
- CVE-2015-3649 affects open-uri-cached. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2015-3649 and 200,000+ other known vulnerabilities.
Severity & Exploitability
CVSS Score
7.8
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
GHSA-7m2w-9gw7-c3xp
Related CVEs
- CVE-2026-94462HIGH
Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)
- CVE-2026-77601HIGH
OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies