Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. activerecord
  4. ›
  5. CVE-2012-2660

CVE-2012-2660: SQL Injection

June 22, 2012 (updated August 8, 2019)

Ruby on Rails contains a flaw related to the way ActiveRecord handles parameters in conjunction with the way Rack parses query parameters. This issue may allow an attacker to inject arbitrary IS NULL clauses in to application SQL queries. This may also allow an attacker to have the SQL query check for NULL in arbitrary places.

References

  • github.com/rails/rails/commit/dff6db18840e2fd1dd3f3e4ef0ae7a9a3986d01d
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/OSVDB-82610.yml
  • groups.google.com/forum/

Code Behaviors & Features

Detect and mitigate CVE-2012-2660 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.0.0 before 3.0.13, all versions starting from 3.1.0 before 3.1.5, all versions starting from 3.2.0 before 3.2.4

Fixed versions

  • 3.0.13
  • 3.1.5
  • 3.2.4

Solution

Upgrade to versions 3.0.13, 3.1.5, 3.2.4 or above.

Impact 6.4 MEDIUM

AV:N/AC:L/Au:N/C:P/I:P/A:N

Learn more about CVSS

Weakness

  • CWE-264

Source file

gem/activerecord/CVE-2012-2660.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:18 +0000.