Ruby 1.8.7 before patchlevel 371, 1.9.3 before patchlevel 286, and 2.0 before revision r37068 allows context-dependent attackers to bypass safe-level restrictions and modify untainted strings via the name_err_mesg_to_str API function, which marks the string as tainted, a different vulnerability than CVE-2011-1005.
https://wiki.mageia.org/en/Support/Advisories/MGASA-2012-0294
https://bugzilla.redhat.com/show_bug.cgi?id=862614
http://www.ruby-lang.org/en/news/2012/10/12/cve-2012-4464-cve-2012-4466/
http://www.openwall.com/lists/oss-security/2012/10/03/9
http://www.openwall.com/lists/oss-security/2012/10/02/4
http://www.mandriva.com/security/advisories?name=MDVSA-2013:124
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=37068
http://lists.fedoraproject.org/pipermail/package-announce/2012-October/089887.html
http://lists.fedoraproject.org/pipermail/package-announce/2012-October/089554.html