KeygraphLabs · CVE MCP

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.

CVSS
7.5
high, from NVD
EPSS
3.90%
percentile 90.6%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-07Published
2017-10-24Package advisory GHSA-pr3r-4wrp-r2pv
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 3.90%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-pr3r-4wrp-r2pvactiverecord (RubyGems)4.2.7.1

Also known as: GHSA-pr3r-4wrp-r2pv

Related

CVEPublishedCVSSSummary
CVE-2025-551932025-08-132.7Active Record logging vulnerable to ANSI escape injection
CVE-2023-227942023-02-098.8same package: activerecord (RubyGems)
CVE-2022-445662023-02-097.5same package: activerecord (RubyGems)
CVE-2022-322242022-12-059.8same package: activerecord (RubyGems)
CVE-2021-228802021-02-117.5same package: activerecord (RubyGems)
CVE-2015-75772016-02-165.3same package: activerecord (RubyGems)
CVE-2014-35142014-08-207.5same package: activerecord (RubyGems)
CVE-2014-34832014-07-077.5same 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.

NVD · CVE.org