CWE
59 362
Advisory Published
CVE Published
Updated

CVE-2011-1004: Race Condition

First published: Sun Feb 20 2011(Updated: )

A race condition was found in the way the secure implementation of Ruby fileutils' remove system entries method (remove_entry_secure()), 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] <a href="http://www.ruby-lang.org/en/news/2011/02/18/fileutils-is-vulnerable-to-symlink-race-attacks/">http://www.ruby-lang.org/en/news/2011/02/18/fileutils-is-vulnerable-to-symlink-race-attacks/</a> Upstream patch (against trunk): [2] <a href="http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&amp;revision=30896">http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&amp;revision=30896</a>

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Ruby=1.8.6
Ruby=1.8.7
Ruby=1.8.8-dev
Ruby=1.9.1
Ruby=1.9.2
Ruby=1.9.3-dev

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

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.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203