CVE-2013-3221
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.
What to do
Fixed builds are available from Debian, RubyGems: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 14.04 | ruby-activerecord-3.2 | Fix pending | ||
| Debian 14 | rails | Fixed | 2.3.14.1 | DEBIAN-CVE-2013-3221 |
| Debian 13 | rails | Fixed | 2.3.14.1 | DEBIAN-CVE-2013-3221 |
| Debian 12 | rails | Fixed | 2.3.14.1 | DEBIAN-CVE-2013-3221 |
| RubyGems library | activerecord | Fixed | 4.2.0 | GHSA-f57c-hx33-hvh8 |
References
- http://pl.reddit.com/r/netsec/comments/17yajp/mysql_madness_and_rails/
- https://groups.google.com/group/rubyonrails-security/msg/1f3bc0b88a60c1ce?dmode=source&output=gplain
- http://www.phenoelit.org/blog/archives/2013/02/index.html
- http://openwall.com/lists/oss-security/2013/04/24/7
- https://gist.github.com/dakull/5442275
- http://openwall.com/lists/oss-security/2013/02/06/7
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.