CVE-2013-3221
publishedrubygem-activerecord: Data-type injection attacks due absent database column data type (input vs stored value) check
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
6- [oss-security] 20130207 Potential Query Manipulation with Common Rails Practises http://openwall.com/lists/oss-security/2013/02/06/7
- [oss-security] 20130424 CVE-2013-3221 can also relate to Microsoft SQL Server and IBM DB2 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
- [rubyonrails-security] 20130207 Potential Query Manipulation with Common Rails Practises https://groups.google.com/group/rubyonrails-security/msg/1f3bc0b88a60c1ce?dmode=source&output=gplain
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 37205715f261f2e8ad9887bf7d0d93f4c8de5f1462c33afdd6988230744abe78
- Ingested
- 23 Sep 2026, 07:39:37 UTC
- Source record
- Official CVE record