CVE-2015-3649
HIGH 7.8CVSS 3.1open-uri-cached Gem for Ruby Unsafe Temporary File Creation Enables Code Execution
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 meta file is created.
- Published
- 18 Aug 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-7m2w-9gw7-c3xp
- Sources
- NVDJSONOSV GHSA-7m2w-9gw7-c3xpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | open-uri-cached_project | open-uri-cachedcpe:2.3:a:open-uri-cached_project:open-uri-cached:0.0.5:*:*:*:*:*:*:* |
= 0.0.5 | |
| OSV | RubyGems | open-uri-cached | <= 1.0.0 |
References
- http://www.benjaminfleischer.com/2013/03/20/yaml-and-security-in-ruby/ · Third Party Advisory, WEB
- http://www.openwall.com/lists/oss-security/2015/05/06/2 · Mailing List, Third Party Advisory, WEB
- http://www.securityfocus.com/bid/74469 · Third Party Advisory, VDB Entry
- https://github.com/tigris/open-uri-cached/blob/master/lib/open-uri/cached.rb#L115 · Third Party Advisory
- https://github.com/tigris/open-uri-cached/blob/master/lib/open-uri/cached.rb#L25 · Third Party Advisory
- https://github.com/tigris/open-uri-cached/blob/master/lib/open-uri/cached.rb#L39 · Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2015-3649 · ADVISORY
- https://github.com/tigris/open-uri-cached/issues/8 · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/open-uri-cached/CVE-2015-3649.yml · WEB
- https://github.com/tigris/open-uri-cached · PACKAGE
- https://github.com/tigris/open-uri-cached/blob/master/lib/open-uri/cached.rb · WEB
- https://web.archive.org/web/20210119122105/http://www.securityfocus.com/bid/74469 · WEB
- http://seclists.org/oss-sec/2015/q2/373 · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 18 Aug 2017)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 May 2022)