Ruby: Symlink race condition by removing directory trees in fileutils module
Published Mar 2, 2011
6.3
MEDIUMCVSS 2.0
EPSS 0.39%
Description
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.
Affected products
No data.
No data.
Red Hat Enterprise Linux 5
ruby-0:1.8.5-19.el5_6.1
Fixed · RHSA-2011:0909
Red Hat Enterprise Linux 6
ruby-0:1.8.7.299-7.el6_1.1
Fixed · RHSA-2011:0910
Red Hat Enterprise Linux 4
ruby
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | ruby-0:1.8.5-19.el5_6.1 | Fixed | RHSA-2011:0909 |
| Red Hat Enterprise Linux 6 | ruby-0:1.8.7.299-7.el6_1.1 | Fixed | RHSA-2011:0910 |
| Red Hat Enterprise Linux 4 | ruby | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:L/AC:M/Au:N/C:N/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (10 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.39% (0.00385) | 30.17th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.39% (0.00385) | 30.11th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.05% (0.00051) | 13.02th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.04% (0.00044) | 11.89th | v3 (v2023.03.01) |
| Jul 2, 2024 | 0.04% (0.00044) | 10.25th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.04% (0.00044) | 8.24th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.55% (0.01547) | 74.98th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.55% (0.01547) | 74.94th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.55% (0.01547) | 72.92th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.55% (0.01547) | 51.82th | v2 (v2022.01.01) |
References (19)
- http://lists.apple.com/archives/security-announce/2012/May/msg00001.html vendor-advisoryx_refsource_APPLE
- http://lists.fedoraproject.org/pipermail/package-announce/2011-March/054422.html vendor-advisoryx_refsource_FEDORA
- http://lists.fedoraproject.org/pipermail/package-announce/2011-March/054436.html vendor-advisoryx_refsource_FEDORA
- http://osvdb.org/70958 vdb-entryx_refsource_OSVDB
- http://secunia.com/advisories/43434 third-party-advisoryx_refsource_SECUNIAVendor Advisory
- http://secunia.com/advisories/43573 third-party-advisoryx_refsource_SECUNIA
- http://support.apple.com/kb/HT5281 x_refsource_CONFIRM
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:097 vendor-advisoryx_refsource_MANDRIVA
- http://www.openwall.com/lists/oss-security/2011/02/21/2 mailing-listx_refsource_MLISTPatch
- http://www.openwall.com/lists/oss-security/2011/02/21/5 mailing-listx_refsource_MLISTPatch
- http://www.redhat.com/support/errata/RHSA-2011-0909.html vendor-advisoryx_refsource_REDHAT
- http://www.redhat.com/support/errata/RHSA-2011-0910.html vendor-advisoryx_refsource_REDHAT
- http://www.ruby-lang.org/en/news/2011/02/18/fileutils-is-vulnerable-to-symlink-race-attacks/ x_refsource_CONFIRMPatchVendor Advisory
- http://www.securityfocus.com/bid/46460 vdb-entryx_refsource_BID
- http://www.vupen.com/english/advisories/2011/0539 vdb-entryx_refsource_VUPEN
- https://access.redhat.com/security/cve/CVE-2011-1004 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=678913 x_refsource_CONFIRMPatchIssue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2011-1004
- https://www.cve.org/CVERecord?id=CVE-2011-1004
Change history (0)
No recorded changes yet.