CVE-2011-1005Ruby-lang Ruby
Medium 5.0 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Ruby We alert you by email or Slack (account required).
- Priority
- 45
- CVSS 2.0
- 5.0
- EPSS
- 2.8% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Mar 2, 2011
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-264
- Vector
AV:N/AC:L/Au:N/C:N/I:P/A:N
What happens
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.
What to do
- Apply the vendor's security update for Ruby.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | ruby | 1.8.6 |
| ruby-lang | ruby | 1.8.6-420 |
| ruby-lang | ruby | 1.8.7 |
| ruby-lang | ruby | 1.8.7-330 |
| ruby-lang | ruby | 1.8.8 |
Official sources
References
Links published by the sources. Open them with care.
- lists.apple.com
- lists.fedoraproject.org
- lists.fedoraproject.org
- osvdb.org
- secunia.com
- secunia.com
- support.apple.com
- www.mandriva.com
- www.mandriva.com
- www.openwall.com Patch
- www.openwall.com Patch
- www.redhat.com
- www.redhat.com
- www.redhat.com
- www.ruby-lang.org Exploit Patch Vendor Advisory
- www.securityfocus.com
- www.vupen.com
- bugzilla.redhat.com Patch