CVE-2011-1005
The safe-level feature in Ruby 1.8.6 through 1.8.6-420, 1.8.7 through 1.8.7-330, and 1.8.8dev...
The safe-level feature in Ruby 1.8.6 through 1.8.6-420, 1.8.7 through 1.8.7-330, and 1.8.8dev allows context-dependent attackers to modify strings via the Exception#to_s method, as demonstrated by changing an intended pathname.
Exploit likelihood
What each source reports
NVD Score used
5.0
The safe-level feature in Ruby 1.8.6 through 1.8.6-420, 1.8.7 through 1.8.7-330, and 1.8.8dev allows context-dependent attackers to modify strings via the Exception#to_s method, as demonstrated by changing an intended pathname.
- Record
CVE-2011-1005- CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:P/A:N - Weakness
- CWE-264
- Updated
- 2026-11-02
CVE List No score
The safe-level feature in Ruby 1.8.6 through 1.8.6-420, 1.8.7 through 1.8.7-330, and 1.8.8dev allows context-dependent attackers to modify strings via the Exception#to_s method, as demonstrated by changing an intended pathname.
- Record
CVE-2011-1005- Updated
- 2026-11-02
EUVDEUVD-2011-1022 No score
The safe-level feature in Ruby 1.8.6 through 1.8.6-420, 1.8.7 through 1.8.7-330, and 1.8.8dev allows context-dependent attackers to modify strings via the Exception#to_s method, as demonstrated by changing an intended pathname.
- Record
EUVD-2011-1022- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-h2rc-3ppq-6pjg No score
The safe-level feature in Ruby 1.8.6 through 1.8.6-420, 1.8.7 through 1.8.7-330, and 1.8.8dev...
The safe-level feature in Ruby 1.8.6 through 1.8.6-420, 1.8.7 through 1.8.7-330, and 1.8.8dev allows context-dependent attackers to modify strings via the Exception#to_s method, as demonstrated by changing an intended pathname.
- Record
GHSA-h2rc-3ppq-6pjg- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
irbRed Hat:enterprise_linux:4::as |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
rubyRed Hat:enterprise_linux:4::as |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-debuginfoRed Hat:enterprise_linux:4::as |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-develRed Hat:enterprise_linux:4::as |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-docsRed Hat:enterprise_linux:4::as |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-libsRed Hat:enterprise_linux:4::as |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-modeRed Hat:enterprise_linux:4::as |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-tcltkRed Hat:enterprise_linux:4::as |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
irbRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
rubyRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
Show 42 moreShow less
| Package | Affected | Fixed |
|---|---|---|
ruby-debuginfoRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-develRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-docsRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-libsRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-modeRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-tcltkRed Hat:enterprise_linux:4::desktop |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
irbRed Hat:enterprise_linux:4::es |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
rubyRed Hat:enterprise_linux:4::es |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-debuginfoRed Hat:enterprise_linux:4::es |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-develRed Hat:enterprise_linux:4::es |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-docsRed Hat:enterprise_linux:4::es |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-libsRed Hat:enterprise_linux:4::es |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-modeRed Hat:enterprise_linux:4::es |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-tcltkRed Hat:enterprise_linux:4::es |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
irbRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
rubyRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-debuginfoRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-develRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-docsRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-libsRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-modeRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
ruby-tcltkRed Hat:enterprise_linux:4::ws |
before 0:1.8.1-16.el4 | 0:1.8.1-16.el4 |
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 |
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
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2011-1005 is a medium vulnerability (CVSS 5.0) 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 2.77%, the 86th percentile. Fixed in irb 0:1.8.1-16.el4.
References
redhat.com/support/errata/RHSA-2011-0910.html
openwall.com/lists/oss-security/2011/02/21/5
mandriva.com/security/advisories?name=MDVSA-2011:098
vupen.com/english/advisories/2011/0539
redhat.com/support/errata/RHSA-2011-0909.html
bugzilla.redhat.com/show_bug.cgi?id=678920
Show 42 moreShow less
secunia.com/advisories/43573
openwall.com/lists/oss-security/2011/02/21/2
redhat.com/support/errata/RHSA-2011-0908.html
osvdb.org/70957
lists.fedoraproject.org/pipermail/package-announce/2011-March/054422.html
lists.fedoraproject.org/pipermail/package-announce/2011-March/054436.html
securityfocus.com/bid/46458
support.apple.com/kb/HT5281
mandriva.com/security/advisories?name=MDVSA-2011:097
lists.apple.com/archives/security-announce/2012/May/msg00001.html
secunia.com/advisories/43420
ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe
nvd.nist.gov/vuln/detail/CVE-2011-1005
github.com/advisories/GHSA-h2rc-3ppq-6pjg
access.redhat.com/errata/RHSA-2011:0908
access.redhat.com/security/updates/classification
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=682332
security.access.redhat.com/data/csaf/v2/advisories/2011/rhsa-2011_0908.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-1005
cve.org/CVERecord?id=CVE-2011-1005
access.redhat.com/errata/RHSA-2011:0909
ruby-lang.org/en/news/2011/02/18/fileutils-is-vulnerable-to-symlink-race-attacks
bugzilla.redhat.com/show_bug.cgi?id=678913
security.access.redhat.com/data/csaf/v2/advisories/2011/rhsa-2011_0909.json
access.redhat.com/security/cve/CVE-2011-1004
cve.org/CVERecord?id=CVE-2011-1004
nvd.nist.gov/vuln/detail/CVE-2011-1004
access.redhat.com/errata/RHSA-2011:0910
security.access.redhat.com/data/csaf/v2/advisories/2011/rhsa-2011_0910.json