CVE-2016-6317 — ActiveRecord in activerecord — CVE Details
ActiveRecord in Ruby on Rails allows database-query bypass
Summary
Advisory Timeline
- First published October 24, 2017 (3275 days ago).
- Last revised February 20, 2024 — 2309 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install activerecord -v 4.2.7.1
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| activerecord | rubygems | 4.2.0, 4.2.1, 4.2.1.rc1, 4.2.1.rc2 (+16 more) | 4.2.7.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-284
- CWE-476NULL Pointer DereferenceMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-6317ADVISORY
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2016-6317.ymlWEB
- https://groups.google.com/forum/#!topic/ruby-security-ann/WccgKSKiPZAWEB
- https://groups.google.com/forum/#!topic/rubyonrails-security/rgO20zYW33sWEB
- https://rhn.redhat.com/errata/RHSA-2016-1855.htmlWEB
- https://weblog.rubyonrails.org/2016/8/11/Rails-5-0-0-1-4-2-7-2-and-3-2-22-3-have-been-releasedWEB
- https://www.openwall.com/lists/oss-security/2016/08/11/4WEB
Frequently Asked Questions
- What is CVE-2016-6317?
- ActiveRecord in Ruby on Rails allows database-query bypass This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2016-6317?
- CVE-2016-6317 affects activerecord. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2016-6317 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2022-32224CRITICAL
Active Record RCE bug with Serialized Columns
- CVE-2013-3221CRITICAL
Active Record component in Ruby on Rails has a data-type injection vulnerability
- CVE-2026-94462HIGH
Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)
- CVE-2022-44566HIGH
Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter
- CVE-2021-22880HIGH
Active Record subject to Regular Expression Denial-of-Service (ReDoS)
- CVE-2023-22794HIGH
SQL Injection Vulnerability via ActiveRecord comments
- CVE-2026-77601HIGH
OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting
- CVE-2025-55193MEDIUM
Active Record logging vulnerable to ANSI escape injection
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies