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 morefixed: 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.1fixed: vendor fix RHSA-2011:0910
-
Red Hat Enterprise Linux 4 rubynot 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
-
openwall.com
/lists/oss-security/2011/02/21/5
mailing-list, patch
-
bugzilla.redhat.com
/show_bug.cgi?id=678913
patch
-
openwall.com
/lists/oss-security/2011/02/21/2
mailing-list, patch
-
ruby-lang.org
/en/news/2011/02/18/fileutils-is-vulnerable-to-symlink-race-attacks/
patch, vendor-advisory
-
redhat.com
/support/errata/RHSA-2011-0910.html
vendor-advisory
-
redhat.com
/support/errata/RHSA-2011-0909.html
vendor-advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2011-March/054422.html
vendor-advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2011-March/054436.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2011:097
vendor-advisory
-
lists.apple.com
/archives/security-announce/2012/May/msg00001.html
vendor-advisory
-
secunia.com
/advisories/43434
third-party-advisory, vendor-advisory
-
securityfocus.com
/bid/46460
vdb-entry
-
vupen.com
/english/advisories/2011/0539
vdb-entry
-
secunia.com
/advisories/43573
third-party-advisory
-
osvdb.org
/70958
vdb-entry
- support.apple.com /kb/HT5281
Sources
- CVE List CVE-2011-1004
- NVD CVE-2011-1004
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.