PT-2013-4237 · Ruby · Ruby On Rails

Joernchen

·

Published

2013-04-22

·

Updated

2022-05-14

·

CVE-2013-3221

CVSS v4.0

9.3

Critical

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Ruby on Rails versions 2.3.x through 3.2.x
Description The issue allows remote attackers to conduct data-type injection attacks against Ruby on Rails applications. This is due to the Active Record component not ensuring that the declared data type of a database column is used during comparisons of input values to stored values in that column. The attack can be carried out via a crafted value, as demonstrated by unintended interaction between the "typed XML" feature and a MySQL database.
Recommendations For versions 2.3.x through 3.2.x, update to a version that ensures the declared data type of a database column is used during comparisons of input values to stored values in that column. As a temporary workaround, consider restricting the use of the "typed XML" feature to minimize the risk of exploitation.

Exploit

Fix

RCE

SQL injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2013-3221
GHSA-F57C-HX33-HVH8

Affected Products

Ruby On Rails