CVE-2016-6317 · redhat
CVE-2016-6317
Action Record in Ruby on Rails 4.2.x before 4.2.7.1 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, as demonstrated by certain "[nil]" values, a related issue to CVE-2012-2660, CVE-2012-2694, and CVE-2013-0155.
Published 2016-09-07, last changed 2026-06-17. Weakness: CWE-284, CWE-476.
How to fix
Upgrade to a fixed version: activerecord 4.2.7.1 (RubyGems). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in rails/rails by 93ab8c2638. Functions changed by the fix: call. Regression tests: actionpack/test/dispatch/request/json_params_parsing_test.rb. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2016-09-07 | Published |
| 2017-10-24 | Package advisory GHSA-pr3r-4wrp-r2pv |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 3.90% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-pr3r-4wrp-r2pv | activerecord (RubyGems) | 4.2.7.1 |
Also known as: GHSA-pr3r-4wrp-r2pv
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2025-55193 | 2025-08-13 | 2.7 | Active Record logging vulnerable to ANSI escape injection |
| CVE-2023-22794 | 2023-02-09 | 8.8 | same package: activerecord (RubyGems) |
| CVE-2022-44566 | 2023-02-09 | 7.5 | same package: activerecord (RubyGems) |
| CVE-2022-32224 | 2022-12-05 | 9.8 | same package: activerecord (RubyGems) |
| CVE-2021-22880 | 2021-02-11 | 7.5 | same package: activerecord (RubyGems) |
| CVE-2015-7577 | 2016-02-16 | 5.3 | same package: activerecord (RubyGems) |
| CVE-2014-3514 | 2014-08-20 | 7.5 | same package: activerecord (RubyGems) |
| CVE-2014-3483 | 2014-07-07 | 7.5 | same package: activerecord (RubyGems) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-6317, or call /api/v1/vulnerabilities/CVE-2016-6317. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.