Ruby eval.c could allow security bypass

ruby-eval-security-bypass (22360) The risk level is classified as HighHigh Risk

Description:

Ruby could allow a remote attacker to bypass security restrictions caused by a vulnerability in eval.c. A remote attacker could use this vulnerability to bypass security restrictions and execute arbitrary code on the system.

Platforms Affected:

  • Canonical, Ubuntu 4.10
  • Canonical, Ubuntu 5.04
  • Debian, Debian Linux 3.0
  • Debian, Debian Linux 3.1
  • Gentoo, Linux
  • MandrakeSoft, Mandrake Linux 10.1 X86_64
  • MandrakeSoft, Mandrake Linux 10.1
  • MandrakeSoft, Mandrake Linux 2006 X86_64
  • MandrakeSoft, Mandrake Linux 2006
  • MandrakeSoft, Mandrake Linux LE2005 X86_64
  • MandrakeSoft, Mandrake Linux LE2005
  • MandrakeSoft, Mandrake Linux Corporate Server 2.1
  • MandrakeSoft, Mandrake Linux Corporate Server 2.1 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
  • RedHat, Enterprise Linux 2.1 ES
  • RedHat, Enterprise Linux 2.1 WS
  • RedHat, Enterprise Linux 2.1 AS
  • RedHat, Enterprise Linux 3 Desktop
  • RedHat, Enterprise Linux 3 AS
  • RedHat, Enterprise Linux 3 ES
  • RedHat, Enterprise Linux 3 WS
  • RedHat, Enterprise Linux 4 AS
  • RedHat, Enterprise Linux 4 WS
  • RedHat, Enterprise Linux 4 ES
  • RedHat, Enterprise Linux 4 Desktop
  • Yukihiro Matsumoto, Ruby 1.6 to 1.6.8
  • Yukihiro Matsumoto, Ruby 1.8 to 1.8.2

Remedy:

Upgrade to the latest version of Ruby (1.8.3 or later), available from the Ruby FTP Web page. See References.

For Ruby 1.6.8:
Apply the 1.6.8-patch1 patch for this vulnerability, available from the Ruby FTP Web page. See References.

For Debian GNU/Linux:
Refer to DSA-864-1, DSA-862-1, and DSA-860-1 for patch, upgrade, or suggested workaround information. See References.

For Red Hat Linux:
Refer to RHSA-2005:799-6 for patch, upgrade, or suggested workaround information. See References.

For Gentoo Linux:
Refer to Gentoo Linux Security Announcement GLSA 2005-10-05 for patch, upgrade, or suggested workaround information. See References.

For Ubuntu Linux:
Refer to USN-195-1 for patch, upgrade, or suggested workaround information. See References.

For other distributions:
Contact your vendor for upgrade or patch information.

Consequences:

Bypass Security

References:

  • Ruby FTP Web page, ruby-1.8.3 at ftp://ftp.ruby-lang.org/pub/ruby/.
  • BID-14909: Yukihiro Matsumoto Ruby SAFE Level Restriction Bypass Vulnerability
  • BID-17951: Apple Mac OS X Security Update 2006-003 Multiple Vulnerabilities
  • CVE-2005-2337: Ruby 1.6.x up to 1.6.8, 1.8.x up to 1.8.2, and 1.9.0 development up to 2005-09-01 allows attackers to bypass safe level and taint flag protections and execute disallowed code when Ruby processes a program through standard input (stdin).
  • DSA-860: ruby -- programming error
  • DSA-862: ruby1.6 -- programming error
  • DSA-864: ruby1.8 -- programming error
  • GLSA-200510-05: Ruby: Security bypass vulnerability
  • MDKSA-2005:191: Updated ruby packages fix safe level and taint flag protections vulnerability
  • RHSA-2005-799: ruby security update
  • SA16904: Ruby Safe-Level Security Bypass and Server Classes Denial of Service
  • SA20077: Mac OS X Security Update Fixes Multiple Vulnerabilities
  • SECTRACK ID: 1014948: Ruby State Error May Let Users Bypass Safe Level Restrictions
  • SUSE-SR:2006:005: SUSE Security Summary Report
  • US-CERT VU#160012: Ruby safe-level security model bypass
  • USN-195-1: Ruby vulnerability
  • VUPEN/ADV-2006-1779: Apple Mac OS X Multiple Remote and Client-Side Code Execution Vulnerabilities

Reported:

Sep 21, 2005

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page