SecurityContext

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

IdName
CWE-264—

Public exploits

UrlSourceAdded date
http://www.ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe/nvd2011-03-02

References

Same in every row:

  • Source: nvd
UrlTags
http://www.openwall.com/lists/oss-security/2011/02/21/2Patch
http://www.openwall.com/lists/oss-security/2011/02/21/5Patch
http://www.ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe/Exploit, Patch, Vendor Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=678920Patch
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/70957
http://secunia.com/advisories/43420
http://secunia.com/advisories/43573

Products

ProductAffectedPlatform boundSourcesUrl
ruby-lang:ruby= 1.8.6-420, = 1.8.7-330, = 1.8.8 dev, = 1.8.7, = 1.8.6nonvd/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