CVE-2008-4094:
Rails ActiveRecord gem vulnerable to SQL injection
7.5
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.85741%
CWE
Published
10/24/2017
Updated
11/8/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
activerecord | rubygems | < 2.1.1 | 2.1.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows the vulnerability stemmed from unsanitized interpolation of :limit/:offset in add_limit_offset!. The abstract implementation and MySQL adapter override both lacked input validation. The patch introduced sanitize_limit and offset.to_i to mitigate this. The CVE description explicitly cites these parameters as attack vectors, and the fixes directly target these functions.