Advisory

GHSA-fh39-v733-mxfr

Also known as: CVE-2012-2661

Summary

Active Record vulnerable to SQL Injection via nested query parameters

Details

The Active Record component in Ruby on Rails 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 implement the passing of request data to a where method in an ActiveRecord class, which allows remote attackers to conduct certain SQL injection attacks via nested query parameters that leverage unintended recursion, a related issue to CVE-2012-2695.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2017-10-24 18:33 UTC
Modified
2024-12-05 05:29 UTC

Affected packages and fixes

activerecord

RubyGems · All systems

Affected

  • introduced 3.0.0, fixed 3.0.13 (ecosystem)

Fixed versions

3.0.13

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 3.1.0, fixed 3.1.5 (ecosystem)

Fixed versions

3.1.5

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 3.2.0, fixed 3.2.4 (ecosystem)

Fixed versions

3.2.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences