CVE-2015-3649 open-uri-cached Gem for Ruby Unsafe Temporary File Creation Enables Code Execution

High 7.8 Published Updated

Local attackers can execute arbitrary Ruby code by exploiting a race condition in the open-uri-cached gem's temporary file handling.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2015-3649?

CVE-2015-3649 is a high-severity code injection vulnerability in n/a, published on 18 Aug 2017. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-20

Which versions are affected by CVE-2015-3649?

2 open source packages ship an affected version, including open-uri-cached. It affects 1 product.

PackageAffectedFixed in
open-uri-cached RubyGemsAll versions to 1.0.0None
open-uri-cached RubyGemsAll versions to 1.0.0None

Products include Open-Uri-Cached Project Open-Uri-Cached.

How do I fix CVE-2015-3649?

No fix has been published for CVE-2015-3649 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2015-3649 being exploited?

There is no known exploitation of CVE-2015-3649 in the wild and no public exploit code.

Sources

Also known as GHSA-7m2w-9gw7-c3xp.

Is CVE-2015-3649 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free