CVE-2011-1005: Ruby - Unsafe String Modification
- Cve: CVE-2011-1005
- Name: Ruby - Unsafe String Modification
- Description: 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.
- Impact: Attackers can modify strings, potentially leading to path manipulation or other security bypasses.
- Remediation: Update to the latest Ruby version where this issue is fixed or apply relevant patches.
- Vulnerability impact: data_tampering
- Requirements: Attacker needs to control exception handling context
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5
- Cvss vector: CVSS:2.0/AV:N/AC:L/Au:N/C:N/I:P/A:N
- Epss score: 0.02772
- Epss percentile: 0.86689
- Assignee: [email protected]
- Published at: 2011-03-02T20:00:01Z
- Age in days: 5746
- Modified at: 2026-06-16T23:28:32Z
- Patch available: yes
- Public exploits total: 1
- References total: 18
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2011-1005
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: vulnerability type, requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-264 | — |
Public exploits
| Url | Source | Added date |
|---|---|---|
| http://www.ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe/ | nvd | 2011-03-02 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ruby-lang:ruby | = 1.8.6-420, = 1.8.7-330, = 1.8.8 dev, = 1.8.7, = 1.8.6 | no | nvd | /v1/products/ruby-lang/ruby |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2011-03-02
- Remote: yes
- Exposed hosts: 2449609
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports