Where
AND
-Infinity
0
Severity
5
Input Validation
AV:N/AC:L/Au:N/C:P/I:N/A:N

It was found that Ruby did not properly reinitialize the random number generator, when forking new Ruby process. A local attacker could use this flaw to easier predict random numbers.

References: [1] https://bugzilla.novell.com/showbug.cgi?id=704409 [2] http://www.ruby-lang.org/en/news/2011/07/02/ruby-1-8-7-p352-released/ [3] http://redmine.ruby-lang.org/issues/4579 [4] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=31713 [5] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=32050 [6] http://www.openwall.com/lists/oss-security/2011/07/11/1 [7] http://www.openwall.com/lists/oss-security/2011/07/12/14

1 / 2
Source: Red Hat
First published (updated )
Severity
6.8
AV:N/AC:M/Au:N/C:P/I:P/A:P

Drew Yao of Apple Product Security reported a flaw in how Ruby's BigDecimal implementation. In a 64-bit program, if the amount of memory to allocate is greater than 2^32, the allocated amount will be truncated to a 32-bit unsigned integer, however the amount to memset will use the full 64-bit number, leading to a crash or memory corruption. After the memset, the unexpectedly small buffer could be used in other ways that lead to memory corruption or, possibly, code execution.

This flaw only affects 64-bit processes.

To test whether or not ruby is vulnerable, the following can be used (on a vulnerable ruby it will cause a segfault):

$ ruby -e 'require "bigdecimal"; BigDecimal.new("8").(0x20000000)'

Upstream committed the following to fix the flaw:

http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/bigdecimal/bigdecimal.c?r1=29364&r2=30993

1 / 2
Source: Red Hat
First published (updated )
Severity
7.3
Input Validation
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

DL::dlopen could open a library with tainted library name even if $SAFE > 0. This vulnerability affects Ruby versions 1.8, 1.9, 2.1, 2.2.

Upstream patch: https://github.com/ruby/ruby/commit/4600cf725a86ce31266153647ae5aa1197b1215b

Additional information and CVE assignment:

http://seclists.org/oss-sec/2015/q3/222

1 / 3
Source: Red Hat
First published (updated )
Severity
7.5
AV:N/AC:L/Au:N/C:P/I:P/A:P

Description of problem:

Ruby upstream has announced multiple security vulnerabilities related with not proper Ruby access restriction to critical variables and methods at various safe levels:

a, untracevar is permitted at safe level 4. Affects: rhel-2.1->rhel-5.3 Proposed patch: http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17692

b, $PROGRAMNAME may be modified at safe level 4. Doesn't Affect: rhel-2.1->rhel-4.8 Affects: rhel-5.2.z, rhel-5.3 Proposed patch: ? c, Insecure methods may be called at safe level 1-3 Affects: rhel-2.1->rhel-5.3 Proposed patch: http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17696

d, Syslog operations are permitted at safe level 4. Affects: rhel-2.1->rhel-5.3 Proposed patch: http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17809

Version-Release number of selected component (if applicable): All versions of the Ruby package as shipped with Red Hat Enterprise Linux 2.1, 3, 4 and 5.

How reproducible: Always

Steps to Reproduce: See reproducers.

Additional info -- public mention of this issue:

http://www.ruby-lang.org/en/news/2008/08/08/multiple-vulnerabilities-in-ruby/

1 / 2
Source: Red Hat
First published (updated )
Severity
7.5
Input Validation
AV:N/AC:L/Au:N/C:P/I:P/A:P

Common Vulnerabilities and Exposures assigned an identifier CVE-2008-3657 to the following vulnerability:

The dl module in Ruby 1.8.5 and earlier, 1.8.5 through 1.8.6-p286, 1.8.7 through 1.8.7-p71, and 1.9 through r18423 does not check "taintness" of inputs, which allows context-dependent attackers to bypass safe levels and execute dangerous functions by accessing a library using DL.dlopen.

Refences: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494401 http://www.ruby-lang.org/en/news/2008/08/08/multiple-vulnerabilities-in-ruby/

