CVE-2012-6496: SQL Injection
SQL injection vulnerability in the Active Record component in Ruby on Rails before 2.3.15, 3.0.x before 3.0.18, 3.1.x before 3.1.9, and 3.2.x before 3.2.10 allows remote attackers to execute arbitrary SQL commands via a crafted request that leverages incorrect behavior of dynamic finders in applications that can use unexpected data types in certain findby method calls.
Other sources
SQL injection vulnerability in the Active Record component in Ruby on Rails before 3.0.18, 3.1.x before 3.1.9, and 3.2.x before 3.2.10 allows remote attackers to execute arbitrary SQL commands via a crafted request that leverages incorrect behavior of dynamic finders in applications that can use unexpected data types in certain findby method calls.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rubygems/activerecordto a version that resolves this vulnerability.Fixed in 2.3.15 - Upgrade
Upgrade
rubygems/activerecordto a version that resolves this vulnerability.Fixed in 3.0.18 - Upgrade
Upgrade
rubygems/activerecordto a version that resolves this vulnerability.Fixed in 3.2.10 - Upgrade
Upgrade
rubygems/activerecordto a version that resolves this vulnerability.Fixed in 3.1.9 - Upgrade
Upgrade
debian/railsto a version that resolves this vulnerability.Fixed in 2.3.14.1 - Upgrade
Upgrade
debian/railsto a version that resolves this vulnerability.Fixed in 2:6.1.7.10+dfsg-1~deb12u2Fixed in 2:6.1.7.10+dfsg-1~deb12u3Fixed in 2:7.2.2.2+dfsg-2~deb13u1Fixed in 2:7.2.2.2+dfsg-2~deb13u2Fixed in 2:7.2.4+dfsg-2
Event History
Frequently Asked Questions
What is the severity of CVE-2012-6496?
CVE-2012-6496 has a medium severity rating as it allows remote attackers to execute arbitrary SQL commands.
How do I fix CVE-2012-6496?
To mitigate CVE-2012-6496, upgrade the Active Record component to version 2.3.15, 3.0.18, 3.1.9, or 3.2.10 or later.
Which versions of Ruby on Rails are affected by CVE-2012-6496?
CVE-2012-6496 affects Ruby on Rails versions before 2.3.15, 3.0.x before 3.0.18, 3.1.x before 3.1.9, and 3.2.x before 3.2.10.
What type of vulnerability is CVE-2012-6496?
CVE-2012-6496 is an SQL injection vulnerability allowing attackers to manipulate SQL queries.
Can CVE-2012-6496 impact my application?
Yes, if your application utilizes the affected versions of Active Record, it may be vulnerable to SQL injection attacks.