portage-ng / portage / dev-lang / ruby / 4.0.9999
portage-ng glsa
16 advisories reference dev-lang/ruby · none place version 4.0.9999 in a vulnerable range
▸ GLSA 202609-03 Ruby: Remote code execution this version unaffected high remote 2026-09-12

A vulnerability has been discovered in Ruby, possibly allowing remote code execution.

Announced
2026-09-12
Revised
2026-09-12
Access
remote
Bugs
#979773
Advisory
https://security.gentoo.org/glsa/202609-03

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 3.3.12:3.3, < 3.4.10:3.4, < 4.0.6:4.0>= 3.3.12:3.3, >= 3.4.10:3.4, >= 4.0.6:4.0
dev-ruby/erb*< 6.0.6:6>= 6.0.6:6

Background

Ruby is an interpreted scripting language for quick and easy object-oriented programming.

Description

A vulnerability has been discovered in Ruby. Please review the CVE identifier referenced below for details.

Impact

Remote code execution is possible.

Workaround

There is no known workaround at this time.

Resolution

All Ruby 3.3 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-3.3.12:3.3"

All Ruby 3.4 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-3.4.10:3.4"

All Ruby 4.0 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-4.0.6:4.0"

All ERB users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-ruby/erb-6.0.6:6"

References

▸ GLSA 202401-27 Ruby: Multiple vulnerabilities version not in range normal local and remote 2024-01-24

Multiple vulnerabilities have been discovered in Ruby, the worst of which could lead to execution of arbitrary code.

Announced
2024-01-24
Revised
2024-01-24
Access
local and remote
Bugs
#747007 #801061 #827251 #838073 #882893 #903630
Advisory
https://security.gentoo.org/glsa/202401-27

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 2.5.9:2.5, < 2.6.10:2.6, < 2.7.8:2.7, < 3.0.6:3.0, < 3.1.4:3.1, < 3.2.2:3.2>= 3.1.4:3.1, >= 3.2.2:3.2

Background

Ruby is an interpreted scripting language for quick and easy object-oriented programming. It comes bundled with a HTTP server ("WEBrick").

Description

Multiple vulnerabilities have been discovered in Ruby. Please review the CVE identifiers referenced below for details.

Impact

Please review the referenced CVE identifiers for details.

Workaround

There is no known workaround at this time.

Resolution

All Ruby users should upgrade to the latest version:

# emerge --sync
# emerge --ask --depclean ruby:2.5 ruby:2.6 ruby:2.7 ruby:3.0
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-3.1.4:3.1"
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-3.2.2:3.2"

References

▸ GLSA 202003-06 Ruby: Multiple vulnerabilities version not in range normal remote 2020-03-13

Multiple vulnerabilities have been found in Ruby, the worst of which could lead to the remote execution of arbitrary code.

Announced
2020-03-13
Revised
2020-03-13
Access
remote
Bugs
#696004
Advisory
https://security.gentoo.org/glsa/202003-06

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 2.4.9:2.4, < 2.5.7:2.5>= 2.4.9:2.4, >= 2.5.7:2.5

Background

Ruby is an interpreted object-oriented programming language. The elaborate standard library includes an HTTP server (“WEBRick”) and a class for XML parsing (“REXML”).

Description

Multiple vulnerabilities have been discovered in Ruby. Please review the CVE identifiers referenced below for details.

Impact

A remote attacker could execute arbitrary code, have unauthorized access by bypassing intended path matching or cause a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All Ruby 2.4.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-2.4.9:2.4"

All Ruby 2.5.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-2.5.7:2.5"

References

▸ GLSA 201802-05 Ruby: Command injection version not in range normal remote 2018-02-20

A vulnerability has been found in Ruby which may allow for arbitrary command execution.

Announced
2018-02-20
Revised
2018-02-20
Access
remote
Bugs
#641090
Advisory
https://security.gentoo.org/glsa/201802-05

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 2.2.9:2.2>= 2.2.9:2.2

Background

Ruby is an interpreted object-oriented programming language. The elaborate standard library includes an HTTP server (“WEBRick”) and a class for XML parsing (“REXML”).

Description

A command injection flaw was discovered in Net::FTP which impacts Ruby.

Impact

A remote attacker, by enticing a user to download and open a crafted file from a malicious FTP server, could execute arbitrary commands with the privileges of the process.

Workaround

There is no known workaround at this time.

Resolution

All Ruby users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-2.2.9:2.2"

References

▸ GLSA 201710-18 Ruby: Multiple vulnerabilities this version unaffected normal remote 2017-10-18

