CVE-2015-3649 json
open-uri-cached Gem for Ruby Unsafe Temporary File Creation Enables Code Execution
published 9y ago modified 4mo ago also GHSA-7m2w-9gw7-c3xp , EUVD-2022-3027
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 33%
- public exploits
- 0
- none known
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 meta file is created.
Is CVE-2015-3649 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
0.39% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | open-uri-cached | <=1.0.0 |
no fix listed |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/tigris/open-uri-cached/blob/master/lib/open-uri/cached.rb#L39
third-party-advisory
-
github.com
/tigris/open-uri-cached/blob/master/lib/open-uri/cached.rb#L115
third-party-advisory
-
github.com
/tigris/open-uri-cached/blob/master/lib/open-uri/cached.rb#L25
third-party-advisory
-
openwall.com
/lists/oss-security/2015/05/06/2
mailing-list, web, third-party-advisory
-
securityfocus.com
/bid/74469
vdb-entry, third-party-advisory
-
benjaminfleischer.com
/2013/03/20/yaml-and-security-in-ruby/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2015-3649
advisory
-
github.com
/tigris/open-uri-cached/issues/8
web
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/open-uri-cached/CVE-2015-3649.yml
web
-
github.com
/tigris/open-uri-cached
package
-
github.com
/tigris/open-uri-cached/blob/master/lib/open-uri/cached.rb
web
-
web.archive.org
/web/20210119122105/http://www.securityfocus.com/bid/74469
web
-
seclists.org
/oss-sec/2015/q2/373
web
-
benjaminfleischer.com
/2013/03/20/yaml-and-security-in-ruby
web
Sources
- CVE List CVE-2015-3649
- GitHub Advisory GHSA-7m2w-9gw7-c3xp
- NVD CVE-2015-3649
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.