portage-ng / portage / dev-ruby / rails / 8.0.4
portage-ng glsa
5 advisories reference dev-ruby/rails · none place version 8.0.4 in a vulnerable range
▸ GLSA 202408-24 Ruby on Rails: Remote Code Execution version not in range normal remote 2024-08-11

A vulnerability has been discovered in Ruby on Rails, which can lead to remote code execution via serialization of data.

Announced
2024-08-11
Revised
2024-08-11
Access
remote
Bugs
#857840
Advisory
https://security.gentoo.org/glsa/202408-24

Affected packages

PackageArchVulnerableUnaffected
dev-ruby/rails*< 7.0.3.1:7.0, < 6.1.6.1:6.1>= 7.0.3.1:7.0, >= 6.1.6.1:6.1

Background

Ruby on Rails is a free web framework used to develop database-driven web applications.

Description

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

Impact

When serialized columns that use YAML (the default) are deserialized, Rails uses YAML.unsafe_load to convert the YAML data in to Ruby objects. If an attacker can manipulate data in the database (via means like SQL injection), then it may be possible for the attacker to escalate to an RCE. Impacted Active Record models will look something like this: class User < ApplicationRecord serialize :options # Vulnerable: Uses YAML for serialization serialize :values, Array # Vulnerable: Uses YAML for serialization serialize :values, JSON # Not vulnerable end The released versions change the default YAML deserializer to use YAML.safe_load, which prevents deserialization of possibly dangerous objects. This may introduce backwards compatibility issues with existing data.

Workaround

There is no known workaround at this time.

Resolution

All Ruby on Rails users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-ruby/rails-6.1.6.1:6.1"
# emerge --ask --oneshot --verbose ">=dev-ruby/rails-7.0.3.1:7.0"

References

▸ GLSA 201412-28 Ruby on Rails: Multiple vulnerabilities this version unaffected high remote 2014-12-14

Multiple vulnerabilities were found in Ruby on Rails, the worst of which allowing for execution of arbitrary code.

Announced
2014-12-14
Revised
2014-12-14
Access
remote
Bugs
#354249 #379511 #386377 #450974 #453844 #456840 #462452
Advisory
https://security.gentoo.org/glsa/201412-28

Affected packages

PackageArchVulnerableUnaffected
dev-ruby/rails*< 2.3.18>= 2.3.18

Background

Ruby on Rails is a web-application and persistence framework.

Description

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

Impact

A remote attacker could execute arbitrary code or cause a Denial of Service condition. Furthermore, a remote attacker may be able to execute arbitrary SQL commands, change parameter names for form inputs and make changes to arbitrary records in the system, bypass intended access restrictions, render arbitrary views, inject arbitrary web script or HTML, or conduct cross-site request forgery (CSRF) attacks.

Workaround

There is no known workaround at this time.

Resolution

All Ruby on Rails 2.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-ruby/rails-2.3.18"

NOTE: All applications using Ruby on Rails should also be configured to use the latest version available by running “rake rails:update” inside the application directory.

NOTE: This is a legacy GLSA and stable updates for Ruby on Rails, including the unaffected version listed above, are no longer available from Gentoo. It may be possible to upgrade to the 3.2, 4.0, or 4.1 branches, however these packages are not currently stable.

References

▸ GLSA 200912-02 Ruby on Rails: Multiple vulnerabilities this version unaffected normal remote 2009-12-20

Multiple vulnerabilities have been discovered in Rails, the worst of which leading to the execution of arbitrary SQL statements.

Announced
2009-12-20
Revised
2009-12-20
Access
remote
Bugs
#200159 #237385 #247549 #276279 #283396 #294797
Advisory
https://security.gentoo.org/glsa/200912-02

Affected packages

PackageArchVulnerableUnaffected
dev-ruby/rails*< 2.2.2>= 2.3.5, >= 2.2.3-r1 (revision)

Background

Ruby on Rails is a web-application and persistence framework.

Description

