{"cve":"CVE-2012-2695","nvd":{"published":"2012-06-22T14:55:01.147","modified":"2026-06-16T23:41:54.103","status":"Modified","description":"The Active Record component in Ruby on Rails before 3.0.14, 3.1.x before 3.1.6, and 3.2.x before 3.2.6 does not properly implement the passing of request data to a where method in an ActiveRecord class, which allows remote attackers to conduct certain SQL injection attacks via nested query parameters that leverage improper handling of nested hashes, a related issue to CVE-2012-2661.","cvss_v4":null,"cvss_v3":null,"cwes":["CWE-89"],"references":["http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00002.html","http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00014.html","http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00016.html","http://lists.opensuse.org/opensuse-updates/2012-08/msg00046.html","http://rhn.redhat.com/errata/RHSA-2013-0154.html"],"products":["rubyonrails:rails","rubyonrails:ruby_on_rails"],"source":"nvd","synced_at":"2026-10-19T20:24:00.973572543+00:00"},"epss":{"cve":"CVE-2012-2695","score":0.02947,"percentile":0.87158,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-76wq-xw4h-f8wj","url":"https://osv.dev/vulnerability/GHSA-76wq-xw4h-f8wj","summary":"activerecord vulnerable to SQL Injection","modified":"2025-01-21T15:34:40.818782Z","packages":[{"ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":[">=3.0.0.beta <3.0.14"],"fixed":["3.0.14"]},{"ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":[">=3.1.0 <3.1.6"],"fixed":["3.1.6"]},{"ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":[">=3.2.0 <3.2.6"],"fixed":["3.2.6"]},{"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."]}