CVE-2011-1004
CVE-2011-1004 is a medium-severity vulnerability in Ruby-lang Ruby with a CVSS 2.0 base score of 6.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-59.
Key facts
- Severity: Medium (CVSS 2.0 base score 6.3)
- EPSS exploit prediction: 0% (31st percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-59
- Affected product: Ruby-lang Ruby
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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, 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.
- How severe is CVE-2011-1004?
- CVE-2011-1004 has a CVSS 2.0 base score of 6.3, rated medium severity.
- Is CVE-2011-1004 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (31st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2011-1004?
- CVE-2011-1004 primarily affects Ruby-lang Ruby. In total, 6 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2011-1004?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2011-1004 published?
- CVE-2011-1004 was published on 2011-03-02 and last updated on 2026-06-16.
References
- http://lists.apple.com/archives/security-announce/2012/May/msg00001.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-March/054422.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-March/054436.html
- http://osvdb.org/70958
- http://secunia.com/advisories/43434
- http://secunia.com/advisories/43573
- http://support.apple.com/kb/HT5281
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:097
- http://www.openwall.com/lists/oss-security/2011/02/21/2
- http://www.openwall.com/lists/oss-security/2011/02/21/5
- http://www.redhat.com/support/errata/RHSA-2011-0909.html
- http://www.redhat.com/support/errata/RHSA-2011-0910.html
- http://www.ruby-lang.org/en/news/2011/02/18/fileutils-is-vulnerable-to-symlink-race-attacks/
- http://www.securityfocus.com/bid/46460
- http://www.vupen.com/english/advisories/2011/0539
- https://bugzilla.redhat.com/show_bug.cgi?id=678913
Affected products (6)
- cpe:2.3:a:ruby-lang:ruby:1.8.6:*:*:*:*:*:*:*
- cpe:2.3:a:ruby-lang:ruby:1.8.7:*:*:*:*:*:*:*
- cpe:2.3:a:ruby-lang:ruby:1.8.8:dev:*:*:*:*:*:*
- cpe:2.3:a:ruby-lang:ruby:1.9.1:*:*:*:*:*:*:*
- cpe:2.3:a:ruby-lang:ruby:1.9.2:*:*:*:*:*:*:*
- cpe:2.3:a:ruby-lang:ruby:1.9.3:dev:*:*:*:*:*:*
More vulnerabilities in Ruby-lang Ruby
- CVE-2009-4124 — Critical (CVSS 10.0): Heap-based buffer overflow in the rb_str_justify function in string.c in Ruby 1.9.1 before 1.9.1-p376 allows…
- CVE-2008-2662 — Critical (CVSS 10.0): Multiple integer overflows in the rb_str_buf_append function in Ruby 1.8.4 and earlier, 1.8.5 before 1.8.5-p231, 1.8.6…
- CVE-2008-2663 — Critical (CVSS 10.0): Multiple integer overflows in the rb_ary_store function in Ruby 1.8.4 and earlier, 1.8.5 before 1.8.5-p231, 1.8.6…
- CVE-2016-2338 — Critical (CVSS 9.8): An exploitable heap overflow vulnerability exists in the Psych::Emitter start_document function of Ruby. In…
- CVE-2022-28738 — Critical (CVSS 9.8): A double free was found in the Regexp compiler in Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2. If a victim attempts to…
- CVE-2011-4121 — Critical (CVSS 9.8): The OpenSSL extension of Ruby (Git trunk) versions after 2011-09-01 up to 2011-11-03 always generated an exponent value…
All CVEs affecting Ruby-lang Ruby →
Other CWE-59 (Improper Link Resolution Before File Access (Link Following)) vulnerabilities
- CVE-2024-37143 — Critical (CVSS 10.0): Dell PowerFlex appliance versions prior to IC 46.381.00 and IC 46.376.00, Dell PowerFlex rack versions prior to RCM…
- CVE-2024-28189 — Critical (CVSS 10.0): Judge0 is an open-source online code execution system. The application uses the UNIX chown command on an untrusted file…
- CVE-2024-28185 — Critical (CVSS 10.0): Judge0 is an open-source online code execution system. The application does not account for symlinks placed inside the…
- CVE-2022-22995 — Critical (CVSS 10.0): The combination of primitives offered by SMB and AFP in their default configuration allows the arbitrary writing of…
- CVE-2014-4480 — Critical (CVSS 10.0): Directory traversal vulnerability in afc in AppleFileConduit in Apple iOS before 8.1.3 and Apple TV before 7.0.3 allows…
- CVE-2002-2374 — Critical (CVSS 10.0): Unspecified vulnerability in pprosetup in Sun PatchPro 2.0 has unknown impact and attack vectors related to "unsafe use…
Browse all CWE-59 (Improper Link Resolution Before File Access (Link Following)) vulnerabilities →