The following vulnerabilities were discovered:

  • sameer reported that lib/action_controller/cgi_process.rb removes the :cookie_only attribute from the default session options (CVE-2007-6077), due to an incomplete fix for CVE-2007-5380 (GLSA 200711-17).
  • Tobias Schlottke reported that the :limit and :offset parameters of ActiveRecord::Base.find() are not properly sanitized before being processed (CVE-2008-4094).
  • Steve from Coderrr reported that the CRSF protection in protect_from_forgery() does not parse the text/plain MIME format (CVE-2008-7248).
  • Nate reported a documentation error that leads to the assumption that a block returning nil passed to authenticate_or_request_with_http_digest() would deny access to the requested resource (CVE-2009-2422).
  • Brian Mastenbrook reported an input sanitation flaw, related to multibyte characters (CVE-2009-3009).
  • Gabe da Silveira reported an input sanitation flaw in the strip_tags() function (CVE-2009-4214).
  • Coda Hale reported an information disclosure vulnerability related to HMAC digests (CVE-2009-3086).

Impact

A remote attacker could send specially crafted requests to a vulnerable application, possibly leading to the execution of arbitrary SQL statements or a circumvention of access control. A remote attacker could also conduct session fixation attacks to hijack a user's session or bypass the CSRF protection mechanism, or furthermore conduct Cross-Site Scripting attacks or forge a digest via multiple attempts.

Workaround

There is no known workaround at this time.

Resolution

All Ruby on Rails 2.3.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-ruby/rails-2.3.5"

All Ruby on Rails 2.2.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose "=dev-ruby/rails-2.2.3-r1"

NOTE: All applications using Ruby on Rails should also be configured to use the latest version available by running "rake rails:update" inside the application directory.

References

▸ GLSA 200711-17 Ruby on Rails: Multiple vulnerabilities this version unaffected normal remote 2007-11-14

Several vulnerabilities were found in Ruby on Rails allowing for file disclosure and theft of user credentials.

Announced
2007-11-14
Revised
2007-11-14
Access
remote
Bugs
#195315 #182223
Advisory
https://security.gentoo.org/glsa/200711-17

Affected packages

PackageArchVulnerableUnaffected
dev-ruby/rails*< 1.2.5>= 1.2.5

Background

Ruby on Rails is a free web framework used to develop database-driven web applications.

Description

candlerb found that ActiveResource, when processing responses using the Hash.from_xml() function, does not properly sanitize filenames (CVE-2007-5380). The session management functionality allowed the "session_id" to be set in the URL (CVE-2007-5380). BCC discovered that the to_json() function does not properly sanitize input before returning it to the user (CVE-2007-3227).

Impact

Unauthenticated remote attackers could exploit these vulnerabilities to determine the existence of files or to read the contents of arbitrary XML files; conduct session fixation attacks and gain unauthorized access; and to execute arbitrary HTML and script code in a user's browser session in context of an affected site by enticing a user to browse a specially crafted URL.

Workaround

There is no known workaround at this time.

Resolution

All Ruby on Rails users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-ruby/rails-1.2.5"

References

▸ GLSA 200608-20 Ruby on Rails: Several vulnerabilities this version unaffected high remote 2006-08-14

Ruby on Rails has some weaknesses potentially allowing a Denial of Service and maybe the remote execution of arbitrary Ruby scripts.

Announced
2006-08-14
Revised
2006-12-13 (revision 2)
Access
remote
Bugs
#143369
Advisory
https://security.gentoo.org/glsa/200608-20

Affected packages

PackageArchVulnerableUnaffected
dev-ruby/rails*< 1.1.6>= 1.1.6

Background

Ruby on Rails is an open-source web framework.

Description

The Ruby on Rails developers have corrected some weaknesses in action_controller/, relative to the handling of the user input and the LOAD_PATH variable. A remote attacker could inject arbitrary entries into the LOAD_PATH variable and alter the main Ruby on Rails process. The security hole has only been partly solved in version 1.1.5. Version 1.1.6 now fully corrects it.

Impact

A remote attacker that would exploit these weaknesses might cause a Denial of Service of the web framework and maybe inject arbitrary Ruby scripts.

Workaround

There is no known workaround at this time.

Resolution

All Ruby on Rails users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-ruby/rails-1.1.6"

References