CVE-2013-6417
actionpack allows bypass of database-query restrictions
Reported by redhat · Published December 7, 2013
actionpack is fixed in 4.0.2 and 3.2.16 (RubyGems)
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 versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| actionpack | RubyGems | 4.0.2, 3.2.16 |
| rails | rubyonrails | 4.0.1 |
| ruby_on_rails | rubyonrails | 3.2.15 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| RubyGems | actionpack | 2.0.0, 4.0.0.beta1 |
| n/a | n/a | * |
Timeline
- Dec 6, 2013 CVE Published
- Aug 8, 2019 CVE Updated
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Jun 1, 2026 Security Advisory (6 in total, the first dated here)
- Oct 22, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2013-6417
vulnetix vdb fixes CVE-2013-6417
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2013-6417/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2014:0008 vendor-advisoryx_refsource_REDHAT
- openSUSE-SU-2013:1906 vendor-advisoryx_refsource_SUSE
- RHSA-2014:0469 vendor-advisoryx_refsource_REDHAT
- [ruby-security-ann] 20131203 [CVE-2013-6417] Incomplete fix to CVE-2013-0155 (Unsafe Query Generation Risk) mailing-listx_refsource_MLIST
- openSUSE-SU-2014:0009 vendor-advisoryx_refsource_SUSE
- openSUSE-SU-2013:1907 vendor-advisoryx_refsource_SUSE
- openSUSE-SU-2013:1904 vendor-advisoryx_refsource_SUSE
- x_refsource_CONFIRM
- RHSA-2013:1794 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- DSA-2888 vendor-advisoryx_refsource_DEBIAN
- http://seclists.org/oss-sec/2013/q4/403 url