Skip to content
OpenAdvisories
Medium CVE-2013-6417 EUVD-2017-0324GHSA-wpw7-wxjm-cw8r

actionpack allows bypass of database-query restrictions

Published Dec 7, 2013 · Updated Aug 6, 2024 · Assigned by redhat

Description

actionpack/lib/action_dispatch/http/request.rb in Ruby on Rails before 3.2.16 and 4.x before 4.0.2 does not properly consider differences in parameter handling between the Active Record component and the JSON implementation, which allows remote attackers to bypass intended database-query restrictions and perform NULL checks or trigger missing WHERE clauses via a crafted request that leverages (1) third-party Rack middleware or (2) custom Rack middleware. NOTE: this vulnerability exists because of an incomplete fix for CVE-2013-0155.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 7 ruby-actionpack-3.2 3.2.6-6+deb7u1 DSA-2888-1
ReleasePackageFixed inAdvisory
RHEL 1 ruby193-rubygem-actionpack +1 1:3.2.8-5.1.el6 RHSA-2013:1794
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat OpenStack 3 ruby193-rubygem-actionpack +1 1:3.2.8-5.1.el6 RHSA-2014:0008
Red Hat CloudForms 5 cfme +3 5.2.3.2-1.el6cf RHSA-2014:0469
Red Hat CloudForms 5 postgresql92-postgresql +10 9.2.7-1.1.el6 RHSA-2014:0469
Red Hat CloudForms 5 prince 9.0r2-4.el6cf RHSA-2014:0469
Red Hat CloudForms 5 ruby193-rubygem-actionpack 1:3.2.13-6.el6cf RHSA-2014:0469

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems actionpack >= 3.0.0, < 3.2.16 3.2.16 GHSA-wpw7-wxjm-cw8r
RubyGems actionpack >= 4.0.0, < 4.0.2 4.0.2 GHSA-wpw7-wxjm-cw8r

Advisories 4

References