Back
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…
Medium6.4EPSS 2.4%
- Published
- Updated
- Reserved
- Assigned by
- 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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium6.4 | AV:N/AC:L/Au:N/C:P/I:P/A:N |
- EPSS (exploitation in 30 days)
- 2.4% · top 16% of all CVEs (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.4.
Weakness
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsactiverecordGHSA-f57c-hx33-hvh8 (opens in a new tab)
References (6)
- http://pl.reddit.com/r/netsec/comments/17yajp/mysql_madness_and_rails/ (opens in a new tab)x_refsource_MISCx_transferred
- [rubyonrails-security] 20130207 Potential Query Manipulation with Common Rails Practises (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://www.phenoelit.org/blog/archives/2013/02/index.html (opens in a new tab)x_refsource_MISCx_transferred
- [oss-security] 20130424 CVE-2013-3221 can also relate to Microsoft SQL Server and IBM DB2 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://gist.github.com/dakull/5442275 (opens in a new tab)x_refsource_CONFIRMx_transferred
- [oss-security] 20130207 Potential Query Manipulation with Common Rails Practises (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-f57c-hx33-hvh8 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2013-3221)Record last updated .