CVE-2013-3221
mediumpriority · track · 27EPSS 0.020 · 80 %ileEUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (59)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-f57c-hx33-hvh8Active Record component in Ruby on Rails has a data-type injection vulnerability2022-05-14ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (18)
External citations — patches, advisories, analysis.
- http://openwall.com/lists/oss-security/2013/02/06/7cnnvd
- http://openwall.com/lists/oss-security/2013/04/24/7cnnvd
- http://pl.reddit.com/r/netsec/comments/17yajp/mysql_madness_and_rails/cnnvd
- http://www.phenoelit.org/blog/archives/2013/02/index.htmlcnnvd
- https://gist.github.com/dakull/5442275cnnvd
- https://groups.google.com/group/rubyonrails-security/msg/1f3bc0b88a60c1ce?dmode=source&output=gplaincnnvd
- http://openwall.com/lists/oss-security/2013/02/06/7enisa_euvd
- http://openwall.com/lists/oss-security/2013/04/24/7enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan