RHSA-2016:0455High

Red Hat Security Advisory: ruby193 security update

Published
March 15, 2016
Last Modified
November 2, 2026

🔗 CVE IDs covered (6)

📋 Description

CVE-2015-7576 — rubygem-actionpack: Timing attack vulnerability in basic authentication in Action Controller CVE-2015-7577 — rubygem-activerecord: Nested attributes rejection proc bypass in Active Record CVE-2016-0751 — rubygem-actionpack: possible object leak and denial of service attack in Action Pack CVE-2016-0752 — rubygem-actionpack: directory traversal flaw in Action View CVE-2016-2097 — rubygem-actionpack: directory traversal in Action View, incomplete CVE-2016-0752 fix CVE-2016-2098 — rubygem-actionpack: code injection vulnerability in Action View

🎯 Affected products72

  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6)
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
  • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6)
  • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7)
  • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1)
  • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2)
  • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6)
  • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el6.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el6.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el6.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el6.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el6.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el6.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el6.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el6.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el7.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el7.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el7.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el7.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2)
  • ruby193-rubygem-actionpack-1:3.2.8-16.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
  • ruby193-rubygem-actionpack-doc-1:3.2.8-16.el6.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6)
  • ruby193-rubygem-actionpack-doc-1:3.2.8-16.el6.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6)
  • ruby193-rubygem-actionpack-doc-1:3.2.8-16.el6.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7)
  • ruby193-rubygem-actionpack-doc-1:3.2.8-16.el6.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6)
  • ruby193-rubygem-actionpack-doc-1:3.2.8-16.el7.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
  • ruby193-rubygem-actionpack-doc-1:3.2.8-16.el7.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1)
  • +42 more not shown

✅ Remediation

Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258 Workaround: Use following code to monkey-patch http_basic_authenticate_with method in ActionController: ~~~ module ActiveSupport module SecurityUtils def secure_compare(a, b) return false unless a.bytesize == b.bytesize l = a.unpack "C#{a.bytesize}" res = 0 b.each_byte { |byte| res |= byte ^ l.shift } res == 0 end module_function :secure_compare def variable_size_secure_compare(a, b) secure_compare(::Digest::SHA256.hexdigest(a), ::Digest::SHA256.hexdigest(b)) end module_function :variable_size_secure_compare end end module ActionController class Base def self.http_basic_authenticate_with(options = {}) before_action(options.except(:name, :password, :realm)) do authenticate_or_request_with_http_basic(options[:realm] || "Application") do |name, password| # This comparison uses & so that it doesn't short circuit and # uses `variable_size_secure_compare` so that length information # isn't leaked. ActiveSupport::SecurityUtils.variable_size_secure_compare(name, options[:name]) & ActiveSupport::SecurityUtils.variable_size_secure_compare(password, options[:password]) end end end end end ~~~ Workaround: Use following code to monkey-patch mime types cache and disable caching. ``` require 'action_dispatch/http/mime_type' Mime.const_set :LOOKUP, Hash.new { |h,k| Mime::Type.new(k) unless k.blank? } ``` Alternatively perform filtering of mime types in the Accept header to allow only known types. Workaround: Avoid passing untrusted input to render method, or verify the input using whitelist before passing it to the render method: ``` def index render verify_template(params[:id]) end private def verify_template(name) # add verification logic particular to your application here end ```

🔗 References (9)