Multiple vulnerabilities have been found in Ruby, the worst of which could lead to the remote execution of arbitrary code.

Announced
2017-10-18
Revised
2017-10-18
Access
remote
Bugs
#605536 #629484 #631034
Advisory
https://security.gentoo.org/glsa/201710-18

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 2.2.8>= 2.2.8

Background

Ruby is an interpreted object-oriented programming language. The elaborate standard library includes an HTTP server (“WEBRick”) and a class for XML parsing (“REXML”).

Description

Multiple vulnerabilities have been discovered in Ruby. Please review the referenced CVE identifiers for details.

Impact

A remote attacker could execute arbitrary code, cause a Denial of Service condition, or obtain sensitive information.

Workaround

There is no known workaround at this time.

Resolution

All Ruby users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-2.2.8"

References

▸ GLSA 201412-27 Ruby: Denial of service this version unaffected normal local, remote 2014-12-13

Multiple vulnerabilities have been found in Ruby, allowing context-dependent attackers to cause a Denial of Service condition.

Announced
2014-12-13
Revised
2014-12-13
Access
local, remote
Bugs
#355439 #369141 #396301 #437366 #442580 #458776 #492282 #527084 #529216
Advisory
https://security.gentoo.org/glsa/201412-27

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 2.0.0_p598>= 1.9.3_p551 (revision), >= 2.0.0_p598

Background

Ruby is an object-oriented scripting language.

Description

Multiple vulnerabilities have been discovered in Ruby. Please review the CVE identifiers referenced below for details.

Impact

A context-dependent attacker could possibly execute arbitrary code with the privileges of the process, cause a Denial of Service condition, or bypass security restrictions.

Workaround

There is no known workaround at this time.

Resolution

All Ruby 1.9 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-1.9.3_p551"

All Ruby 2.0 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-2.0.0_p598"

References

▸ GLSA 201001-09 Ruby: Terminal Control Character Injection this version unaffected normal remote 2010-01-14

An input sanitation flaw in the WEBrick HTTP server included in Ruby might allow remote attackers to inject arbitrary control characters into terminal sessions.

Announced
2010-01-14
Revised
2010-01-14
Access
remote
Bugs
#300468
Advisory
https://security.gentoo.org/glsa/201001-09

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 1.8.7_p249>= 1.8.7_p249, >= 1.8.6_p388 (revision)

Background

Ruby is an interpreted scripting language for quick and easy object-oriented programming. It comes bundled with a HTTP server ("WEBrick").

Description

Giovanni Pellerano, Alessandro Tanasi and Francesco Ongaro reported that WEBrick does not filter terminal control characters, for instance when handling HTTP logs.

Impact

A remote attacker could send a specially crafted HTTP request to a WEBrick server to inject arbitrary terminal control characters, possibly resulting in the execution of arbitrary commands, data loss, or other unspecified impact. This could also be used to facilitate other attacks.

Workaround

There is no known workaround at this time.

Resolution

All Ruby 1.8.7 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-1.8.7_p249"

All Ruby 1.8.6 users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-1.8.6_p388"

References

▸ GLSA 200906-02 Ruby: Denial of service this version unaffected normal remote 2009-06-28

A flaw in the Ruby standard library might allow remote attackers to cause a Denial of Service attack.

Announced
2009-06-28
Revised
2009-06-28
Access
remote
Bugs
#273213
Advisory
https://security.gentoo.org/glsa/200906-02

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 1.8.6_p369>= 1.8.6_p369

Background

Ruby is an interpreted object-oriented programming language. The elaborate standard library includes the "BigDecimal" class.

Description

Tadayoshi Funaba reported that BigDecimal in ext/bigdecimal/bigdecimal.c does not properly handle string arguments containing overly long numbers.

Impact

A remote attacker could exploit this issue to remotely cause a Denial of Service attack.

Workaround

There is no known workaround at this time.

Resolution

All Ruby users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-1.8.6_p369"

References

▸ GLSA 200812-17 Ruby: Multiple vulnerabilities this version unaffected normal remote 2008-12-16

Multiple vulnerabilities have been discovered in Ruby that allow for attacks including arbitrary code execution and Denial of Service.

Announced
2008-12-16
Revised
2008-12-16
Access
remote
Bugs
#225465 #236060
Advisory
https://security.gentoo.org/glsa/200812-17

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 1.8.6_p287-r1>= 1.8.6_p287-r1

Background

Ruby is an interpreted object-oriented programming language. The elaborate standard library includes an HTTP server ("WEBRick") and a class for XML parsing ("REXML").

Description

