Skip to content
Fencer Intel
medium 6.3

CVE-2011-1004 json

The FileUtils.remove_entry_secure 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…

published 2011-03-02 15 y ago modified 2026-06-16 4 mo ago also EUVD-2011-1021

cvss
6.3
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 32%
public exploits
0
none known

Summary

The FileUtils.remove_entry_secure 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.

Patch / fix

  • ruby RHEL 6 1.8.7.299-7.el6_1.1
  • ruby-ri RHEL 6 1.8.7.299-7.el6_1.1
  • ruby-irb RHEL 6 1.8.7.299-7.el6_1.1
  • ruby-libs RHEL 6 1.8.7.299-7.el6_1.1
  • ruby-rdoc RHEL 6 1.8.7.299-7.el6_1.1
  • ruby-tcltk RHEL 6 1.8.7.299-7.el6_1.1
  • ruby RHEL 5 1.8.5-19.el5_6.1
  • ruby-ri RHEL 5 1.8.5-19.el5_6.1

red hat advisories RHSA-2011:0910RHSA-2011:0909

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2011-1004 updated cvss 4.9

Ruby: Symlink race condition by removing directory trees in fileutils module

  • Red Hat Enterprise Linux (v. 5.6.z server) ruby 1.8.5-19.el5_6.1, ruby-ri 1.8.5-19.el5_6.1, ruby-irb 1.8.5-19.el5_6.1, ruby-libs 1.8.5-19.el5_6.1, ruby-mode 1.8.5-19.el5_6.1, ruby-rdoc 1.8.5-19.el5_6.1, +1 more
    fixed: vendor fix RHSA-2011:0909
  • Red Hat Enterprise Linux Server (v. 6) ruby 1.8.7.299-7.el6_1.1, ruby-irb 1.8.7.299-7.el6_1.1, ruby-libs 1.8.7.299-7.el6_1.1 Red Hat Enterprise Linux Server Optional (v. 6) ruby 1.8.7.299-7.el6_1.1, ruby-ri 1.8.7.299-7.el6_1.1, ruby-rdoc 1.8.7.299-7.el6_1.1, ruby-tcltk 1.8.7.299-7.el6_1.1
    fixed: vendor fix RHSA-2011:0910
  • Red Hat Enterprise Linux 4 ruby
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.39% chance of exploitation in the next 30 days, higher than 32% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 2.0 6.3 AV:L/AC:M/Au:N/C:N/I:C/A:C

Classification

Weakness
  • CWE-59 Improper Link Resolution Before File Access

References

Sources

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.