GHSA-pr3r-4wrp-r2pv

Suggest an improvement
Source
https://github.com/advisories/GHSA-pr3r-4wrp-r2pv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-pr3r-4wrp-r2pv/GHSA-pr3r-4wrp-r2pv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pr3r-4wrp-r2pv
Aliases
Published
2017-10-24T18:33:35Z
Modified
2024-02-20T05:32:28.377264Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
ActiveRecord in Ruby on Rails allows database-query bypass
Details

Active 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.

References

Affected packages

RubyGems / activerecord

Package

Name
activerecord
Purl
pkg:gem/activerecord

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.2.0
Fixed
4.2.7.1

Affected versions

4.*

4.2.0
4.2.1.rc1
4.2.1.rc2
4.2.1.rc3
4.2.1.rc4
4.2.1
4.2.2
4.2.3.rc1
4.2.3
4.2.4.rc1
4.2.4
4.2.5.rc1
4.2.5.rc2
4.2.5
4.2.5.1
4.2.5.2
4.2.6.rc1
4.2.6
4.2.7.rc1
4.2.7

Database specific

{
    "last_known_affected_version_range": "<= 4.2.7.0"
}