Multiple vulnerabilities have been discovered in the Ruby interpreter and its standard libraries. Drew Yao of Apple Product Security discovered the following flaws:

  • Arbitrary code execution or Denial of Service (memory corruption) in the rb_str_buf_append() function (CVE-2008-2662).
  • Arbitrary code execution or Denial of Service (memory corruption) in the rb_ary_stor() function (CVE-2008-2663).
  • Memory corruption via alloca in the rb_str_format() function (CVE-2008-2664).
  • Memory corruption ("REALLOC_N") in the rb_ary_splice() and rb_ary_replace() functions (CVE-2008-2725).
  • Memory corruption ("beg + rlen") in the rb_ary_splice() and rb_ary_replace() functions (CVE-2008-2726).

Furthermore, several other vulnerabilities have been reported:

  • Tanaka Akira reported an issue with resolv.rb that enables attackers to spoof DNS responses (CVE-2008-1447).
  • Akira Tagoh of RedHat discovered a Denial of Service (crash) issue in the rb_ary_fill() function in array.c (CVE-2008-2376).
  • Several safe level bypass vulnerabilities were discovered and reported by Keita Yamaguchi (CVE-2008-3655).
  • Christian Neukirchen is credited for discovering a Denial of Service (CPU consumption) attack in the WEBRick HTTP server (CVE-2008-3656).
  • A fault in the dl module allowed the circumvention of taintness checks which could possibly lead to insecure code execution was reported by "sheepman" (CVE-2008-3657).
  • Tanaka Akira again found a DNS spoofing vulnerability caused by the resolv.rb implementation using poor randomness (CVE-2008-3905).
  • Luka Treiber and Mitja Kolsek (ACROS Security) disclosed a Denial of Service (CPU consumption) vulnerability in the REXML module when dealing with recursive entity expansion (CVE-2008-3790).

Impact

These vulnerabilities allow remote attackers to execute arbitrary code, spoof DNS responses, bypass Ruby's built-in security and taintness checks, and cause a Denial of Service via crash or CPU exhaustion.

Workaround

There is no known workaround at this time.

Resolution

All Ruby users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-1.8.6_p287-r1"

References

▸ GLSA 200612-21 Ruby: Denial of Service vulnerability this version unaffected normal remote 2006-12-20

The Ruby cgi.rb CGI library is vulnerable to a Denial of Service attack.

Announced
2006-12-20
Revised
2006-12-20
Access
remote
Bugs
#157048
Advisory
https://security.gentoo.org/glsa/200612-21

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 1.8.5_p2>= 1.8.5_p2

Background

Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.

Description

The read_multipart function of the CGI library shipped with Ruby (cgi.rb) does not properly check boundaries in MIME multipart content. This is a different issue than GLSA 200611-12.

Impact

The vulnerability can be exploited by sending the cgi.rb library a crafted HTTP request with multipart MIME encoding that contains a malformed MIME boundary specifier. Successful exploitation of the vulnerability causes the library to go into an infinite loop.

Workaround

There is no known workaround at this time.

Resolution

All Ruby users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-1.8.5_p2"

References

▸ GLSA 200611-12 Ruby: Denial of Service vulnerability this version unaffected normal remote 2006-11-20

The Ruby cgi.rb CGI library is vulnerable to a Denial of Service attack.

Announced
2006-11-20
Revised
2009-06-11 (revision 2)
Access
remote
Bugs
#153497
Advisory
https://security.gentoo.org/glsa/200611-12

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 1.8.5-r3>= 1.8.5-r3

Background

Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.

Description

Zed Shaw, Jeremy Kemper, and Jamis Buck of the Mongrel project reported that the CGI library shipped with Ruby is vulnerable to a remote Denial of Service by an unauthenticated user.

Impact

The vulnerability can be exploited by sending the cgi.rb library an HTTP request with multipart MIME encoding that contains a malformed MIME boundary specifier beginning with "-" instead of "--". Successful exploitation of the vulnerability causes the library to go into an infinite loop waiting for additional nonexistent input.

Workaround

There is no known workaround at this time.

Resolution

All Ruby users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-1.8.5-r3"

References

▸ GLSA 200605-11 Ruby: Denial of service this version unaffected normal remote 2006-05-10

Ruby WEBrick and XMLRPC servers are vulnerable to Denial of Service.

Announced
2006-05-10
Revised
2006-05-10
Access
remote
Bugs
#130657
Advisory
https://security.gentoo.org/glsa/200605-11

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 1.8.4-r1>= 1.8.4-r1

Background

Ruby is an interpreted scripting language for quick and easy object-oriented programming. It comes bundled with HTTP ("WEBrick") and XMLRPC server objects.

