CVE-2011-1004: Race Condition
A race condition was found in the way the secure implementation of Ruby fileutils' remove system entries method (removeentrysecure()), removed directory trees. A local attacker could use this flaw to conduct symbolic link attacks, leading to removal of arbitrary files or directories on the system.
References: [1] http://www.ruby-lang.org/en/news/2011/02/18/fileutils-is-vulnerable-to-symlink-race-attacks/
Upstream patch (against trunk): [2] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30896
Other sources
The FileUtils.removeentrysecure method in Ruby 1.8.6 through 1.8.6-420, 1.8.7 through 1.8.7-330, 1.8.8dev, 1.9.1 through 1.9.1-430, 1.9.2 through 1.9.2-136, and 1.9.3dev allows local users to delete arbitrary files via a symlink attack.
— MITRE
Affected Software
Remediation
Patch Available
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2011-1004?
CVE-2011-1004 is classified as a medium severity vulnerability due to its potential for local attackers to exploit it for symlink attacks.
How do I fix CVE-2011-1004?
To fix CVE-2011-1004, upgrade to a patched version of Ruby or apply the recommended security patches as outlined in the project updates.
What versions of Ruby are affected by CVE-2011-1004?
CVE-2011-1004 affects Ruby versions 1.8.6, 1.8.7, 1.8.8-dev, 1.9.1, 1.9.2, and 1.9.3-dev.
What type of attack can be performed using CVE-2011-1004?
CVE-2011-1004 can be exploited by local attackers to conduct symbolic link attacks, potentially resulting in the removal of arbitrary files or directories.
Is CVE-2011-1004 a local or remote vulnerability?
CVE-2011-1004 is a local vulnerability, meaning it requires local access to the system for exploitation.