CVE-2011-1004
The FileUtils.remove_entry_secure method in Ruby 1.8.6 through 1.8.6-420, 1.8.7 through 1.8.7-330...
CVE-2011-1004 is a medium vulnerability (CVSS 6.3) in Ruby-lang Ruby, published March 2, 2011. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.39%, the 32nd percentile. Fixed in ruby 0:1.8.5-19.el5_6.1.
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.
Exploit likelihood
What each source reports
NVD Score used
6.3
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.
- Record
CVE-2011-1004- CVSS 2.0
- 6.3 Medium
AV:L/AC:M/Au:N/C:N/I:C/A:C - Weakness
- CWE-59
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2011-1004- Updated
- 2026-11-02
EUVDEUVD-2011-1021 No score
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.
- Record
EUVD-2011-1021- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-45wv-gc6w-fq7m No score
The FileUtils.remove_entry_secure method in Ruby 1.8.6 through 1.8.6-420, 1.8.7 through 1.8.7-330...
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.
- Record
GHSA-45wv-gc6w-fq7m- Weakness
- CWE-59
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
rubyRed Hat:enterprise_linux:5::server |
before 0:1.8.5-19.el5_6.1 | 0:1.8.5-19.el5_6.1 |
ruby-debuginfoRed Hat:enterprise_linux:5::server |
before 0:1.8.5-19.el5_6.1 | 0:1.8.5-19.el5_6.1 |
ruby-develRed Hat:enterprise_linux:5::server |
before 0:1.8.5-19.el5_6.1 | 0:1.8.5-19.el5_6.1 |
ruby-docsRed Hat:enterprise_linux:5::server |
before 0:1.8.5-19.el5_6.1 | 0:1.8.5-19.el5_6.1 |
ruby-irbRed Hat:enterprise_linux:5::server |
before 0:1.8.5-19.el5_6.1 | 0:1.8.5-19.el5_6.1 |
ruby-libsRed Hat:enterprise_linux:5::server |
before 0:1.8.5-19.el5_6.1 | 0:1.8.5-19.el5_6.1 |
ruby-modeRed Hat:enterprise_linux:5::server |
before 0:1.8.5-19.el5_6.1 | 0:1.8.5-19.el5_6.1 |
ruby-rdocRed Hat:enterprise_linux:5::server |
before 0:1.8.5-19.el5_6.1 | 0:1.8.5-19.el5_6.1 |
ruby-riRed Hat:enterprise_linux:5::server |
before 0:1.8.5-19.el5_6.1 | 0:1.8.5-19.el5_6.1 |
ruby-tcltkRed Hat:enterprise_linux:5::server |
before 0:1.8.5-19.el5_6.1 | 0:1.8.5-19.el5_6.1 |
Show 10 moreShow less
| Package | Affected | Fixed |
|---|---|---|
rubyRed Hat:enterprise_linux:6::server |
before 0:1.8.7.299-7.el6_1.1 | 0:1.8.7.299-7.el6_1.1 |
ruby-debuginfoRed Hat:enterprise_linux:6::server |
before 0:1.8.7.299-7.el6_1.1 | 0:1.8.7.299-7.el6_1.1 |
ruby-irbRed Hat:enterprise_linux:6::server |
before 0:1.8.7.299-7.el6_1.1 | 0:1.8.7.299-7.el6_1.1 |
ruby-libsRed Hat:enterprise_linux:6::server |
before 0:1.8.7.299-7.el6_1.1 | 0:1.8.7.299-7.el6_1.1 |
ruby-develRed Hat:enterprise_linux:6::server |
before 0:1.8.7.299-7.el6_1.1 | 0:1.8.7.299-7.el6_1.1 |
ruby-docsRed Hat:enterprise_linux:6::server |
before 0:1.8.7.299-7.el6_1.1 | 0:1.8.7.299-7.el6_1.1 |
ruby-rdocRed Hat:enterprise_linux:6::server |
before 0:1.8.7.299-7.el6_1.1 | 0:1.8.7.299-7.el6_1.1 |
ruby-riRed Hat:enterprise_linux:6::server |
before 0:1.8.7.299-7.el6_1.1 | 0:1.8.7.299-7.el6_1.1 |
ruby-staticRed Hat:enterprise_linux:6::server |
before 0:1.8.7.299-7.el6_1.1 | 0:1.8.7.299-7.el6_1.1 |
ruby-tcltkRed Hat:enterprise_linux:6::server |
before 0:1.8.7.299-7.el6_1.1 | 0:1.8.7.299-7.el6_1.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
redhat.com/support/errata/RHSA-2011-0910.html
securityfocus.com/bid/46460
openwall.com/lists/oss-security/2011/02/21/5
vupen.com/english/advisories/2011/0539
redhat.com/support/errata/RHSA-2011-0909.html
bugzilla.redhat.com/show_bug.cgi?id=678913
Show 38 moreShow less
secunia.com/advisories/43573
openwall.com/lists/oss-security/2011/02/21/2
osvdb.org/70958
lists.fedoraproject.org/pipermail/package-announce/2011-March/054422.html
lists.fedoraproject.org/pipermail/package-announce/2011-March/054436.html
secunia.com/advisories/43434
ruby-lang.org/en/news/2011/02/18/fileutils-is-vulnerable-to-symlink-race-attacks
support.apple.com/kb/HT5281
mandriva.com/security/advisories?name=MDVSA-2011:097
lists.apple.com/archives/security-announce/2012/May/msg00001.html
nvd.nist.gov/vuln/detail/CVE-2011-1004
github.com/advisories/GHSA-45wv-gc6w-fq7m
access.redhat.com/errata/RHSA-2011:0909
access.redhat.com/security/updates/classification
ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe
ruby-lang.org/en/news/2010/01/10/webrick-escape-sequence-injection
ruby-lang.org/en/news/2010/08/16/xss-in-webrick-cve-2010-0541
bugzilla.redhat.com/show_bug.cgi?id=554485
bugzilla.redhat.com/show_bug.cgi?id=587731
bugzilla.redhat.com/show_bug.cgi?id=678920
bugzilla.redhat.com/show_bug.cgi?id=682332
security.access.redhat.com/data/csaf/v2/advisories/2011/rhsa-2011_0909.json
access.redhat.com/security/cve/CVE-2009-4492
cve.org/CVERecord?id=CVE-2009-4492
nvd.nist.gov/vuln/detail/CVE-2009-4492
access.redhat.com/security/cve/CVE-2010-0541
cve.org/CVERecord?id=CVE-2010-0541
nvd.nist.gov/vuln/detail/CVE-2010-0541
access.redhat.com/security/cve/CVE-2011-0188
cve.org/CVERecord?id=CVE-2011-0188
nvd.nist.gov/vuln/detail/CVE-2011-0188
access.redhat.com/security/cve/CVE-2011-1004
cve.org/CVERecord?id=CVE-2011-1004
access.redhat.com/security/cve/CVE-2011-1005
cve.org/CVERecord?id=CVE-2011-1005
nvd.nist.gov/vuln/detail/CVE-2011-1005
access.redhat.com/errata/RHSA-2011:0910
security.access.redhat.com/data/csaf/v2/advisories/2011/rhsa-2011_0910.json