SkipNavigation
US-CERT
American Flag
  Vulnerability
Notes
Database

Search Vulnerability Notes

Vulnerability Notes Help Information


 
 View Notes By
  Name

ID Number

CVE Name

Date Public

Date Published

Date Updated

Severity Metric



 Other Documents
  Technical Alerts

Technical Bulletins

Alerts

Security Tips

Vulnerability Note VU#160012

Ruby safe-level security model bypass

Overview

Ruby contains a vulnerability that may allow arbitrary code to be run without the intended safe-level checks being applied.

I. Description

Ruby is a object-oriented scripting language that supports execution of untrusted code with two mechanisms: taint flagging and safe levels. Safe levels describe the mode of operation that is allowed on potentially tainted objects. A flaw in eval.c may result in Ruby failing to enforce the safe-level protections. This may result in arbitrary code being executed without the appropriate and intended security mechanisms applied. Specifically, if the program is passed through standard input (stdin), the safe level may be ignored and hence bypassed.

II. Impact

An attacker may be able to run arbitrary code without security checks being applied. An application may be designed in such a manner that this results in remote, unauthenticated arbitrary code execution.

III. Solution

Apply an update

Ruby 1.8.3 is the stable release that addresses this issue. Information on updates, fixes, and workarounds for this and other Ruby versions is contained in the Ruby vulnerability note for the issue.

Systems Affected

VendorStatusDate NotifiedDate Updated
Red Hat, Inc.Vulnerable18-Oct-2005
RubyVulnerable5-Oct-2005

References


http://www.ruby-lang.org/en/20051003.html
http://secunia.com/advisories/16904/
http://jvn.jp/jp/JVN%2362914675/index.html
http://www.rubycentral.com/book/taint.html

Credit

Thanks to the Ruby project for reporting this vulnerability, who in turn thank Dr. Yutaka Oiwa, Research Center for Information Security, National Institute of Advanced Industrial Science and Technology for information on the issue.

This document was written by Ken MacInnis.

Other Information

Date Public:2005-09-23
Date First Published:2005-10-05
Date Last Updated:2005-12-16
CERT Advisory: 
CVE-ID(s):CVE-2005-2337
NVD-ID(s):CVE-2005-2337
US-CERT Technical Alerts: 
Metric:2.56
Document Revision:14

If you have feedback, comments, or additional information about this vulnerability, please send us email.
 

 
Page Corner Image
Produced 2005 by US-CERT, a government organization
Disclaimers and copyright information
Get Adobe Reader Get Adobe Reader