CVE-2011-1004: Race Condition

Published Feb 20, 2011
·
Updated

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

6 affected components
ruby-lang Ruby=1.8.6
ruby-lang Ruby=1.8.7
ruby-lang Ruby=1.8.8-dev
ruby-lang Ruby=1.9.1
ruby-lang Ruby=1.9.2
ruby-lang Ruby=1.9.3-dev

Event History

Feb 20, 2011
Data Sourced
via Red Hat·07:16 PM
DescriptionSeverityAffected Software
Mar 2, 2011
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203