Back
CVE-2012-6496
SQL injection vulnerability in the Active Record component in Ruby on Rails before 3.0.18, 3.1.x before 3.1.9, and 3.2.x before 3.2.10…
High7.5EPSS 4.6%
- Published
- Updated
- Reserved
- Assigned by
- mitre
Description
SQL injection vulnerability in the Active Record component in Ruby on Rails before 3.0.18, 3.1.x before 3.1.9, and 3.2.x before 3.2.10 allows remote attackers to execute arbitrary SQL commands via a crafted request that leverages incorrect behavior of dynamic finders in applications that can use unexpected data types in certain find_by_ method calls.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 4.6% · top 8.4% of all CVEs (2 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsactiverecordGHSA-gh2w-j7cx-2664 (opens in a new tab)
References (9)
- https://bugzilla.redhat.com/show_bug.cgi?id=889649 (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2013:0155 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/ (opens in a new tab)x_refsource_MISCx_transferred
- RHSA-2013:0220 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- GLSA-201401-22 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- RHSA-2013:0154 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- [rubyonrails-security] 20130102 SQL Injection Vulnerability in Ruby on Rails (CVE-2012-5664) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- 57084 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- RHSA-2013:0544 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-gh2w-j7cx-2664 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Record last updated .