CVE-2011-1005: Ruby-Lang Ruby

Medium severity, CVSS 5.0. EPSS: 2.8% chance of exploitation in the next 30 days.

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.

Affected products

  • Ruby-Lang Ruby: version 1.8.6 only; version 1.8.6-420 only; version 1.8.7 only; version 1.8.7-330 only; version 1.8.8 only

Published 2011-03-02. Last modified 2026-06-16.