Advisory

GHSA-76wq-xw4h-f8wj

Also known as: CVE-2012-2695

Summary

activerecord vulnerable to SQL Injection

Details

The Active Record component in Ruby on Rails efore 2.3.15, 3.0.x before 3.0.14, 3.1.x before 3.1.6, and 3.2.x before 3.2.6 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 improper handling of nested hashes, a related issue to CVE-2012-2661.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2017-10-24 18:33 UTC
Modified
2025-01-21 15:34 UTC

Affected packages and fixes

activerecord

RubyGems · All systems

Affected

  • introduced 3.0.0.beta, fixed 3.0.14 (ecosystem)

Fixed versions

3.0.14

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 3.1.0, fixed 3.1.6 (ecosystem)

Fixed versions

3.1.6

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 3.2.0, fixed 3.2.6 (ecosystem)

Fixed versions

3.2.6

Fix

The export has no generic command for this ecosystem.

activerecord

RubyGems · All systems

Affected

  • introduced 0, fixed 2.3.15 (ecosystem)

Fixed versions

2.3.15

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