{"cve":"CVE-2012-6496","nvd":{"published":"2013-01-04T04:46:02.947","modified":"2026-06-16T23:48:14.190","status":"Modified","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.","cvss_v4":null,"cvss_v3":null,"cwes":["CWE-89"],"references":["http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/","http://rhn.redhat.com/errata/RHSA-2013-0154.html","http://rhn.redhat.com/errata/RHSA-2013-0155.html","http://rhn.redhat.com/errata/RHSA-2013-0220.html","http://rhn.redhat.com/errata/RHSA-2013-0544.html"],"products":["rubyonrails:rails","rubyonrails:ruby_on_rails"],"source":"nvd","synced_at":"2026-10-19T20:27:27.940201468+00:00"},"epss":{"cve":"CVE-2012-6496","score":0.04582,"percentile":0.91636,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gh2w-j7cx-2664","url":"https://osv.dev/vulnerability/GHSA-gh2w-j7cx-2664","summary":"Active Record contains SQL Injection","modified":"2025-01-21T17:08:19.377001Z","packages":[{"ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":[">=3.0.0.beta <3.0.18"],"fixed":["3.0.18"]},{"ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":[">=3.1.0 <3.1.9"],"fixed":["3.1.9"]},{"ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":[">=3.2.0 <3.2.10"],"fixed":["3.2.10"]},{"ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":["<2.3.15"],"fixed":["2.3.15"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}