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

CVE-2012-2660: Action Pack contains database-query restrictions bypass

October 24, 2017 (updated January 22, 2025)

actionpack/lib/action_dispatch/http/request.rb in Ruby on Rails before 2.3.16, 3.0.x before 3.0.13, 3.1.x before 3.1.5, and 3.2.x before 3.2.4 does not properly consider differences in parameter handling between the Active Record component and the Rack interface, which allows remote attackers to bypass intended database-query restrictions and perform NULL checks via a crafted request, as demonstrated by certain [nil] values, a related issue to CVE-2012-2694.

References

  • github.com/advisories/GHSA-hgpp-pp89-4fgf
  • github.com/rails/rails
  • github.com/rails/rails/commit/61eed87ce32caf534bf1f52dd8134097b4ad9e1b
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2012-2660.yml
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2012-2660.yml
  • groups.google.com/g/rubyonrails-security/c/8SA-M3as7A8/m/Mr9fi9X4kNgJ
  • groups.google.com/group/rubyonrails-security/msg/d890f8d58b5fbf32?dmode=source&output=gplain
  • nvd.nist.gov/vuln/detail/CVE-2012-2660

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.beta before 3.0.13, all versions before 2.3.16, 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
  • 2.3.16

Solution

Upgrade to versions 2.3.16, 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-284: Improper Access Control

Source file

gem/actionpack/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:15 +0000.