Skip to navigation

Security Advisory Critical: Ruby on Rails security update

Advisory: RHSA-2013:0155-1
Type: Security Advisory
Severity: Critical
Issued on: 2013-01-10
Last updated on: 2013-01-10
Affected Products: Red Hat CloudForms
CVEs (cve.mitre.org): CVE-2012-6496
CVE-2013-0155
CVE-2013-0156

Details

Updated rubygem-actionpack, rubygem-activesupport, and rubygem-activerecord
packages that fix multiple security issues are now available for Red Hat
CloudForms.

The Red Hat Security Response Team has rated this update as having critical
security impact. Common Vulnerability Scoring System (CVSS) base scores,
which give detailed severity ratings, are available for each vulnerability
from the CVE links in the References section.

Ruby on Rails is a model–view–controller (MVC) framework for web
application development. Action Pack implements the controller and the view
components. Active Record implements object-relational mapping for
accessing database entries using objects. Active Support provides support
and utility classes used by the Ruby on Rails framework.

Multiple flaws were found in the way Ruby on Rails performed XML parameter
parsing in HTTP requests. A remote attacker could use these flaws to
execute arbitrary code with the privileges of a Ruby on Rails application,
perform SQL injection attacks, or bypass the authentication using a
specially-created HTTP request. (CVE-2013-0156)

Red Hat is aware that a public exploit for the CVE-2013-0156 issues is
available that allows remote code execution in applications using Ruby on
Rails.

A flaw was found in the way Ruby on Rails performed JSON parameter parsing.
If a Ruby on Rails application passed JSON parameters to Active Record, it
could result in the generation of unexpected SQL queries. A remote attacker
could possibly use this flaw to manipulate SQL queries executed by the
application. (CVE-2013-0155)

A flaw was found in the way rubygem-activerecord dynamic finders extracted
options from method parameters. A remote attacker could possibly use this
flaw to perform SQL injection attacks against applications using the Active
Record dynamic finder methods. (CVE-2012-6496)

Users are advised to upgrade to these updated rubygem-actionpack,
rubygem-activesupport, and rubygem-activerecord packages, which resolve
these issues. Users of CloudForms Cloud Engine must run "aeolus-services
restart" and users of CloudForms System Engine must run "katello-service
restart" for this update to take effect.


Solution

Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258

Updated packages

Red Hat CloudForms

SRPMS:
rubygem-actionpack-3.0.10-11.el6cf.src.rpm     MD5: 718a55c88033d4de8a4b166d5f57a015
SHA-256: b90a54d59c15d6936b3000b031f4733e42e5b53b02b78eba3d7b8c1e299b65df
rubygem-activerecord-3.0.10-8.el6cf.src.rpm     MD5: a6a25d70e83ea5624386daf6972405ff
SHA-256: d9de829ca95455e97b875cb7bfae7dc5fb09c2032158038bb9d65397b61125be
rubygem-activesupport-3.0.10-5.el6cf.src.rpm
File outdated by:  RHSA-2013:0548
    MD5: 95204412795b10ed1c1b85b87edd6125
SHA-256: 9c0ac74602a775ffb74153bdc7607fe4167d83bb62450e86b62dd65c879e0917
 
x86_64:
rubygem-actionpack-3.0.10-11.el6cf.noarch.rpm     MD5: e40fe93e5b6f86bf07e70de071d6b262
SHA-256: 5bc484a5887cf1bd2d4bbfbb3ddc938461be4c196e3b420bb99c3d70b3aa0a85
rubygem-activerecord-3.0.10-8.el6cf.noarch.rpm     MD5: 70db35cd64dc275c08d6834814f5bef5
SHA-256: 4fb5eb0de9bd5a099c6b7818ac6ec25362796d061b587770e3ce9c18b05a81ea
rubygem-activesupport-3.0.10-5.el6cf.noarch.rpm
File outdated by:  RHSA-2013:0548
    MD5: e8947a0700f63e5c59de9dca12ce2d65
SHA-256: 48b943b32e3ef370763d01a2c3a5b0f08717bfb06a2946675d192ec0878d4e62
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

889649 - CVE-2012-6496 rubygem-activerecord: find_by_* SQL Injection
892866 - CVE-2013-0155 rubygem-actionpack, rubygem-activerecord: Unsafe Query Generation Risk in Ruby on Rails
892870 - CVE-2013-0156 rubygem-activesupport: Multiple vulnerabilities in parameter parsing in ActionPack


References



These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/