🛡️ CVE-2013-3221 — activerecord
Description
Active Record component in Ruby on Rails has a data-type injection vulnerability
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.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality high, integrity high, availability none.
Weakness class
CVE-2013-3221 is classified as CWE-20: Improper Input Validation. The application accepts input without checking that it has the expected form, so malformed values reach code that assumes they are well formed.
Affected software
CVE-2013-3221 is recorded against 1 package.
- activerecord (fixed in 4.2.0)
Timeline and source
Published on 14 May 2022 and last revised on 3 February 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
github.com (Package)
github.com (Web)
groups.google.com (Web)
web.archive.org (Web)
openwall.com (Web)
openwall.com (Web)
pl.reddit.com (Web)
Details
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| activerecord | — | 4.2.0 |
Similar Threats
- High GHSA-5qw5-wf2q-f538
- Unknown MAL-2025-14050
- Unknown MAL-2025-14051
- Unknown CVE-2025-55193
- Unknown MAL-2024-6467
More CVE 2013 advisories
Browse all of CVE 2013 in the advisory index.
Exploit Protection
Are you running activerecord?
CVE-2013-3221 carries CVSS 9.5 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.
Check My Site For CVE-2013-3221 →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.