{"cve":"CVE-2013-3221","nvd":{"published":"2013-04-22T03:27:13.363","modified":"2026-06-16T23:54:43.367","status":"Modified","description":"The Active Record component in Ruby on Rails 2.3.x, 3.0.x, 3.1.x, and 3.2.x does not ensure that the declared data type of a database column is used during comparisons of input values to stored values in that column, which makes it easier for remote attackers to conduct data-type injection attacks against Ruby on Rails applications via a crafted value, as demonstrated by unintended interaction between the \"typed XML\" feature and a MySQL database.","cvss_v4":null,"cvss_v3":null,"cwes":["CWE-20"],"references":["http://openwall.com/lists/oss-security/2013/02/06/7","http://openwall.com/lists/oss-security/2013/04/24/7","http://pl.reddit.com/r/netsec/comments/17yajp/mysql_madness_and_rails/","http://www.phenoelit.org/blog/archives/2013/02/index.html","https://gist.github.com/dakull/5442275"],"products":["rubyonrails:rails","rubyonrails:ruby_on_rails"],"source":"nvd","synced_at":"2026-10-19T20:29:16.037019470+00:00"},"epss":{"cve":"CVE-2013-3221","score":0.01962,"percentile":0.80332,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-f57c-hx33-hvh8","url":"https://osv.dev/vulnerability/GHSA-f57c-hx33-hvh8","summary":"Active Record component in Ruby on Rails has a data-type injection vulnerability","modified":"2026-02-03T17:50:09.070094Z","packages":[{"ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":["<4.2.0"],"fixed":["4.2.0"]}]}],"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."]}