rubygem-activerecord: Data-type injection attacks due absent database column data type (input vs stored value) check
Published Apr 22, 2013
9.3
CRITICALCVSS 4.0
EPSS 1.96%
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.
Affected products
No data.
Configuration 1
- 2.3.0
- 2.3.1
- 2.3.2
- 2.3.3
- 2.3.4
- 2.3.9
- 2.3.10
- 2.3.11
- 2.3.12
- 2.3.13
- 2.3.14
- 2.3.15
- 2.3.16
Configuration 2
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.1
- 3.0.1
- 3.0.2
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.0.5
- 3.0.6
- 3.0.6
- 3.0.6
- 3.0.7
- 3.0.7
- 3.0.7
- 3.0.8
- 3.0.8
- 3.0.8
- 3.0.8
- 3.0.8
- 3.0.9
- 3.0.9
- 3.0.9
- 3.0.9
- 3.0.9
- 3.0.9
- 3.0.10
- 3.0.10
- 3.0.11
- 3.0.12
- 3.0.12
- 3.0.13
- 3.0.13
- 3.0.14
- 3.0.16
- 3.0.17
- 3.0.18
- 3.0.19
- 3.0.20
- 3.0.4
Configuration 3
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.1
- 3.1.1
- 3.1.1
- 3.1.1
- 3.1.2
- 3.1.2
- 3.1.2
- 3.1.3
- 3.1.4
- 3.1.4
- 3.1.5
- 3.1.5
- 3.1.6
- 3.1.7
- 3.1.8
- 3.1.9
- 3.1.10
Configuration 4
- 3.2.0
- 3.2.0
- 3.2.0
- 3.2.1
- 3.2.2
- 3.2.2
- 3.2.3
- 3.2.3
- 3.2.3
- 3.2.4
- 3.2.4
- 3.2.5
- 3.2.6
- 3.2.7
- 3.2.8
- 3.2.9
- 3.2.10
- 3.2.11
No data.
OpenShift Enterprise 1
ruby193-rubygem-activerecord
Not affected
OpenShift Enterprise 1
rubygem-activerecord
Not affected
Red Hat Subscription Asset Manager
rubygem-activerecord
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| OpenShift Enterprise 1 | ruby193-rubygem-activerecord | Not affected | n/a |
| OpenShift Enterprise 1 | rubygem-activerecord | Not affected | n/a |
| Red Hat Subscription Asset Manager | rubygem-activerecord | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Not a security issue. This issue is due to the handling of data types when passing data between rubygem-activerecord and MySQL. Applications that use rubygem-activerecord and MySQL may be affected if written in a way that exposes the issue, however any flaw would be specific to that application. For further information, please refer to https://bugzilla.redhat.com/show_bug.cgi?id=954365#c5
Metrics
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
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 1.96% (0.01962) | 79.63th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.96% (0.01962) | 77.67th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.48% (0.00483) | 63.15th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.86% (0.00856) | 82.97th | v3 (v2023.03.01) |
| Jul 11, 2024 | 0.86% (0.00856) | 82.41th | v3 (v2023.03.01) |
| Jan 7, 2024 | 0.86% (0.00856) | 80.41th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.54% (0.00539) | 73.71th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.32% (0.01319) | 71.27th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.32% (0.01319) | 71.23th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.32% (0.01319) | 69.22th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.32% (0.01319) | 44.98th | v2 (v2022.01.01) |
References (13)
- http://openwall.com/lists/oss-security/2013/02/06/7 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2013/04/24/7 mailing-listx_refsource_MLIST
- http://pl.reddit.com/r/netsec/comments/17yajp/mysql_madness_and_rails x_refsource_MISC
- http://www.phenoelit.org/blog/archives/2013/02/index.html x_refsource_MISCExploit
- https://access.redhat.com/security/cve/CVE-2013-3221 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=954365 Issue Tracking
- https://gist.github.com/dakull/5442275 x_refsource_CONFIRM
- https://github.com/advisories/GHSA-f57c-hx33-hvh8 Advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2013-3221.yml
- https://groups.google.com/group/rubyonrails-security/msg/1f3bc0b88a60c1ce?dmode=source&output=gplain mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2013-3221
- https://web.archive.org/web/20130825191249/http://www.phenoelit.org/blog/archives/2013/02/index.html
- https://www.cve.org/CVERecord?id=CVE-2013-3221
Change history (0)
No recorded changes yet.