Description

Ruby uses blocking sockets for WEBrick and XMLRPC servers.

Impact

An attacker could send large amounts of data to an affected server to block the socket and thus deny other connections to the server.

Workaround

There is no known workaround at this time.

Resolution

All Ruby users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-1.8.4-r1"

References

▸ GLSA 200510-05 Ruby: Security bypass vulnerability this version unaffected normal remote 2005-10-06

Ruby is vulnerable to a security bypass of the safe level mechanism.

Announced
2005-10-06
Revised
2005-10-06
Access
remote
Bugs
#106996
Advisory
https://security.gentoo.org/glsa/200510-05

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 1.8.3>= 1.8.3

Background

Ruby is an interpreted scripting language for quick and easy object-oriented programming. Ruby supports the safe execution of untrusted code using a safe level and taint flag mechanism.

Description

Dr. Yutaka Oiwa discovered that Ruby fails to properly enforce safe level protections.

Impact

An attacker could exploit this vulnerability to execute arbitrary code beyond the restrictions specified in each safe level.

Workaround

There is no known workaround at this time.

Resolution

All Ruby users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-1.8.3"

References

▸ GLSA 200507-10 Ruby: Arbitrary command execution through XML-RPC this version unaffected high remote 2005-07-11

A vulnerability in XMLRPC.iPIMethods allows remote attackers to execute arbitrary commands.

Announced
2005-07-11
Revised
2005-07-11
Access
remote
Bugs
#96784
Advisory
https://security.gentoo.org/glsa/200507-10

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 1.8.2-r2>= 1.8.2-r2

Background

Ruby is an interpreted scripting language for quick and easy object-oriented programming. XML-RPC is a remote procedure call protocol encoded in XML.

Description

Nobuhiro IMAI reported that an invalid default value in "utils.rb" causes the security protections of the XML-RPC server to fail.

Impact

A remote attacker could exploit this vulnerability to execute arbitrary commands.

Workaround

There is no known workaround at this time.

Resolution

All Ruby users should upgrade to the latest available version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-1.8.2-r2"

References

▸ GLSA 200411-23 Ruby: Denial of Service issue this version unaffected normal remote 2004-11-16

The CGI module in Ruby can be sent into an infinite loop, resulting in a Denial of Service condition.

Announced
2004-11-16
Revised
2004-11-16
Access
remote
Bugs
#69985
Advisory
https://security.gentoo.org/glsa/200411-23

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 1.8.2_pre3>= 1.6.8-r12 (revision), >= 1.8.2_pre3

Background

Ruby is an interpreted scripting language for quick and easy object-oriented programming. Ruby's CGI module can be used to build web applications.

Description

Ruby's developers found and fixed an issue in the CGI module that can be triggered remotely and cause an infinite loop.

Impact

A remote attacker could trigger the vulnerability through an exposed Ruby web application and cause the server to use unnecessary CPU resources, potentially resulting in a Denial of Service.

Workaround

There is no known workaround at this time.

Resolution

All Ruby 1.6.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-1.6.8-r12"

All Ruby 1.8.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/ruby-1.8.2_pre3"

References

▸ GLSA 200409-08 Ruby: CGI::Session creates files insecurely this version unaffected normal local 2004-09-03

When used for CGI scripting, Ruby creates session files in /tmp with the permissions of the default umask. Depending on that umask, local users may be able to read sensitive data stored in session files.

Announced
2004-09-03
Revised
2004-09-03
Access
local
Bugs
#60525
Advisory
https://security.gentoo.org/glsa/200409-08

Affected packages

PackageArchVulnerableUnaffected
dev-lang/ruby*< 1.8.2_pre2>= 1.6.8-r11 (revision), >= 1.8.0-r7 (revision), >= 1.8.2_pre2

Background

Ruby is an Object Oriented, interpreted scripting language used for many system scripting tasks. It can also be used for CGI web applications.

Description

The CGI::Session::FileStore implementation (and presumably CGI::Session::PStore), which allow data associated with a particular Session instance to be written to a file, writes to a file in /tmp with no regard for secure permissions. As a result, the file is left with whatever the default umask permissions are, which commonly would allow other local users to read the data from that session file.

Impact

Depending on the default umask, any data stored using these methods could be read by other users on the system.

Workaround

By changing the default umask on the system to not permit read access to other users (e.g. 0700), one can prevent these files from being readable by other users.

Resolution

All Ruby users should upgrade to the latest version:

# emerge sync

# emerge -pv ">=dev-lang/ruby-your_version"
# emerge ">=dev-lang/ruby-your_version"

References