1 / 2
Source: Red Hat
First published (updated )
Severity
7.8
AV:N/AC:L/Au:N/C:N/I:N/A:C

Algorithmic complexity vulnerability in the WEBrick::HTTPUtils.splitheadervalue function in WEBrick::HTTP::DefaultFileHandler in WEBrick in Ruby 1.8.5 and earlier, 1.8.6 through 1.8.6-p286, 1.8.7 through 1.8.7-p71, and 1.9 through r18423 allows context-dependent attackers to cause a denial of service (CPU consumption) via a crafted HTTP request that is processed by a backtracking regular expression.

1 / 2
Source: Red Hat
First published (updated )
Severity
7.8
Integer Overflow
AV:N/AC:L/Au:N/C:N/I:N/A:C

Drew Yao of the Apple Product Security team reported an integer overflow leading to a bypass of memory re-allocation causing a heap overflow in the rbarysplice() function used by ruby interpreter for handling arrays. Problematic addition that may overflow:

if (beg >= RARRAY(ary)->len) { --> len = beg + rlen; if (len >= RARRAY(ary)->aux.capa) { REALLOCN(RARRAY(ary)->ptr, VALUE, len);

The addition may overflow causing len to be negative and due to that, REALLOCN is not called. This flaw can be used to crash and possibly execute arbitrary code with the privileges of Ruby application which use untrusted input in array operations.

Acknowledgements:

Red Hat would like to thank Drew Yao of the Apple Product Security team for reporting this issue.

1 / 2
Source: Red Hat
First published (updated )
Severity
7.8
AV:N/AC:L/Au:N/C:N/I:N/A:C

Drew Yao of the Apple Product Security team reported that the rbstrformat() function uses alloca() memory allocation function in insecure way, causing memory address returned by alloca() to be out of stack memory space. This can be used to crash and possibly execute arbitrary code with the privileges of Ruby application which use untrusted input in string operations.

Acknowledgements:

Red Hat would like to thank Drew Yao of the Apple Product Security team for reporting this issue.

1 / 2
Source: Red Hat
First published (updated )
Severity
10
Integer Overflow
AV:N/AC:L/Au:N/C:C/I:C/A:C

Drew Yao of the Apple Product Security team reported an integer overflow leading to a memory mis-allocation and heap overflow in the rbstrbufappend() function used by ruby interpreter for handling strings. This can be used to crash and possibly execute arbitrary code with the privileges of Ruby application which use untrusted input in string operations.

Acknowledgements:

Red Hat would like to thank Drew Yao of the Apple Product Security team for reporting this issue.

1 / 2
Source: Red Hat
First published (updated )
Severity
5
Path Traversal
AV:N/AC:L/Au:N/C:P/I:N/A:N

Common Vulnerabilities and Exposures assigned an identifier CVE-2008-1891 to the following vulnerability:

Directory traversal vulnerability in WEBrick in Ruby 1.9.0 and earlier, when using NTFS or FAT filesystems, allows remote attackers to read arbitrary CGI files via a trailing (1) + (plus), (2) %2b (encoded plus), (3) . (dot), (4) %2e (encoded dot), or (5) %20 (encoded space) character in the URI, possibly related to the WEBrick::HTTPServlet::FileHandler and WEBrick::HTTPServer.new functionality and the :DocumentRoot option.

Refences: http://aluigi.altervista.org/adv/webrickcgi-adv.txt http://www.frsirt.com/english/advisories/2008/1245/references http://secunia.com/advisories/29794 http://xforce.iss.net/xforce/xfdb/41824

1 / 2
Source: Red Hat
First published (updated )
Severity
5
AV:N/AC:L/Au:N/C:N/I:N/A:P

The regular expression engine (regex.c) in Ruby 1.8.5 and earlier, 1.8.6 through 1.8.6-p286, 1.8.7 through 1.8.7-p71, and 1.9 through r18423 allows remote attackers to cause a denial of service (infinite loop and crash) via multiple long requests to a Ruby socket, related to memory allocation failure, and as demonstrated against Webrick.

First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203