Description
The safe-level feature in Ruby 1.8.7 allows context-dependent attackers to modify strings via the NameError#to_s method when operating on Ruby objects. NOTE: this issue is due to an incomplete fix for CVE-2011-1005.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | ruby +8 | 1.8.7.352-10.el6_4 | RHSA-2013:0612 |
| RHEL 5 | ruby +8 | 1.8.5-27.el5 | RHSA-2013:0129 |
Advisories 2
- RHSA-2013:0129 Red Hat Security Advisory: ruby security and bug fix update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2013:0612 Red Hat Security Advisory: ruby security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
References
- RHSA-2013:0612 vendor-advisory
- [oss-security] 20121005 Re: CVE Request -- ruby (1.8.x with patched CVE-2011-1005): Incomplete fix for CVE-2011-1005 for NameError#to_s method when used on objects mailing-list
- MDVSA-2013:124 vendor-advisory
- RHSA-2013:0129 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=863484
- https://wiki.mageia.org/en/Support/Advisories/MGASA-2012-0294