{"id":"CVE-2013-3221","published":"2013-04-22T01:00:00Z","modified":"2024-08-06T16:00:10Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.024,"percentile":0.8443,"provenance":"source"},"cwes":[],"references":[{"url":"http://pl.reddit.com/r/netsec/comments/17yajp/mysql_madness_and_rails/","tags":["x_refsource_MISC"]},{"url":"https://groups.google.com/group/rubyonrails-security/msg/1f3bc0b88a60c1ce?dmode=source&output=gplain","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.phenoelit.org/blog/archives/2013/02/index.html","tags":["x_refsource_MISC"]},{"url":"http://openwall.com/lists/oss-security/2013/04/24/7","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://gist.github.com/dakull/5442275","tags":["x_refsource_CONFIRM"]},{"url":"http://openwall.com/lists/oss-security/2013/02/06/7","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":16.89}]},"affected":[{"ecosystem":"RubyGems","package":"activerecord","vulnerableRanges":["<4.2.0"],"patched":["4.2.0"],"from":["GHSA-f57c-hx33-hvh8"],"provenance":"source"}],"summary":{"text":"The Active Record component in Ruby on Rails versions 2.3.x, 3.0.x, 3.1.x, and 3.2.x fails to enforce a database column's declared data type when comparing input values against stored values, enabling data-type injection. A remote attacker can exploit this by supplying a crafted value, as demonstrated through unintended interaction between the \"typed XML\" feature and a MySQL database.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:19Z"},"euvd":{"id":"EUVD-2013-3159","exploited":false,"provenance":"source"}}